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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: wpspneed.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: WPSPNEED
  15.  * 
  16.  *  OS/2 Presentation Manager Workplace class definitions
  17.  * 
  18.  *  Copyright (c) International Business Machines Corporation 1991, 1992
  19.  * 
  20.  */
  21.  
  22. #ifndef wpspneed_xh
  23. #define wpspneed_xh
  24. class WPSpecialNeeds;
  25.  
  26. #define WPSpecialNeeds_MajorVersion 1
  27. #define WPSpecialNeeds_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 WPSpecialNeeds_API
  38. #define WPSpecialNeeds_API
  39. /*
  40.  * The Class API
  41.  */
  42.  
  43. /* A procedure to create the WPSpecialNeeds Class */
  44. SOMEXTERN SOMClass * SOMLINK WPSpecialNeedsNewClass(
  45.         integer4 majorVersion,
  46.         integer4 minorVersion);
  47.  
  48. /* A macro to return the WPSpecialNeeds class object */
  49. class M_WPSpecialNeeds;
  50. #define _WPSpecialNeeds ((M_WPSpecialNeeds*)WPSpecialNeedsClassData.classObject)
  51.  
  52. /* The static interface to WPSpecialNeeds and its instances */
  53. SOMEXTERN struct WPSpecialNeedsClassDataStructure {
  54.     SOMClass *classObject;
  55. } WPSpecialNeedsClassData;
  56.  
  57. /*
  58.  * -- Typedefs for Procedures that support WPSpecialNeeds Methods
  59.  */
  60. extern "C" {
  61. }
  62.  
  63.  
  64. #endif /* WPSpecialNeeds_API */
  65.  
  66.  
  67. /*
  68.  * -- The C++ Wrapper Class for WPSpecialNeeds
  69.  */
  70. class WPSpecialNeeds : public WPAbstract
  71. {
  72. public:
  73.  
  74. void *operator new(size_t size)
  75. {
  76.    (void) size;
  77.    if (!WPSpecialNeedsClassData.classObject) 
  78.       WPSpecialNeedsNewClass(WPSpecialNeeds_MajorVersion,WPSpecialNeeds_MinorVersion);
  79.    return (void *)
  80.       ((somTD_SOMClass_somNew)
  81.       somResolve(SOM_TestCls((SOMAny *)(WPSpecialNeedsClassData.classObject),
  82.                              SOMClassClassData.classObject),
  83.                  SOMClassClassData.somNew))
  84.          ((SOMClass*)(WPSpecialNeedsClassData.classObject));
  85. }
  86.  
  87. void operator delete(void * obj)
  88. {
  89.    ((SOMObject *)obj)->somFree();
  90. }
  91.  
  92.  
  93. };   /* WPSpecialNeeds */
  94.  
  95.  
  96.  
  97. #endif       /* wpspneed_xh */
  98.  
  99. /*
  100.  * This file was generated by the SOM Compiler.
  101.  * FileName: wpspneed.xh.
  102.  * Generated using:
  103.  *     SOM Precompiler spc: 1.22
  104.  *     SOM Emitter emitxh: 1.11
  105.  */
  106. #ifndef wpspneed_mxh
  107. #define wpspneed_mxh
  108. class M_WPSpecialNeeds;
  109.  
  110. #define M_WPSpecialNeeds_MajorVersion 1
  111. #define M_WPSpecialNeeds_MinorVersion 2
  112.  
  113. /* C++ som defs */
  114. #include <somcls.xh>
  115.  
  116. /* C++ parent def */
  117. #ifndef wpabs_xh
  118. #include "wpabs.xh"
  119. #endif
  120.  
  121. #ifndef M_WPSpecialNeeds_API
  122. #define M_WPSpecialNeeds_API
  123. /*
  124.  * The Class API
  125.  */
  126.  
  127. /* A procedure to create the M_WPSpecialNeeds Class */
  128. SOMEXTERN SOMClass * SOMLINK M_WPSpecialNeedsNewClass(
  129.         integer4 majorVersion,
  130.         integer4 minorVersion);
  131.  
  132. /* A macro to return the M_WPSpecialNeeds class object */
  133. #define _M_WPSpecialNeeds ((SOMClass*)M_WPSpecialNeedsClassData.classObject)
  134.  
  135. /* The static interface to M_WPSpecialNeeds and its instances */
  136. SOMEXTERN struct M_WPSpecialNeedsClassDataStructure {
  137.     SOMClass *classObject;
  138. } M_WPSpecialNeedsClassData;
  139.  
  140. /*
  141.  * -- Typedefs for Procedures that support M_WPSpecialNeeds Methods
  142.  */
  143. extern "C" {
  144. }
  145.  
  146.  
  147. #endif /* M_WPSpecialNeeds_API */
  148.  
  149.  
  150. /*
  151.  * -- The C++ Wrapper Class for M_WPSpecialNeeds
  152.  */
  153. class M_WPSpecialNeeds : public M_WPAbstract
  154. {
  155. public:
  156.  
  157. void *operator new(size_t size)
  158. {
  159.    (void) size;
  160.    if (!M_WPSpecialNeedsClassData.classObject) 
  161.       M_WPSpecialNeedsNewClass(M_WPSpecialNeeds_MajorVersion,M_WPSpecialNeeds_MinorVersion);
  162.    return (void *)
  163.       ((somTD_SOMClass_somNew)
  164.       somResolve(SOM_TestCls((SOMAny *)(M_WPSpecialNeedsClassData.classObject),
  165.                              SOMClassClassData.classObject),
  166.                  SOMClassClassData.somNew))
  167.          ((SOMClass*)(M_WPSpecialNeedsClassData.classObject));
  168. }
  169.  
  170. void operator delete(void * obj)
  171. {
  172.    ((SOMObject *)obj)->somFree();
  173. }
  174.  
  175.  
  176. };   /* M_WPSpecialNeeds */
  177.  
  178.  
  179.  
  180. #endif       /* wpspneed_mxh */
  181.