home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
WPSDEM.ZIP
/
WHOAMI
/
WHOAMI.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-30
|
2KB
|
80 lines
/*
* This file was generated by the SOM Compiler.
* FileName: whoami.h.
* Generated using:
* SOM Precompiler spc: 1.22
* SOM Emitter emith: 1.11
*/
#ifndef whoami_h
#define whoami_h
#include <som.h>
/*
* Define the class name as an object type
*/
#ifndef Whoami
#define Whoami SOMAny
#endif
#include "wpabs.h"
#define Whoami_MajorVersion 1
#define Whoami_MinorVersion 1
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WhoamiNewClass WAIc
#pragma linkage(WAIc, system)
#define WhoamiClassData WAId
#define WhoamiCClassData WAIx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define Whoami_classObj WhoamiClassData.classObject
#define _Whoami Whoami_classObj
/*
* New and Renew macros for Whoami
*/
#define _WhoamiNew() (_somNew(WhoamiClassData.classObject))
#define WhoamiNew() \
( WhoamiClassData.classObject \
? _WhoamiNew() \
: ( WhoamiNewClass(Whoami_MajorVersion, Whoami_MinorVersion), _WhoamiNew() ) )
#define WhoamiRenew(buf) \
( _somRenew(WhoamiClassData.classObject, buf) )
/*
* Override method: wpDrop
*/
#define Whoami_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem) \
WPObject_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem)
/*
* Declare the class creation procedure
*/
SOMEXTERN SOMAny * SOMLINK WhoamiNewClass(integer4 scemajorVersion,
integer4 sceminorVersion);
#pragma linkage(WhoamiNewClass, system)
/*
* Declare the class data structure
*/
SOMEXTERN struct WhoamiClassDataStructure {
SOMAny *classObject;
} WhoamiClassData;
/*
* Declare the C specific class data structure
*/
SOMEXTERN struct WhoamiCClassDataStructure {
somMethodTab *parentMtab;
somDToken instanceDataToken;
} WhoamiCClassData;
#endif /* whoami_h */