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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: sctdef.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_SOMTTypedefEntryC_h
  27. #define SOM_SOMTTypedefEntryC_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 SOMTTypedefEntryC
  43. #define SOMTTypedefEntryC 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 SOMTTypedefEntryC_MajorVersion 2
  123. #define SOMTTypedefEntryC_MinorVersion 2
  124.  
  125. /*
  126.  * External name shortening if required
  127.  */
  128. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  129. #define SOMTTypedefEntryCNewClass c
  130. #pragma linkage(c, system)
  131. #define SOMTTypedefEntryCClassData d
  132. #define SOMTTypedefEntryCCClassData x
  133. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  134. /*--------------Migration------------*/
  135. #define SOMTTypedefEntryC_classObj SOMTTypedefEntryCClassData.classObject
  136. #define _SOMTTypedefEntryC SOMTTypedefEntryC_classObj
  137.  
  138. /*
  139.  * Declare the class creation procedure
  140.  */
  141. SOMEXTERN SOMClass * SOMLINK SOMTTypedefEntryCNewClass(integer4 somtmajorVersion,
  142.         integer4 somtminorVersion);
  143. #pragma linkage(SOMTTypedefEntryCNewClass, system)
  144.  
  145. /*
  146.  * Declare the class data structure
  147.  */
  148. SOMEXTERN struct SOMTTypedefEntryCClassDataStructure {
  149.     SOMClass *classObject;
  150.     somMToken _get_somtTypedefType;
  151.     somMToken somtGetFirstDeclarator;
  152.     somMToken somtGetNextDeclarator;
  153. } SOMDLINK SOMTTypedefEntryCClassData;
  154.  
  155. /*
  156.  * Declare the C specific class data structure
  157.  */
  158. SOMEXTERN struct SOMTTypedefEntryCCClassDataStructure {
  159.     somMethodTabs parentMtab;
  160.     somDToken instanceDataToken;
  161. } SOMDLINK SOMTTypedefEntryCCClassData;
  162.  
  163. /*
  164.  * New and Renew macros for SOMTTypedefEntryC
  165.  */
  166. #define SOMTTypedefEntryCNew() \
  167.    ( _SOMTTypedefEntryC ? \
  168.     _somNew(_SOMTTypedefEntryC) \
  169.     : ( SOMTTypedefEntryCNewClass(\
  170.         SOMTTypedefEntryC_MajorVersion, \
  171.         SOMTTypedefEntryC_MinorVersion),\
  172.        _somNew(_SOMTTypedefEntryC)))
  173. #define SOMTTypedefEntryCRenew(buf) \
  174.    ( _SOMTTypedefEntryC ? \
  175.     _somRenew(_SOMTTypedefEntryC, buf) \
  176.     : ( SOMTTypedefEntryCNewClass(\
  177.         SOMTTypedefEntryC_MajorVersion, \
  178.         SOMTTypedefEntryC_MinorVersion),\
  179.        _somRenew(_SOMTTypedefEntryC, buf)))
  180.  
  181. /*
  182.  * Override method: somtSetSymbolsOnEntry
  183.  */
  184. #define SOMTTypedefEntryC_somtSetSymbolsOnEntry(somSelf,emitter,prefix) \
  185.     SOMTEntryC_somtSetSymbolsOnEntry(somSelf,emitter,prefix)
  186.  
  187. /*
  188.  * Override method: somDumpSelfInt
  189.  */
  190. #define SOMTTypedefEntryC_somDumpSelfInt(somSelf,level) \
  191.     SOMObject_somDumpSelfInt(somSelf,level)
  192.  
  193. /*
  194.  * Override method: _get_somtTypeCode
  195.  */
  196. #define SOMTTypedefEntryC__get_somtTypeCode(somSelf) \
  197.     SOMTEntryC__get_somtTypeCode(somSelf)
  198.  
  199. /*
  200.  * New Method: _get_somtTypedefType
  201.  */
  202. typedef SOMTEntryC*   SOMLINK somTP_SOMTTypedefEntryC__get_somtTypedefType(SOMTTypedefEntryC *somSelf);
  203. #pragma linkage(somTP_SOMTTypedefEntryC__get_somtTypedefType, system)
  204. typedef somTP_SOMTTypedefEntryC__get_somtTypedefType *somTD_SOMTTypedefEntryC__get_somtTypedefType;
  205. /*
  206.  *  The type of the typedef. This does not include pointer stars or
  207.  *  array declarators.   These must be obtained by examining each
  208.  *  of the declarators.
  209.  */
  210. #define somMD_SOMTTypedefEntryC__get_somtTypedefType "::SOMTTypedefEntryC::_get_somtTypedefType"
  211. #define SOMTTypedefEntryC__get_somtTypedefType(somSelf) \
  212.     (SOM_Resolve(somSelf, SOMTTypedefEntryC, _get_somtTypedefType) \
  213.     (somSelf))
  214. #ifndef SOMGD_get_somtTypedefType
  215.     #if (defined(_get_somtTypedefType) || defined(__get_somtTypedefType))
  216.         #undef _get_somtTypedefType
  217.         #undef __get_somtTypedefType
  218.         #define SOMGD_get_somtTypedefType 1
  219.     #else
  220.         #define __get_somtTypedefType SOMTTypedefEntryC__get_somtTypedefType
  221.     #endif /* __get_somtTypedefType */
  222. #endif /* SOMGD_get_somtTypedefType */
  223.  
  224. /*
  225.  * New Method: somtGetFirstDeclarator
  226.  */
  227. typedef SOMTCommonEntryC*   SOMLINK somTP_SOMTTypedefEntryC_somtGetFirstDeclarator(SOMTTypedefEntryC *somSelf);
  228. #pragma linkage(somTP_SOMTTypedefEntryC_somtGetFirstDeclarator, system)
  229. typedef somTP_SOMTTypedefEntryC_somtGetFirstDeclarator *somTD_SOMTTypedefEntryC_somtGetFirstDeclarator;
  230. /*
  231.  *  The first declarator for this typedef.
  232.  *  Declarators of struct members will be instances of SOMTDataEntryC,
  233.  *  while declarators of typedefs will be instances of SOMTUserDefinedTypeEntryC.
  234.  */
  235. #define somMD_SOMTTypedefEntryC_somtGetFirstDeclarator "::SOMTTypedefEntryC::somtGetFirstDeclarator"
  236. #define SOMTTypedefEntryC_somtGetFirstDeclarator(somSelf) \
  237.     (SOM_Resolve(somSelf, SOMTTypedefEntryC, somtGetFirstDeclarator) \
  238.     (somSelf))
  239. #ifndef SOMGD_somtGetFirstDeclarator
  240.     #if (defined(_somtGetFirstDeclarator) || defined(__somtGetFirstDeclarator))
  241.         #undef _somtGetFirstDeclarator
  242.         #undef __somtGetFirstDeclarator
  243.         #define SOMGD_somtGetFirstDeclarator 1
  244.     #else
  245.         #define _somtGetFirstDeclarator SOMTTypedefEntryC_somtGetFirstDeclarator
  246.     #endif /* _somtGetFirstDeclarator */
  247. #endif /* SOMGD_somtGetFirstDeclarator */
  248.  
  249. /*
  250.  * New Method: somtGetNextDeclarator
  251.  */
  252. typedef SOMTCommonEntryC*   SOMLINK somTP_SOMTTypedefEntryC_somtGetNextDeclarator(SOMTTypedefEntryC *somSelf);
  253. #pragma linkage(somTP_SOMTTypedefEntryC_somtGetNextDeclarator, system)
  254. typedef somTP_SOMTTypedefEntryC_somtGetNextDeclarator *somTD_SOMTTypedefEntryC_somtGetNextDeclarator;
  255. /*
  256.  *  The next declarator for this typedef, relative to the previous
  257.  *  call to this method or somtGetFirstDeclarator.
  258.  *  Declarators of struct members will be instances of SOMTDataEntryC,
  259.  *  while declarators of typedefs will be instances of SOMTUserDefinedTypeEntryC.
  260.  */
  261. #define somMD_SOMTTypedefEntryC_somtGetNextDeclarator "::SOMTTypedefEntryC::somtGetNextDeclarator"
  262. #define SOMTTypedefEntryC_somtGetNextDeclarator(somSelf) \
  263.     (SOM_Resolve(somSelf, SOMTTypedefEntryC, somtGetNextDeclarator) \
  264.     (somSelf))
  265. #ifndef SOMGD_somtGetNextDeclarator
  266.     #if (defined(_somtGetNextDeclarator) || defined(__somtGetNextDeclarator))
  267.         #undef _somtGetNextDeclarator
  268.         #undef __somtGetNextDeclarator
  269.         #define SOMGD_somtGetNextDeclarator 1
  270.     #else
  271.         #define _somtGetNextDeclarator SOMTTypedefEntryC_somtGetNextDeclarator
  272.     #endif /* _somtGetNextDeclarator */
  273. #endif /* SOMGD_somtGetNextDeclarator */
  274. #ifndef SOM_DONT_USE_INHERITED_MACROS
  275. #define SOMTTypedefEntryC__get_somtEntryName SOMTEntryC__get_somtEntryName
  276. #define SOMTTypedefEntryC__set_somtEntryName SOMTEntryC__set_somtEntryName
  277. #define SOMTTypedefEntryC__get_somtElementType SOMTEntryC__get_somtElementType
  278. #define SOMTTypedefEntryC__set_somtElementType SOMTEntryC__set_somtElementType
  279. #define SOMTTypedefEntryC__get_somtElementTypeName SOMTEntryC__get_somtElementTypeName
  280. #define SOMTTypedefEntryC__get_somtEntryComment SOMTEntryC__get_somtEntryComment
  281. #define SOMTTypedefEntryC__get_somtSourceLineNumber SOMTEntryC__get_somtSourceLineNumber
  282. #define SOMTTypedefEntryC__get_somtIsReference SOMTEntryC__get_somtIsReference
  283. #define SOMTTypedefEntryC__get_somtIDLScopedName SOMTEntryC__get_somtIDLScopedName
  284. #define SOMTTypedefEntryC__get_somtCScopedName SOMTEntryC__get_somtCScopedName
  285. #define SOMTTypedefEntryC_somtGetModifierValue SOMTEntryC_somtGetModifierValue
  286. #define SOMTTypedefEntryC_somtGetFirstModifier SOMTEntryC_somtGetFirstModifier
  287. #define SOMTTypedefEntryC_somtGetNextModifier SOMTEntryC_somtGetNextModifier
  288. #define SOMTTypedefEntryC_somtFormatModifier SOMTEntryC_somtFormatModifier
  289. #define SOMTTypedefEntryC_somtGetModifierList SOMTEntryC_somtGetModifierList
  290. #define SOMTTypedefEntryC_somtSetEntryStruct SOMTEntryC_somtSetEntryStruct
  291. #define SOMTTypedefEntryC_somInit SOMObject_somInit
  292. #define SOMTTypedefEntryC_somUninit SOMObject_somUninit
  293. #define SOMTTypedefEntryC_somPrintSelf SOMObject_somPrintSelf
  294. #define SOMTTypedefEntryC_somDumpSelf SOMObject_somDumpSelf
  295. #define SOMTTypedefEntryC_somDefaultInit SOMObject_somDefaultInit
  296. #define SOMTTypedefEntryC_somDestruct SOMObject_somDestruct
  297. #define SOMTTypedefEntryC_somDefaultCopyInit SOMObject_somDefaultCopyInit
  298. #define SOMTTypedefEntryC_somDefaultAssign SOMObject_somDefaultAssign
  299. #define SOMTTypedefEntryC_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
  300. #define SOMTTypedefEntryC_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
  301. #define SOMTTypedefEntryC_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
  302. #define SOMTTypedefEntryC_somDefaultConstAssign SOMObject_somDefaultConstAssign
  303. #define SOMTTypedefEntryC_somDefaultVAssign SOMObject_somDefaultVAssign
  304. #define SOMTTypedefEntryC_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
  305. #define SOMTTypedefEntryC_somFree SOMObject_somFree
  306. #define SOMTTypedefEntryC_somGetClass SOMObject_somGetClass
  307. #define SOMTTypedefEntryC_somGetClassName SOMObject_somGetClassName
  308. #define SOMTTypedefEntryC_somGetSize SOMObject_somGetSize
  309. #define SOMTTypedefEntryC_somIsA SOMObject_somIsA
  310. #define SOMTTypedefEntryC_somIsInstanceOf SOMObject_somIsInstanceOf
  311. #define SOMTTypedefEntryC_somRespondsTo SOMObject_somRespondsTo
  312. #define SOMTTypedefEntryC_somDispatch SOMObject_somDispatch
  313. #define SOMTTypedefEntryC_somClassDispatch SOMObject_somClassDispatch
  314. #define SOMTTypedefEntryC_somCastObj SOMObject_somCastObj
  315. #define SOMTTypedefEntryC_somResetObj SOMObject_somResetObj
  316. #define SOMTTypedefEntryC_somDispatchV SOMObject_somDispatchV
  317. #define SOMTTypedefEntryC_somDispatchL SOMObject_somDispatchL
  318. #define SOMTTypedefEntryC_somDispatchA SOMObject_somDispatchA
  319. #define SOMTTypedefEntryC_somDispatchD SOMObject_somDispatchD
  320. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  321.  
  322. #endif       /* SOM_SOMTTypedefEntryC_h */
  323.