home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / scbase.h < prev    next >
C/C++ Source or Header  |  1999-02-22  |  10KB  |  264 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: scbase.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.17
  7.  *     SOM Emitter emith: 2.47
  8.  */
  9.  
  10. /*
  11.  *   COMPONENT_NAME: some
  12.  * 
  13.  *   ORIGINS: 27
  14.  * 
  15.  * 
  16.  *    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1994,1996
  17.  *   All Rights Reserved
  18.  *   Licensed Materials - Property of IBM
  19.  *   US Government Users Restricted Rights - Use, duplication or
  20.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  21.  *  @(#) somc/sctypes.h 2.7 12/26/95 16:26:17 [7/30/96 14:46:04]
  22.  * 
  23.  */
  24.  
  25.  
  26. #ifndef SOM_SOMTBaseClassEntryC_h
  27. #define SOM_SOMTBaseClassEntryC_h
  28.  
  29.  
  30. #include <som.h>
  31.  
  32. /*
  33.  * -- This emitter treats Method Tokens as Thunks by default.
  34.  * -- Use the sc modifier "nothunks" to change this default
  35.  */
  36. #undef somresolve_
  37. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  38.  
  39. /*
  40.  * Define the class name as an object type
  41.  */
  42. #ifndef SOMTBaseClassEntryC
  43. #define SOMTBaseClassEntryC SOMObject
  44. #endif
  45. #include <scentry.h>
  46.  
  47. /*
  48.  * Start of bindings for IDL types
  49.  */
  50.  
  51. #ifndef SOMClass
  52.     #define SOMClass SOMObject
  53. #endif /* SOMClass */
  54. #ifndef SOMTEntryC
  55.     #define SOMTEntryC SOMObject
  56. #endif /* SOMTEntryC */
  57. #ifndef SOMTEmitC
  58.     #define SOMTEmitC SOMObject
  59. #endif /* SOMTEmitC */
  60. #ifndef SOMTMetaClassEntryC
  61.     #define SOMTMetaClassEntryC SOMObject
  62. #endif /* SOMTMetaClassEntryC */
  63. #ifndef SOMTAttributeEntryC
  64.     #define SOMTAttributeEntryC SOMObject
  65. #endif /* SOMTAttributeEntryC */
  66. #ifndef SOMTTypedefEntryC
  67.     #define SOMTTypedefEntryC SOMObject
  68. #endif /* SOMTTypedefEntryC */
  69. #ifndef SOMTBaseClassEntryC
  70.     #define SOMTBaseClassEntryC SOMObject
  71. #endif /* SOMTBaseClassEntryC */
  72. #ifndef SOMTPassthruEntryC
  73.     #define SOMTPassthruEntryC SOMObject
  74. #endif /* SOMTPassthruEntryC */
  75. #ifndef SOMTDataEntryC
  76.     #define SOMTDataEntryC SOMObject
  77. #endif /* SOMTDataEntryC */
  78. #ifndef SOMTMethodEntryC
  79.     #define SOMTMethodEntryC SOMObject
  80. #endif /* SOMTMethodEntryC */
  81. #ifndef SOMTClassEntryC
  82.     #define SOMTClassEntryC SOMObject
  83. #endif /* SOMTClassEntryC */
  84. #ifndef SOMTModuleEntryC
  85.     #define SOMTModuleEntryC SOMObject
  86. #endif /* SOMTModuleEntryC */
  87. #ifndef SOMTParameterEntryC
  88.     #define SOMTParameterEntryC SOMObject
  89. #endif /* SOMTParameterEntryC */
  90. #ifndef SOMTStructEntryC
  91.     #define SOMTStructEntryC SOMObject
  92. #endif /* SOMTStructEntryC */
  93. #ifndef SOMTUnionEntryC
  94.     #define SOMTUnionEntryC SOMObject
  95. #endif /* SOMTUnionEntryC */
  96. #ifndef SOMTEnumEntryC
  97.     #define SOMTEnumEntryC SOMObject
  98. #endif /* SOMTEnumEntryC */
  99. #ifndef SOMTConstEntryC
  100.     #define SOMTConstEntryC SOMObject
  101. #endif /* SOMTConstEntryC */
  102. #ifndef SOMTSequenceEntryC
  103.     #define SOMTSequenceEntryC SOMObject
  104. #endif /* SOMTSequenceEntryC */
  105. #ifndef SOMTStringEntryC
  106.     #define SOMTStringEntryC SOMObject
  107. #endif /* SOMTStringEntryC */
  108. #ifndef SOMTEnumNameEntryC
  109.     #define SOMTEnumNameEntryC SOMObject
  110. #endif /* SOMTEnumNameEntryC */
  111. #ifndef SOMTCommonEntryC
  112.     #define SOMTCommonEntryC SOMObject
  113. #endif /* SOMTCommonEntryC */
  114. #ifndef SOMTUserDefinedTypeEntryC
  115.     #define SOMTUserDefinedTypeEntryC SOMObject
  116. #endif /* SOMTUserDefinedTypeEntryC */
  117.  
  118. /*
  119.  * End of bindings for IDL types.
  120.  */
  121.  
  122. #define SOMTBaseClassEntryC_MajorVersion 2
  123. #define SOMTBaseClassEntryC_MinorVersion 1
  124.  
  125. /*
  126.  * External name shortening if required
  127.  */
  128. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  129. #define SOMTBaseClassEntryCNewClass c
  130. #pragma linkage(c, system)
  131. #define SOMTBaseClassEntryCClassData d
  132. #define SOMTBaseClassEntryCCClassData x
  133. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  134. /*--------------Migration------------*/
  135. #define SOMTBaseClassEntryC_classObj SOMTBaseClassEntryCClassData.classObject
  136. #define _SOMTBaseClassEntryC SOMTBaseClassEntryC_classObj
  137.  
  138. /*
  139.  * Declare the class creation procedure
  140.  */
  141. SOMEXTERN SOMClass * SOMLINK SOMTBaseClassEntryCNewClass(integer4 somtmajorVersion,
  142.         integer4 somtminorVersion);
  143. #pragma linkage(SOMTBaseClassEntryCNewClass, system)
  144.  
  145. /*
  146.  * Declare the class data structure
  147.  */
  148. SOMEXTERN struct SOMTBaseClassEntryCClassDataStructure {
  149.     SOMClass *classObject;
  150.     somMToken _get_somtBaseClassDef;
  151. } SOMDLINK SOMTBaseClassEntryCClassData;
  152.  
  153. /*
  154.  * Declare the C specific class data structure
  155.  */
  156. SOMEXTERN struct SOMTBaseClassEntryCCClassDataStructure {
  157.     somMethodTabs parentMtab;
  158.     somDToken instanceDataToken;
  159. } SOMDLINK SOMTBaseClassEntryCCClassData;
  160.  
  161. /*
  162.  * New and Renew macros for SOMTBaseClassEntryC
  163.  */
  164. #define SOMTBaseClassEntryCNew() \
  165.    ( _SOMTBaseClassEntryC ? \
  166.     _somNew(_SOMTBaseClassEntryC) \
  167.     : ( SOMTBaseClassEntryCNewClass(\
  168.         SOMTBaseClassEntryC_MajorVersion, \
  169.         SOMTBaseClassEntryC_MinorVersion),\
  170.        _somNew(_SOMTBaseClassEntryC)))
  171. #define SOMTBaseClassEntryCRenew(buf) \
  172.    ( _SOMTBaseClassEntryC ? \
  173.     _somRenew(_SOMTBaseClassEntryC, buf) \
  174.     : ( SOMTBaseClassEntryCNewClass(\
  175.         SOMTBaseClassEntryC_MajorVersion, \
  176.         SOMTBaseClassEntryC_MinorVersion),\
  177.        _somRenew(_SOMTBaseClassEntryC, buf)))
  178.  
  179. /*
  180.  * Override method: somDumpSelfInt
  181.  */
  182. #define SOMTBaseClassEntryC_somDumpSelfInt(somSelf,level) \
  183.     SOMObject_somDumpSelfInt(somSelf,level)
  184.  
  185. /*
  186.  * Override method: somtSetSymbolsOnEntry
  187.  */
  188. #define SOMTBaseClassEntryC_somtSetSymbolsOnEntry(somSelf,emitter,prefix) \
  189.     SOMTEntryC_somtSetSymbolsOnEntry(somSelf,emitter,prefix)
  190.  
  191. /*
  192.  * New Method: _get_somtBaseClassDef
  193.  */
  194. typedef SOMTClassEntryC*   SOMLINK somTP_SOMTBaseClassEntryC__get_somtBaseClassDef(SOMTBaseClassEntryC *somSelf);
  195. #pragma linkage(somTP_SOMTBaseClassEntryC__get_somtBaseClassDef, system)
  196. typedef somTP_SOMTBaseClassEntryC__get_somtBaseClassDef *somTD_SOMTBaseClassEntryC__get_somtBaseClassDef;
  197. /*
  198.  *  Returns the class definition entry for the Base class named in
  199.  *  this entry.
  200.  */
  201. #define somMD_SOMTBaseClassEntryC__get_somtBaseClassDef "::SOMTBaseClassEntryC::_get_somtBaseClassDef"
  202. #define SOMTBaseClassEntryC__get_somtBaseClassDef(somSelf) \
  203.     (SOM_Resolve(somSelf, SOMTBaseClassEntryC, _get_somtBaseClassDef) \
  204.     (somSelf))
  205. #ifndef SOMGD_get_somtBaseClassDef
  206.     #if (defined(_get_somtBaseClassDef) || defined(__get_somtBaseClassDef))
  207.         #undef _get_somtBaseClassDef
  208.         #undef __get_somtBaseClassDef
  209.         #define SOMGD_get_somtBaseClassDef 1
  210.     #else
  211.         #define __get_somtBaseClassDef SOMTBaseClassEntryC__get_somtBaseClassDef
  212.     #endif /* __get_somtBaseClassDef */
  213. #endif /* SOMGD_get_somtBaseClassDef */
  214. #ifndef SOM_DONT_USE_INHERITED_MACROS
  215. #define SOMTBaseClassEntryC__get_somtEntryName SOMTEntryC__get_somtEntryName
  216. #define SOMTBaseClassEntryC__set_somtEntryName SOMTEntryC__set_somtEntryName
  217. #define SOMTBaseClassEntryC__get_somtElementType SOMTEntryC__get_somtElementType
  218. #define SOMTBaseClassEntryC__set_somtElementType SOMTEntryC__set_somtElementType
  219. #define SOMTBaseClassEntryC__get_somtElementTypeName SOMTEntryC__get_somtElementTypeName
  220. #define SOMTBaseClassEntryC__get_somtEntryComment SOMTEntryC__get_somtEntryComment
  221. #define SOMTBaseClassEntryC__get_somtSourceLineNumber SOMTEntryC__get_somtSourceLineNumber
  222. #define SOMTBaseClassEntryC__get_somtTypeCode SOMTEntryC__get_somtTypeCode
  223. #define SOMTBaseClassEntryC__get_somtIsReference SOMTEntryC__get_somtIsReference
  224. #define SOMTBaseClassEntryC__get_somtIDLScopedName SOMTEntryC__get_somtIDLScopedName
  225. #define SOMTBaseClassEntryC__get_somtCScopedName SOMTEntryC__get_somtCScopedName
  226. #define SOMTBaseClassEntryC_somtGetModifierValue SOMTEntryC_somtGetModifierValue
  227. #define SOMTBaseClassEntryC_somtGetFirstModifier SOMTEntryC_somtGetFirstModifier
  228. #define SOMTBaseClassEntryC_somtGetNextModifier SOMTEntryC_somtGetNextModifier
  229. #define SOMTBaseClassEntryC_somtFormatModifier SOMTEntryC_somtFormatModifier
  230. #define SOMTBaseClassEntryC_somtGetModifierList SOMTEntryC_somtGetModifierList
  231. #define SOMTBaseClassEntryC_somtSetEntryStruct SOMTEntryC_somtSetEntryStruct
  232. #define SOMTBaseClassEntryC_somInit SOMObject_somInit
  233. #define SOMTBaseClassEntryC_somUninit SOMObject_somUninit
  234. #define SOMTBaseClassEntryC_somPrintSelf SOMObject_somPrintSelf
  235. #define SOMTBaseClassEntryC_somDumpSelf SOMObject_somDumpSelf
  236. #define SOMTBaseClassEntryC_somDefaultInit SOMObject_somDefaultInit
  237. #define SOMTBaseClassEntryC_somDestruct SOMObject_somDestruct
  238. #define SOMTBaseClassEntryC_somDefaultCopyInit SOMObject_somDefaultCopyInit
  239. #define SOMTBaseClassEntryC_somDefaultAssign SOMObject_somDefaultAssign
  240. #define SOMTBaseClassEntryC_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
  241. #define SOMTBaseClassEntryC_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
  242. #define SOMTBaseClassEntryC_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
  243. #define SOMTBaseClassEntryC_somDefaultConstAssign SOMObject_somDefaultConstAssign
  244. #define SOMTBaseClassEntryC_somDefaultVAssign SOMObject_somDefaultVAssign
  245. #define SOMTBaseClassEntryC_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
  246. #define SOMTBaseClassEntryC_somFree SOMObject_somFree
  247. #define SOMTBaseClassEntryC_somGetClass SOMObject_somGetClass
  248. #define SOMTBaseClassEntryC_somGetClassName SOMObject_somGetClassName
  249. #define SOMTBaseClassEntryC_somGetSize SOMObject_somGetSize
  250. #define SOMTBaseClassEntryC_somIsA SOMObject_somIsA
  251. #define SOMTBaseClassEntryC_somIsInstanceOf SOMObject_somIsInstanceOf
  252. #define SOMTBaseClassEntryC_somRespondsTo SOMObject_somRespondsTo
  253. #define SOMTBaseClassEntryC_somDispatch SOMObject_somDispatch
  254. #define SOMTBaseClassEntryC_somClassDispatch SOMObject_somClassDispatch
  255. #define SOMTBaseClassEntryC_somCastObj SOMObject_somCastObj
  256. #define SOMTBaseClassEntryC_somResetObj SOMObject_somResetObj
  257. #define SOMTBaseClassEntryC_somDispatchV SOMObject_somDispatchV
  258. #define SOMTBaseClassEntryC_somDispatchL SOMObject_somDispatchL
  259. #define SOMTBaseClassEntryC_somDispatchA SOMObject_somDispatchA
  260. #define SOMTBaseClassEntryC_somDispatchD SOMObject_somDispatchD
  261. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  262.  
  263. #endif       /* SOM_SOMTBaseClassEntryC_h */
  264.