home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / toolkt21 / cplus / os2h / wpctry.xh < prev    next >
Encoding:
Text File  |  1993-05-02  |  5.1 KB  |  222 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wpctry.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler spc: 1.22
  7.  *     SOM Emitter emitxh: 1.11
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Module Header
  13.  * 
  14.  *  Module Name: WPCTRY
  15.  * 
  16.  *  OS/2 Presentation Manager Workplace class definitions
  17.  * 
  18.  *  Copyright (c) International Business Machines Corporation 1991, 1992
  19.  * 
  20.  */
  21.  
  22. #ifndef wpctry_xh
  23. #define wpctry_xh
  24. class WPCountry;
  25.  
  26. #define WPCountry_MajorVersion 1
  27. #define WPCountry_MinorVersion 2
  28.  
  29. /* C++ som defs */
  30. #include <somcls.xh>
  31.  
  32. /* C++ parent def */
  33. #ifndef wpabs_xh
  34. #include "wpabs.xh"
  35. #endif
  36.  
  37. #ifndef WPCountry_API
  38. #define WPCountry_API
  39. /*
  40.  * The Class API
  41.  */
  42.  
  43. /* A procedure to create the WPCountry Class */
  44. SOMEXTERN SOMClass * SOMLINK WPCountryNewClass(
  45.         integer4 majorVersion,
  46.         integer4 minorVersion);
  47.  
  48. /* A macro to return the WPCountry class object */
  49. class M_WPCountry;
  50. #define _WPCountry ((M_WPCountry*)WPCountryClassData.classObject)
  51.  
  52. /* The static interface to WPCountry and its instances */
  53. SOMEXTERN struct WPCountryClassDataStructure {
  54.     SOMClass *classObject;
  55.     somMToken wpAddCountryTimePage;
  56.     somMToken wpAddCountryDatePage;
  57.     somMToken withdrawn;
  58.     somMToken wpAddCountryPage;
  59.     somMToken wpAddCountryNumbersPage;
  60. } WPCountryClassData;
  61.  
  62. /*
  63.  * -- Typedefs for Procedures that support WPCountry Methods
  64.  */
  65. extern "C" {
  66. typedef ULONG    (SOMLINK *somTD_WPCountry_wpAddCountryTimePage)(WPCountry *somSelf,HWND hwndNotebook);
  67. typedef ULONG    (SOMLINK *somTD_WPCountry_wpAddCountryDatePage)(WPCountry *somSelf,HWND hwndNotebook);
  68. typedef ULONG    (SOMLINK *somTD_WPCountry_wpAddCountryNumbersPage)(WPCountry *somSelf,HWND hwndNotebook);
  69. typedef ULONG    (SOMLINK *somTD_WPCountry_wpAddCountryPage)(WPCountry *somSelf,HWND hwndNotebook);
  70. }
  71.  
  72.  
  73. #endif /* WPCountry_API */
  74.  
  75.  
  76. /*
  77.  * -- The C++ Wrapper Class for WPCountry
  78.  */
  79. class WPCountry : public WPAbstract
  80. {
  81. public:
  82.  
  83. void *operator new(size_t size)
  84. {
  85.    (void) size;
  86.    if (!WPCountryClassData.classObject) 
  87.       WPCountryNewClass(WPCountry_MajorVersion,WPCountry_MinorVersion);
  88.    return (void *)
  89.       ((somTD_SOMClass_somNew)
  90.       somResolve(SOM_TestCls((SOMAny *)(WPCountryClassData.classObject),
  91.                              SOMClassClassData.classObject),
  92.                  SOMClassClassData.somNew))
  93.          ((SOMClass*)(WPCountryClassData.classObject));
  94. }
  95.  
  96. void operator delete(void * obj)
  97. {
  98.    ((SOMObject *)obj)->somFree();
  99. }
  100.  
  101. /* public method: wpAddCountryTimePage */
  102. ULONG    wpAddCountryTimePage(HWND hwndNotebook)
  103. {
  104.    return (ULONG) SOM_Resolve((SOMAny *)this,WPCountry,wpAddCountryTimePage)
  105.     (this,hwndNotebook);
  106. }
  107.  
  108.  
  109. /* public method: wpAddCountryDatePage */
  110. ULONG    wpAddCountryDatePage(HWND hwndNotebook)
  111. {
  112.    return (ULONG) SOM_Resolve((SOMAny *)this,WPCountry,wpAddCountryDatePage)
  113.     (this,hwndNotebook);
  114. }
  115.  
  116.  
  117. /* public method: wpAddCountryNumbersPage */
  118. ULONG    wpAddCountryNumbersPage(HWND hwndNotebook)
  119. {
  120.    return (ULONG) SOM_Resolve((SOMAny *)this,WPCountry,wpAddCountryNumbersPage)
  121.     (this,hwndNotebook);
  122. }
  123.  
  124.  
  125. /* public method: wpAddCountryPage */
  126. ULONG    wpAddCountryPage(HWND hwndNotebook)
  127. {
  128.    return (ULONG) SOM_Resolve((SOMAny *)this,WPCountry,wpAddCountryPage)
  129.     (this,hwndNotebook);
  130. }
  131.  
  132.  
  133.  
  134. };   /* WPCountry */
  135.  
  136.  
  137.  
  138. #endif       /* wpctry_xh */
  139.  
  140. /*
  141.  * This file was generated by the SOM Compiler.
  142.  * FileName: wpctry.xh.
  143.  * Generated using:
  144.  *     SOM Precompiler spc: 1.22
  145.  *     SOM Emitter emitxh: 1.11
  146.  */
  147. #ifndef wpctry_mxh
  148. #define wpctry_mxh
  149. class M_WPCountry;
  150.  
  151. #define M_WPCountry_MajorVersion 1
  152. #define M_WPCountry_MinorVersion 2
  153.  
  154. /* C++ som defs */
  155. #include <somcls.xh>
  156.  
  157. /* C++ parent def */
  158. #ifndef wpabs_xh
  159. #include "wpabs.xh"
  160. #endif
  161.  
  162. #ifndef M_WPCountry_API
  163. #define M_WPCountry_API
  164. /*
  165.  * The Class API
  166.  */
  167.  
  168. /* A procedure to create the M_WPCountry Class */
  169. SOMEXTERN SOMClass * SOMLINK M_WPCountryNewClass(
  170.         integer4 majorVersion,
  171.         integer4 minorVersion);
  172.  
  173. /* A macro to return the M_WPCountry class object */
  174. #define _M_WPCountry ((SOMClass*)M_WPCountryClassData.classObject)
  175.  
  176. /* The static interface to M_WPCountry and its instances */
  177. SOMEXTERN struct M_WPCountryClassDataStructure {
  178.     SOMClass *classObject;
  179. } M_WPCountryClassData;
  180.  
  181. /*
  182.  * -- Typedefs for Procedures that support M_WPCountry Methods
  183.  */
  184. extern "C" {
  185. }
  186.  
  187.  
  188. #endif /* M_WPCountry_API */
  189.  
  190.  
  191. /*
  192.  * -- The C++ Wrapper Class for M_WPCountry
  193.  */
  194. class M_WPCountry : public M_WPAbstract
  195. {
  196. public:
  197.  
  198. void *operator new(size_t size)
  199. {
  200.    (void) size;
  201.    if (!M_WPCountryClassData.classObject) 
  202.       M_WPCountryNewClass(M_WPCountry_MajorVersion,M_WPCountry_MinorVersion);
  203.    return (void *)
  204.       ((somTD_SOMClass_somNew)
  205.       somResolve(SOM_TestCls((SOMAny *)(M_WPCountryClassData.classObject),
  206.                              SOMClassClassData.classObject),
  207.                  SOMClassClassData.somNew))
  208.          ((SOMClass*)(M_WPCountryClassData.classObject));
  209. }
  210.  
  211. void operator delete(void * obj)
  212. {
  213.    ((SOMObject *)obj)->somFree();
  214. }
  215.  
  216.  
  217. };   /* M_WPCountry */
  218.  
  219.  
  220.  
  221. #endif       /* wpctry_mxh */
  222.