home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / WPSDEM.ZIP / WHOAMI / WHOAMI.H < prev    next >
C/C++ Source or Header  |  1992-04-30  |  2KB  |  80 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: whoami.h.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emith: 1.11
  8.  */
  9.  
  10. #ifndef whoami_h
  11. #define whoami_h
  12.  
  13.  
  14. #include <som.h>
  15.  
  16. /*
  17.  * Define the class name as an object type
  18.  */
  19. #ifndef Whoami
  20. #define Whoami SOMAny
  21. #endif
  22. #include "wpabs.h"
  23.  
  24. #define Whoami_MajorVersion 1
  25. #define Whoami_MinorVersion 1
  26.  
  27. /*
  28.  * External name shortening if required
  29.  */
  30. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  31. #define WhoamiNewClass WAIc
  32. #pragma linkage(WAIc, system)
  33. #define WhoamiClassData WAId
  34. #define WhoamiCClassData WAIx
  35. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  36. /*--------------Migration------------*/
  37. #define Whoami_classObj WhoamiClassData.classObject
  38. #define _Whoami Whoami_classObj
  39.  
  40. /*
  41.  * New and Renew macros for Whoami
  42.  */
  43. #define _WhoamiNew() (_somNew(WhoamiClassData.classObject))
  44. #define WhoamiNew() \
  45.     ( WhoamiClassData.classObject \
  46.         ? _WhoamiNew() \
  47.         : ( WhoamiNewClass(Whoami_MajorVersion, Whoami_MinorVersion), _WhoamiNew() ) )
  48. #define WhoamiRenew(buf) \
  49.     ( _somRenew(WhoamiClassData.classObject, buf) )
  50.  
  51. /*
  52.  * Override method: wpDrop
  53.  */
  54. #define Whoami_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem) \
  55.     WPObject_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem)
  56.  
  57. /*
  58.  * Declare the class creation procedure
  59.  */
  60. SOMEXTERN SOMAny * SOMLINK WhoamiNewClass(integer4 scemajorVersion,
  61.         integer4 sceminorVersion);
  62. #pragma linkage(WhoamiNewClass, system)
  63.  
  64. /*
  65.  * Declare the class data structure
  66.  */
  67. SOMEXTERN struct WhoamiClassDataStructure {
  68.     SOMAny *classObject;
  69. } WhoamiClassData;
  70.  
  71. /*
  72.  * Declare the C specific class data structure
  73.  */
  74. SOMEXTERN struct WhoamiCClassDataStructure {
  75.     somMethodTab *parentMtab;
  76.     somDToken instanceDataToken;
  77. } WhoamiCClassData;
  78.  
  79. #endif       /* whoami_h */
  80.