home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / scmeta.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  10.7 KB  |  277 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: h:\somnt\include\scmeta.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: Development
  7.  *     SOM Emitter emith.dll: Development
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *   COMPONENT_NAME: some
  13.  * 
  14.  *   ORIGINS: 27
  15.  * 
  16.  * 
  17.  *   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  18.  *   All Rights Reserved
  19.  *   Licensed Materials - Property of IBM
  20.  *   US Government Users Restricted Rights - Use, duplication or
  21.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  22.  *  %Z% %I% %W% %G% %U% [%H% %T%]
  23.  * 
  24.  */
  25.  
  26.  
  27. #ifndef SOM_SOMTMetaClassEntryC_h
  28. #define SOM_SOMTMetaClassEntryC_h
  29.  
  30.  
  31. #include <som.h>
  32.  
  33. /*
  34.  * -- This emitter treats Method Tokens as Thunks by default.
  35.  * -- Use the sc modifier "nothunks" to change this default
  36.  */
  37. #undef somresolve_
  38. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  39.  
  40. /*
  41.  * Define the class name as an object type
  42.  */
  43. #ifndef SOMTMetaClassEntryC
  44. #define SOMTMetaClassEntryC SOMObject
  45. #endif
  46. #include <scentry.h>
  47.  
  48. /*
  49.  * Start of user-defined types:
  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 user-defined types.
  120.  */
  121.  
  122. #define SOMTMetaClassEntryC_MajorVersion 2
  123. #define SOMTMetaClassEntryC_MinorVersion 1
  124.  
  125. /*
  126.  * External name shortening if required
  127.  */
  128. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  129. #define SOMTMetaClassEntryCNewClass c
  130. #define SOMTMetaClassEntryCClassData d
  131. #define SOMTMetaClassEntryCCClassData x
  132. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  133. /*--------------Migration------------*/
  134. #define SOMTMetaClassEntryC_classObj SOMTMetaClassEntryCClassData.classObject
  135. #define _SOMTMetaClassEntryC SOMTMetaClassEntryC_classObj
  136.  
  137. /*
  138.  * Declare the class creation procedure
  139.  */
  140. SOMEXTERN
  141. #if (defined(SOM_Module_scmeta_Source) || defined(SOMTMetaClassEntryC_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_SOMTMetaClassEntryC))
  142. WIN32_DLLEXPORT
  143. #else
  144. WIN32_DLLIMPORT
  145. #endif
  146. SOMClass * SOMLINK SOMTMetaClassEntryCNewClass(integer4 somntmajorVersion,
  147.         integer4 somntminorVersion);
  148.  
  149. /*
  150.  * Declare the class data structure
  151.  */
  152. SOMEXTERN struct SOMTMetaClassEntryCClassDataStructure {
  153.     SOMClass *classObject;
  154.     somMToken _get_somtMetaFile;
  155.     somMToken _get_somtMetaClassDef;
  156. #if (defined(SOM_Module_scmeta_Source) || defined(SOMTMetaClassEntryC_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_SOMTMetaClassEntryC))
  157. } WIN32_DLLEXPORT SOMDLINK SOMTMetaClassEntryCClassData;
  158. #else
  159. } WIN32_DLLIMPORT SOMDLINK SOMTMetaClassEntryCClassData;
  160. #endif
  161.  
  162. /*
  163.  * Declare the C specific class data structure
  164.  */
  165. SOMEXTERN struct SOMTMetaClassEntryCCClassDataStructure {
  166.     somMethodTabs parentMtab;
  167.     somDToken instanceDataToken;
  168. #if (defined(SOM_Module_scmeta_Source) || defined(SOMTMetaClassEntryC_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_SOMTMetaClassEntryC))
  169. } WIN32_DLLEXPORT SOMDLINK SOMTMetaClassEntryCCClassData;
  170. #else
  171. } WIN32_DLLIMPORT SOMDLINK SOMTMetaClassEntryCCClassData;
  172. #endif
  173.  
  174. /*
  175.  * New and Renew macros for SOMTMetaClassEntryC
  176.  */
  177. #define SOMTMetaClassEntryCNew() \
  178.    (_somNew(_SOMTMetaClassEntryC ? _SOMTMetaClassEntryC : SOMTMetaClassEntryCNewClass(SOMTMetaClassEntryC_MajorVersion, SOMTMetaClassEntryC_MinorVersion)))
  179. #define SOMTMetaClassEntryCRenew(buf) \
  180.    (_somRenew(_SOMTMetaClassEntryC ? _SOMTMetaClassEntryC : SOMTMetaClassEntryCNewClass(SOMTMetaClassEntryC_MajorVersion, SOMTMetaClassEntryC_MinorVersion), buf))
  181.  
  182. /*
  183.  * Override method: somtSetSymbolsOnEntry
  184.  */
  185. #define SOMTMetaClassEntryC_somtSetSymbolsOnEntry(somSelf,emitter,prefix) \
  186.     SOMTEntryC_somtSetSymbolsOnEntry(somSelf,emitter,prefix)
  187.  
  188. /*
  189.  * Override method: somDumpSelfInt
  190.  */
  191. #define SOMTMetaClassEntryC_somDumpSelfInt(somSelf,level) \
  192.     SOMObject_somDumpSelfInt(somSelf,level)
  193.  
  194. /*
  195.  * New Method: _get_somtMetaFile
  196.  */
  197. typedef string   SOMLINK somTP_SOMTMetaClassEntryC__get_somtMetaFile(SOMTMetaClassEntryC *somSelf);
  198. typedef somTP_SOMTMetaClassEntryC__get_somtMetaFile *somTD_SOMTMetaClassEntryC__get_somtMetaFile;
  199. #define somMD_SOMTMetaClassEntryC__get_somtMetaFile "::SOMTMetaClassEntryC::_get_somtMetaFile"
  200. #define SOMTMetaClassEntryC__get_somtMetaFile(somSelf) \
  201.     (SOM_Resolve(somSelf, SOMTMetaClassEntryC, _get_somtMetaFile) \
  202.     (somSelf))
  203. #ifndef SOMGD_get_somtMetaFile
  204.     #if (defined(_get_somtMetaFile) || defined(__get_somtMetaFile))
  205.         #undef _get_somtMetaFile
  206.         #undef __get_somtMetaFile
  207.         #define SOMGD_get_somtMetaFile 1
  208.     #else
  209.         #define __get_somtMetaFile SOMTMetaClassEntryC__get_somtMetaFile
  210.     #endif /* __get_somtMetaFile */
  211. #endif /* SOMGD_get_somtMetaFile */
  212.  
  213. /*
  214.  * New Method: _get_somtMetaClassDef
  215.  */
  216. typedef SOMTClassEntryC*   SOMLINK somTP_SOMTMetaClassEntryC__get_somtMetaClassDef(SOMTMetaClassEntryC *somSelf);
  217. typedef somTP_SOMTMetaClassEntryC__get_somtMetaClassDef *somTD_SOMTMetaClassEntryC__get_somtMetaClassDef;
  218. #define somMD_SOMTMetaClassEntryC__get_somtMetaClassDef "::SOMTMetaClassEntryC::_get_somtMetaClassDef"
  219. #define SOMTMetaClassEntryC__get_somtMetaClassDef(somSelf) \
  220.     (SOM_Resolve(somSelf, SOMTMetaClassEntryC, _get_somtMetaClassDef) \
  221.     (somSelf))
  222. #ifndef SOMGD_get_somtMetaClassDef
  223.     #if (defined(_get_somtMetaClassDef) || defined(__get_somtMetaClassDef))
  224.         #undef _get_somtMetaClassDef
  225.         #undef __get_somtMetaClassDef
  226.         #define SOMGD_get_somtMetaClassDef 1
  227.     #else
  228.         #define __get_somtMetaClassDef SOMTMetaClassEntryC__get_somtMetaClassDef
  229.     #endif /* __get_somtMetaClassDef */
  230. #endif /* SOMGD_get_somtMetaClassDef */
  231. #ifndef SOM_DONT_USE_INHERITED_MACROS
  232. #define SOMTMetaClassEntryC__get_somtEntryName SOMTEntryC__get_somtEntryName
  233. #define SOMTMetaClassEntryC__set_somtEntryName SOMTEntryC__set_somtEntryName
  234. #define SOMTMetaClassEntryC__get_somtElementType SOMTEntryC__get_somtElementType
  235. #define SOMTMetaClassEntryC__set_somtElementType SOMTEntryC__set_somtElementType
  236. #define SOMTMetaClassEntryC__get_somtElementTypeName SOMTEntryC__get_somtElementTypeName
  237. #define SOMTMetaClassEntryC__get_somtEntryComment SOMTEntryC__get_somtEntryComment
  238. #define SOMTMetaClassEntryC__get_somtSourceLineNumber SOMTEntryC__get_somtSourceLineNumber
  239. #define SOMTMetaClassEntryC__get_somtTypeCode SOMTEntryC__get_somtTypeCode
  240. #define SOMTMetaClassEntryC__get_somtIsReference SOMTEntryC__get_somtIsReference
  241. #define SOMTMetaClassEntryC__get_somtIDLScopedName SOMTEntryC__get_somtIDLScopedName
  242. #define SOMTMetaClassEntryC__get_somtCScopedName SOMTEntryC__get_somtCScopedName
  243. #define SOMTMetaClassEntryC_somtGetModifierValue SOMTEntryC_somtGetModifierValue
  244. #define SOMTMetaClassEntryC_somtGetFirstModifier SOMTEntryC_somtGetFirstModifier
  245. #define SOMTMetaClassEntryC_somtGetNextModifier SOMTEntryC_somtGetNextModifier
  246. #define SOMTMetaClassEntryC_somtFormatModifier SOMTEntryC_somtFormatModifier
  247. #define SOMTMetaClassEntryC_somtGetModifierList SOMTEntryC_somtGetModifierList
  248. #define SOMTMetaClassEntryC_somtSetEntryStruct SOMTEntryC_somtSetEntryStruct
  249. #define SOMTMetaClassEntryC_somDefaultInit SOMObject_somDefaultInit
  250. #define SOMTMetaClassEntryC_somDestruct SOMObject_somDestruct
  251. #define SOMTMetaClassEntryC_somDefaultCopyInit SOMObject_somDefaultCopyInit
  252. #define SOMTMetaClassEntryC_somDefaultAssign SOMObject_somDefaultAssign
  253. #define SOMTMetaClassEntryC_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
  254. #define SOMTMetaClassEntryC_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
  255. #define SOMTMetaClassEntryC_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
  256. #define SOMTMetaClassEntryC_somDefaultConstAssign SOMObject_somDefaultConstAssign
  257. #define SOMTMetaClassEntryC_somDefaultVAssign SOMObject_somDefaultVAssign
  258. #define SOMTMetaClassEntryC_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
  259. #define SOMTMetaClassEntryC_somInit SOMObject_somInit
  260. #define SOMTMetaClassEntryC_somFree SOMObject_somFree
  261. #define SOMTMetaClassEntryC_somUninit SOMObject_somUninit
  262. #define SOMTMetaClassEntryC_somGetClass SOMObject_somGetClass
  263. #define SOMTMetaClassEntryC_somGetClassName SOMObject_somGetClassName
  264. #define SOMTMetaClassEntryC_somGetSize SOMObject_somGetSize
  265. #define SOMTMetaClassEntryC_somIsA SOMObject_somIsA
  266. #define SOMTMetaClassEntryC_somIsInstanceOf SOMObject_somIsInstanceOf
  267. #define SOMTMetaClassEntryC_somRespondsTo SOMObject_somRespondsTo
  268. #define SOMTMetaClassEntryC_somDispatch SOMObject_somDispatch
  269. #define SOMTMetaClassEntryC_somClassDispatch SOMObject_somClassDispatch
  270. #define SOMTMetaClassEntryC_somCastObj SOMObject_somCastObj
  271. #define SOMTMetaClassEntryC_somResetObj SOMObject_somResetObj
  272. #define SOMTMetaClassEntryC_somPrintSelf SOMObject_somPrintSelf
  273. #define SOMTMetaClassEntryC_somDumpSelf SOMObject_somDumpSelf
  274. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  275.  
  276. #endif       /* SOM_SOMTMetaClassEntryC_h */
  277.