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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wpcmdf.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: WPCMDF
  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 wpcmdf_h
  24. #define wpcmdf_h
  25.  
  26.  
  27. #include <som.h>
  28.  
  29. /*
  30.  * Define the class name as an object type
  31.  */
  32. #ifndef WPCommandFile
  33. #define WPCommandFile SOMAny
  34. #endif
  35. #include "wppgmf.h"
  36.  
  37. #define WPCommandFile_MajorVersion 1
  38. #define WPCommandFile_MinorVersion 2
  39.  
  40. /*
  41.  * External name shortening if required
  42.  */
  43. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  44. #define WPCommandFileNewClass wpcmdc
  45. #pragma linkage(wpcmdc, system)
  46. #define WPCommandFileClassData wpcmdd
  47. #define WPCommandFileCClassData wpcmdx
  48. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  49. /*--------------Migration------------*/
  50. #define WPCommandFile_classObj WPCommandFileClassData.classObject
  51. #define _WPCommandFile WPCommandFile_classObj
  52.  
  53. /*
  54.  * New and Renew macros for WPCommandFile
  55.  */
  56. #define _WPCommandFileNew() (_somNew(WPCommandFileClassData.classObject))
  57. #define WPCommandFileNew() \
  58.     ( WPCommandFileClassData.classObject \
  59.         ? _WPCommandFileNew() \
  60.         : ( WPCommandFileNewClass(WPCommandFile_MajorVersion, WPCommandFile_MinorVersion), _WPCommandFileNew() ) )
  61. #define WPCommandFileRenew(buf) \
  62.     ( _somRenew(WPCommandFileClassData.classObject, buf) )
  63.  
  64. /*
  65.  * Override method: wpPrintObject
  66.  */
  67. #define WPCommandFile_wpPrintObject(somSelf,pPrintDest,ulReserved) \
  68.     WPObject_wpPrintObject(somSelf,pPrintDest,ulReserved)
  69.  
  70. /*
  71.  * Declare the class creation procedure
  72.  */
  73. SOMEXTERN SOMAny * SOMLINK WPCommandFileNewClass(integer4 scemajorVersion,
  74.         integer4 sceminorVersion);
  75. #pragma linkage(WPCommandFileNewClass, system)
  76.  
  77. /*
  78.  * Declare the class data structure
  79.  */
  80. SOMEXTERN struct WPCommandFileClassDataStructure {
  81.     SOMAny *classObject;
  82. } WPCommandFileClassData;
  83.  
  84. /*
  85.  * Declare the C specific class data structure
  86.  */
  87. SOMEXTERN struct WPCommandFileCClassDataStructure {
  88.     somMethodTab *parentMtab;
  89.     somDToken instanceDataToken;
  90. } WPCommandFileCClassData;
  91.  
  92. #endif       /* wpcmdf_h */
  93.  
  94. /*
  95.  * This file was generated by the SOM Compiler.
  96.  * FileName: wpcmdf.h.
  97.  * Generated using:
  98.  *     SOM Precompiler spc: 1.22
  99.  *     SOM Emitter emith: 1.11
  100.  */
  101.  
  102. #ifndef wpcmdf_mh
  103. #define wpcmdf_mh
  104.  
  105.  
  106. /*
  107.  * Define the class name as an object type
  108.  */
  109. #ifndef M_WPCommandFile
  110. #define M_WPCommandFile SOMAny
  111. #endif
  112.  
  113. #define M_WPCommandFile_MajorVersion 1
  114. #define M_WPCommandFile_MinorVersion 2
  115.  
  116. /*
  117.  * External name shortening if required
  118.  */
  119. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  120. #define M_WPCommandFileNewClass wpcmdc
  121. #pragma linkage(wpcmdc, system)
  122. #define M_WPCommandFileClassData wpcmdd
  123. #define M_WPCommandFileCClassData wpcmdx
  124. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  125. /*--------------Migration------------*/
  126. #define M_WPCommandFile_classObj M_WPCommandFileClassData.classObject
  127. #define _M_WPCommandFile M_WPCommandFile_classObj
  128.  
  129. /*
  130.  * New and Renew macros for M_WPCommandFile
  131.  */
  132. #define _M_WPCommandFileNew() (_somNew(M_WPCommandFileClassData.classObject))
  133. #define M_WPCommandFileNew() \
  134.     ( M_WPCommandFileClassData.classObject \
  135.         ? _M_WPCommandFileNew() \
  136.         : ( M_WPCommandFileNewClass(M_WPCommandFile_MajorVersion, M_WPCommandFile_MinorVersion), _M_WPCommandFileNew() ) )
  137. #define M_WPCommandFileRenew(buf) \
  138.     ( _somRenew(M_WPCommandFileClassData.classObject, buf) )
  139.  
  140. /*
  141.  * Override method: wpclsQueryStyle
  142.  */
  143. #define M_WPCommandFile_wpclsQueryStyle(somSelf) \
  144.     M_WPObject_wpclsQueryStyle(somSelf)
  145.  
  146. /*
  147.  * Override method: wpclsQueryInstanceFilter
  148.  */
  149. #define M_WPCommandFile_wpclsQueryInstanceFilter(somSelf) \
  150.     M_WPFileSystem_wpclsQueryInstanceFilter(somSelf)
  151.  
  152. /*
  153.  * Override method: wpclsQueryInstanceType
  154.  */
  155. #define M_WPCommandFile_wpclsQueryInstanceType(somSelf) \
  156.     M_WPFileSystem_wpclsQueryInstanceType(somSelf)
  157.  
  158. /*
  159.  * Override method: wpclsQueryTitle
  160.  */
  161. #define M_WPCommandFile_wpclsQueryTitle(somSelf) \
  162.     M_WPObject_wpclsQueryTitle(somSelf)
  163.  
  164. /*
  165.  * Declare the class creation procedure
  166.  */
  167. SOMEXTERN SOMAny * SOMLINK M_WPCommandFileNewClass(integer4 scemajorVersion,
  168.         integer4 sceminorVersion);
  169. #pragma linkage(M_WPCommandFileNewClass, system)
  170.  
  171. /*
  172.  * Declare the class data structure
  173.  */
  174. SOMEXTERN struct M_WPCommandFileClassDataStructure {
  175.     SOMAny *classObject;
  176. } M_WPCommandFileClassData;
  177.  
  178. /*
  179.  * Declare the C specific class data structure
  180.  */
  181. SOMEXTERN struct M_WPCommandFileCClassDataStructure {
  182.     somMethodTab *parentMtab;
  183.     somDToken instanceDataToken;
  184. } M_WPCommandFileCClassData;
  185.  
  186. #endif       /* wpcmdf_h */
  187.