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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: h:\somnt\include\excptdef.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: Development
  7.  *     SOM Emitter emith.dll: Development
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *    COMPONENT_NAME: somi
  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.  * 
  23.  *   ExceptionDef: CORBA Interface for exception definitions
  24.  *   See CORBA 7.5.10, p.138
  25.  */
  26.  
  27.  
  28. #ifndef SOM_ExceptionDef_h
  29. #define SOM_ExceptionDef_h
  30.  
  31.  
  32. /*
  33.  * Passthru lines: File: "C.h", "before"
  34.  */
  35.  
  36.     #include <somtcnst.h>
  37.     #include <somir.h>
  38.     #include <containd.h>
  39.  
  40.  
  41. #include <som.h>
  42.  
  43. /*
  44.  * -- This emitter treats Method Tokens as Thunks by default.
  45.  * -- Use the sc modifier "nothunks" to change this default
  46.  */
  47. #undef somresolve_
  48. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  49.  
  50. /*
  51.  * Define the class name as an object type
  52.  */
  53. #ifndef ExceptionDef
  54. #define ExceptionDef SOMObject
  55. #endif
  56. #include <containd.h>
  57.  
  58. /*
  59.  * Start of user-defined types:
  60.  */
  61. #ifndef SOMClass
  62.     #define SOMClass SOMObject
  63. #endif /* SOMClass */
  64. #ifndef Container
  65.     #define Container SOMObject
  66. #endif /* Container */
  67. typedef
  68. struct ExceptionDef_ExceptionDescription {
  69. Identifier name;
  70. RepositoryId id;
  71. RepositoryId defined_in;
  72. TypeCode type;
  73. } ExceptionDef_ExceptionDescription;
  74.  
  75. /*
  76.  *  The inherited describe method returns an instance of this
  77.  *  (ExceptionDescription) structure in the "value" member of the
  78.  *  Description structure defined in the Contained interface.
  79.  */
  80.  
  81. #ifndef SOM_DONT_USE_SHORT_NAMES
  82. #ifndef SOMTGD_ExceptionDescription
  83.     #ifdef ExceptionDescription
  84.         #undef ExceptionDescription
  85.         #define SOMTGD_ExceptionDescription 1
  86.     #else
  87.         #define ExceptionDescription ExceptionDef_ExceptionDescription
  88.     #endif /* ExceptionDescription */
  89. #endif /* SOMTGD_ExceptionDescription */
  90. #endif /* SOM_DONT_USE_SHORT_NAMES */
  91.  
  92. /*
  93.  * End of user-defined types.
  94.  */
  95.  
  96. #define ExceptionDef_MajorVersion 2
  97. #define ExceptionDef_MinorVersion 1
  98.  
  99. /*
  100.  * External name shortening if required
  101.  */
  102. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  103. #define ExceptionDefNewClass c
  104. #define ExceptionDefClassData d
  105. #define ExceptionDefCClassData x
  106. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  107. /*--------------Migration------------*/
  108. #define ExceptionDef_classObj ExceptionDefClassData.classObject
  109. #define _ExceptionDef ExceptionDef_classObj
  110.  
  111. /*
  112.  * Declare the class creation procedure
  113.  */
  114. SOMEXTERN
  115. #if (defined(SOM_Module_excptdef_Source) || defined(ExceptionDef_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ExceptionDef))
  116. WIN32_DLLEXPORT
  117. #else
  118. WIN32_DLLIMPORT
  119. #endif
  120. SOMClass * SOMLINK ExceptionDefNewClass(integer4 somntmajorVersion,
  121.         integer4 somntminorVersion);
  122.  
  123. /*
  124.  * Declare the class data structure
  125.  */
  126. SOMEXTERN struct ExceptionDefClassDataStructure {
  127.     SOMClass *classObject;
  128.     somMToken _get_type;
  129.     somMToken _set_type;
  130. #if (defined(SOM_Module_excptdef_Source) || defined(ExceptionDef_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ExceptionDef))
  131. } WIN32_DLLEXPORT SOMDLINK ExceptionDefClassData;
  132. #else
  133. } WIN32_DLLIMPORT SOMDLINK ExceptionDefClassData;
  134. #endif
  135.  
  136. /*
  137.  * Declare the C specific class data structure
  138.  */
  139. SOMEXTERN struct ExceptionDefCClassDataStructure {
  140.     somMethodTabs parentMtab;
  141.     somDToken instanceDataToken;
  142. #if (defined(SOM_Module_excptdef_Source) || defined(ExceptionDef_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ExceptionDef))
  143. } WIN32_DLLEXPORT SOMDLINK ExceptionDefCClassData;
  144. #else
  145. } WIN32_DLLIMPORT SOMDLINK ExceptionDefCClassData;
  146. #endif
  147.  
  148. /*
  149.  * New and Renew macros for ExceptionDef
  150.  */
  151. #define ExceptionDefNew() \
  152.    (_somNew(_ExceptionDef ? _ExceptionDef : ExceptionDefNewClass(ExceptionDef_MajorVersion, ExceptionDef_MinorVersion)))
  153. #define ExceptionDefRenew(buf) \
  154.    (_somRenew(_ExceptionDef ? _ExceptionDef : ExceptionDefNewClass(ExceptionDef_MajorVersion, ExceptionDef_MinorVersion), buf))
  155.  
  156. /*
  157.  * Override method: somInit
  158.  */
  159. #define ExceptionDef_somInit(somSelf) \
  160.     SOMObject_somInit(somSelf)
  161.  
  162. /*
  163.  * Override method: somUninit
  164.  */
  165. #define ExceptionDef_somUninit(somSelf) \
  166.     SOMObject_somUninit(somSelf)
  167.  
  168. /*
  169.  * Override method: somDumpSelf
  170.  */
  171. #define ExceptionDef_somDumpSelf(somSelf,level) \
  172.     SOMObject_somDumpSelf(somSelf,level)
  173.  
  174. /*
  175.  * Override method: somDumpSelfInt
  176.  */
  177. #define ExceptionDef_somDumpSelfInt(somSelf,level) \
  178.     SOMObject_somDumpSelfInt(somSelf,level)
  179.  
  180. /*
  181.  * Override method: describe
  182.  */
  183. #define ExceptionDef_describe(somSelf,ev) \
  184.     Contained_describe(somSelf,ev)
  185.  
  186. /*
  187.  * New Method: _get_type
  188.  */
  189. typedef TypeCode   SOMLINK somTP_ExceptionDef__get_type(ExceptionDef *somSelf, Environment *ev);
  190. typedef somTP_ExceptionDef__get_type *somTD_ExceptionDef__get_type;
  191. #define somMD_ExceptionDef__get_type "::ExceptionDef::_get_type"
  192. #define ExceptionDef__get_type(somSelf,ev) \
  193.     (SOM_Resolve(somSelf, ExceptionDef, _get_type) \
  194.     (somSelf,ev))
  195. #ifndef SOMGD_get_type
  196.     #if (defined(_get_type) || defined(__get_type))
  197.         #undef _get_type
  198.         #undef __get_type
  199.         #define SOMGD_get_type 1
  200.     #else
  201.         #define __get_type ExceptionDef__get_type
  202.     #endif /* __get_type */
  203. #endif /* SOMGD_get_type */
  204.  
  205. /*
  206.  * New Method: _set_type
  207.  */
  208. typedef void   SOMLINK somTP_ExceptionDef__set_type(ExceptionDef *somSelf, Environment *ev,
  209.         TypeCode type);
  210. typedef somTP_ExceptionDef__set_type *somTD_ExceptionDef__set_type;
  211. #define somMD_ExceptionDef__set_type "::ExceptionDef::_set_type"
  212. #define ExceptionDef__set_type(somSelf,ev,type) \
  213.     (SOM_Resolve(somSelf, ExceptionDef, _set_type) \
  214.     (somSelf,ev,type))
  215. #ifndef SOMGD_set_type
  216.     #if (defined(_set_type) || defined(__set_type))
  217.         #undef _set_type
  218.         #undef __set_type
  219.         #define SOMGD_set_type 1
  220.     #else
  221.         #define __set_type ExceptionDef__set_type
  222.     #endif /* __set_type */
  223. #endif /* SOMGD_set_type */
  224. #ifndef SOM_DONT_USE_INHERITED_MACROS
  225. #define ExceptionDef__get_name Contained__get_name
  226. #define ExceptionDef__set_name Contained__set_name
  227. #define ExceptionDef__get_id Contained__get_id
  228. #define ExceptionDef__set_id Contained__set_id
  229. #define ExceptionDef__get_defined_in Contained__get_defined_in
  230. #define ExceptionDef__set_defined_in Contained__set_defined_in
  231. #define ExceptionDef__get_somModifiers Contained__get_somModifiers
  232. #define ExceptionDef__set_somModifiers Contained__set_somModifiers
  233. #define ExceptionDef_within Contained_within
  234. #define ExceptionDef_somDefaultInit SOMObject_somDefaultInit
  235. #define ExceptionDef_somDestruct SOMObject_somDestruct
  236. #define ExceptionDef_somDefaultCopyInit SOMObject_somDefaultCopyInit
  237. #define ExceptionDef_somDefaultAssign SOMObject_somDefaultAssign
  238. #define ExceptionDef_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
  239. #define ExceptionDef_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
  240. #define ExceptionDef_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
  241. #define ExceptionDef_somDefaultConstAssign SOMObject_somDefaultConstAssign
  242. #define ExceptionDef_somDefaultVAssign SOMObject_somDefaultVAssign
  243. #define ExceptionDef_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
  244. #define ExceptionDef_somFree SOMObject_somFree
  245. #define ExceptionDef_somGetClass SOMObject_somGetClass
  246. #define ExceptionDef_somGetClassName SOMObject_somGetClassName
  247. #define ExceptionDef_somGetSize SOMObject_somGetSize
  248. #define ExceptionDef_somIsA SOMObject_somIsA
  249. #define ExceptionDef_somIsInstanceOf SOMObject_somIsInstanceOf
  250. #define ExceptionDef_somRespondsTo SOMObject_somRespondsTo
  251. #define ExceptionDef_somDispatch SOMObject_somDispatch
  252. #define ExceptionDef_somClassDispatch SOMObject_somClassDispatch
  253. #define ExceptionDef_somCastObj SOMObject_somCastObj
  254. #define ExceptionDef_somResetObj SOMObject_somResetObj
  255. #define ExceptionDef_somPrintSelf SOMObject_somPrintSelf
  256. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  257.  
  258. #endif       /* SOM_ExceptionDef_h */
  259.