home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / os2tk21j / c / os2h / wptrans.h__ / wptrans.h
Encoding:
C/C++ Source or Header  |  1993-04-26  |  4.5 KB  |  187 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wptrans.h.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emith: 1.11
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Module Header
  13.  * 
  14.  *  Module Name: WPTRANS
  15.  * 
  16.  *  OS/2 Presentation Manager Workplace class definitions
  17.  * 
  18.  *  Copyright (c) International Business Machines Corporation 1991, 1992
  19.  * 
  20.  */
  21.  
  22.  
  23. #ifndef wptrans_h
  24. #define wptrans_h
  25.  
  26.  
  27. #include <som.h>
  28.  
  29. /*
  30.  * Define the class name as an object type
  31.  */
  32. #ifndef WPTransient
  33. #define WPTransient SOMAny
  34. #endif
  35. #include "wpobject.h"
  36.  
  37. #define WPTransient_MajorVersion 1
  38. #define WPTransient_MinorVersion 2
  39.  
  40. /*
  41.  * External name shortening if required
  42.  */
  43. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  44. #define WPTransientNewClass wptrnc
  45. #pragma linkage(wptrnc, system)
  46. #define WPTransientClassData wptrnd
  47. #define WPTransientCClassData wptrnx
  48. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  49. /*--------------Migration------------*/
  50. #define WPTransient_classObj WPTransientClassData.classObject
  51. #define _WPTransient WPTransient_classObj
  52.  
  53. /*
  54.  * New and Renew macros for WPTransient
  55.  */
  56. #define _WPTransientNew() (_somNew(WPTransientClassData.classObject))
  57. #define WPTransientNew() \
  58.     ( WPTransientClassData.classObject \
  59.         ? _WPTransientNew() \
  60.         : ( WPTransientNewClass(WPTransient_MajorVersion, WPTransient_MinorVersion), _WPTransientNew() ) )
  61. #define WPTransientRenew(buf) \
  62.     ( _somRenew(WPTransientClassData.classObject, buf) )
  63.  
  64. /*
  65.  * Override method: wpQueryHandle
  66.  */
  67. #define WPTransient_wpQueryHandle(somSelf) \
  68.     WPObject_wpQueryHandle(somSelf)
  69.  
  70. /*
  71.  * Override method: wpCopyObject
  72.  */
  73. #define WPTransient_wpCopyObject(somSelf,Folder,fLock) \
  74.     WPObject_wpCopyObject(somSelf,Folder,fLock)
  75.  
  76. /*
  77.  * Override method: wpSaveDeferred
  78.  */
  79. #define WPTransient_wpSaveDeferred(somSelf) \
  80.     WPObject_wpSaveDeferred(somSelf)
  81.  
  82. /*
  83.  * Declare the class creation procedure
  84.  */
  85. SOMEXTERN SOMAny * SOMLINK WPTransientNewClass(integer4 scemajorVersion,
  86.         integer4 sceminorVersion);
  87. #pragma linkage(WPTransientNewClass, system)
  88.  
  89. /*
  90.  * Declare the class data structure
  91.  */
  92. SOMEXTERN struct WPTransientClassDataStructure {
  93.     SOMAny *classObject;
  94. } WPTransientClassData;
  95.  
  96. /*
  97.  * Declare the C specific class data structure
  98.  */
  99. SOMEXTERN struct WPTransientCClassDataStructure {
  100.     somMethodTab *parentMtab;
  101.     somDToken instanceDataToken;
  102. } WPTransientCClassData;
  103.  
  104. #endif       /* wptrans_h */
  105.  
  106. /*
  107.  * This file was generated by the SOM Compiler.
  108.  * FileName: wptrans.h.
  109.  * Generated using:
  110.  *     SOM Precompiler spc: 1.22
  111.  *     SOM Emitter emith: 1.11
  112.  */
  113.  
  114. #ifndef wptrans_mh
  115. #define wptrans_mh
  116.  
  117.  
  118. /*
  119.  * Define the class name as an object type
  120.  */
  121. #ifndef M_WPTransient
  122. #define M_WPTransient SOMAny
  123. #endif
  124.  
  125. #define M_WPTransient_MajorVersion 1
  126. #define M_WPTransient_MinorVersion 2
  127.  
  128. /*
  129.  * External name shortening if required
  130.  */
  131. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  132. #define M_WPTransientNewClass wptrnc
  133. #pragma linkage(wptrnc, system)
  134. #define M_WPTransientClassData wptrnd
  135. #define M_WPTransientCClassData wptrnx
  136. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  137. /*--------------Migration------------*/
  138. #define M_WPTransient_classObj M_WPTransientClassData.classObject
  139. #define _M_WPTransient M_WPTransient_classObj
  140.  
  141. /*
  142.  * New and Renew macros for M_WPTransient
  143.  */
  144. #define _M_WPTransientNew() (_somNew(M_WPTransientClassData.classObject))
  145. #define M_WPTransientNew() \
  146.     ( M_WPTransientClassData.classObject \
  147.         ? _M_WPTransientNew() \
  148.         : ( M_WPTransientNewClass(M_WPTransient_MajorVersion, M_WPTransient_MinorVersion), _M_WPTransientNew() ) )
  149. #define M_WPTransientRenew(buf) \
  150.     ( _somRenew(M_WPTransientClassData.classObject, buf) )
  151.  
  152. /*
  153.  * Override method: wpclsQueryTitle
  154.  */
  155. #define M_WPTransient_wpclsQueryTitle(somSelf) \
  156.     M_WPObject_wpclsQueryTitle(somSelf)
  157.  
  158. /*
  159.  * Override method: wpclsQueryStyle
  160.  */
  161. #define M_WPTransient_wpclsQueryStyle(somSelf) \
  162.     M_WPObject_wpclsQueryStyle(somSelf)
  163.  
  164. /*
  165.  * Declare the class creation procedure
  166.  */
  167. SOMEXTERN SOMAny * SOMLINK M_WPTransientNewClass(integer4 scemajorVersion,
  168.         integer4 sceminorVersion);
  169. #pragma linkage(M_WPTransientNewClass, system)
  170.  
  171. /*
  172.  * Declare the class data structure
  173.  */
  174. SOMEXTERN struct M_WPTransientClassDataStructure {
  175.     SOMAny *classObject;
  176. } M_WPTransientClassData;
  177.  
  178. /*
  179.  * Declare the C specific class data structure
  180.  */
  181. SOMEXTERN struct M_WPTransientCClassDataStructure {
  182.     somMethodTab *parentMtab;
  183.     somDToken instanceDataToken;
  184. } M_WPTransientCClassData;
  185.  
  186. #endif       /* wptrans_h */
  187.