home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / operatdf.xh < prev    next >
Encoding:
Text File  |  1996-02-22  |  25.8 KB  |  847 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: h:\somnt\include\operatdf.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: Development
  7.  *     SOM Emitter emitxh.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.  *   OperationDef: CORBA Interface for operation definitions
  24.  *   See CORBA 7.5.6, pp.135-136
  25.  */
  26.  
  27.  
  28. #ifndef SOM_OperationDef_xh
  29. #define SOM_OperationDef_xh
  30.  
  31. class OperationDef;
  32.  
  33. #define OperationDef_MajorVersion 2
  34. #define OperationDef_MinorVersion 1
  35.  
  36. /*
  37.  * Passthru lines: File: "C.xh", "before"
  38.  */
  39.  
  40.     #include <somtcnst.xh>
  41.     #include <somir.xh>
  42.     #include <paramdef.xh>
  43.     #include <excptdef.xh>
  44.  
  45.     #define ContextIdentifier string
  46.     #define _IDL_SEQUENCE_ContextIdentifier _IDL_SEQUENCE_string
  47.  
  48.  
  49. /* C++ SOM defs */
  50. #include <somcls.xh>
  51. #include <somcm.xh>
  52.  
  53. /* C++ parent defs */
  54. #ifndef SOM_Contained_xh
  55. #include <containd.xh>
  56. #endif
  57. #ifndef SOM_Container_xh
  58. #include <containr.xh>
  59. #endif
  60.  
  61. #ifndef OperationDef_API
  62. #define OperationDef_API
  63. /*
  64.  * -- The Class API
  65.  */
  66.  
  67. /*
  68.  * Start of user-defined types:
  69.  */
  70. class SOMClass;
  71. class SOMObject;
  72. class Container;
  73. typedef unsigned long OperationDef_OperationMode;
  74. #define OperationDef_NORMAL 1UL
  75. #define OperationDef_ONEWAY 2UL
  76. #ifndef _IDL_SEQUENCE_string_defined
  77. #define _IDL_SEQUENCE_string_defined
  78. typedef struct {
  79.     unsigned long _maximum;
  80.     unsigned long _length;
  81.     string *_buffer;
  82. } _IDL_SEQUENCE_string;
  83. #endif /* _IDL_SEQUENCE_string_defined */ 
  84. struct ParameterDef_ParameterDescription;
  85. #ifndef _IDL_SEQUENCE_ParameterDef_ParameterDescription_defined
  86. #define _IDL_SEQUENCE_ParameterDef_ParameterDescription_defined
  87. typedef struct {
  88.     unsigned long _maximum;
  89.     unsigned long _length;
  90.     struct ParameterDef_ParameterDescription *_buffer;
  91. } _IDL_SEQUENCE_ParameterDef_ParameterDescription;
  92. #endif /* _IDL_SEQUENCE_ParameterDef_ParameterDescription_defined */ 
  93. struct ExceptionDef_ExceptionDescription;
  94. #ifndef _IDL_SEQUENCE_ExceptionDef_ExceptionDescription_defined
  95. #define _IDL_SEQUENCE_ExceptionDef_ExceptionDescription_defined
  96. typedef struct {
  97.     unsigned long _maximum;
  98.     unsigned long _length;
  99.     struct ExceptionDef_ExceptionDescription *_buffer;
  100. } _IDL_SEQUENCE_ExceptionDef_ExceptionDescription;
  101. #endif /* _IDL_SEQUENCE_ExceptionDef_ExceptionDescription_defined */ 
  102. typedef
  103. struct OperationDef_OperationDescription {
  104. Identifier name;
  105. RepositoryId id;
  106. RepositoryId defined_in;
  107. TypeCode result;
  108. OperationDef_OperationMode mode;
  109. _IDL_SEQUENCE_string contexts;
  110. _IDL_SEQUENCE_ParameterDef_ParameterDescription parameter;
  111. _IDL_SEQUENCE_ExceptionDef_ExceptionDescription exceptions;
  112. } OperationDef_OperationDescription;
  113.  
  114. /*
  115.  *  The inherited describe method returns an instance of this
  116.  *  (OperationDescription) structure in the "value" member of the
  117.  *  Description structure defined in the Contained interface.
  118.  *  The inherited describe_contents method in the Container
  119.  *  interface returns a sequence of these Description structures
  120.  *  each carrying a reference to an OperationDescription structure
  121.  *  in its "value" member.
  122.  */
  123.  
  124. #ifndef SOM_DONT_USE_SHORT_NAMES
  125. #ifndef SOMTGD_OperationMode
  126.     #ifdef OperationMode
  127.         #undef OperationMode
  128.         #define SOMTGD_OperationMode 1
  129.     #else
  130.         #define OperationMode OperationDef_OperationMode
  131.     #endif /* OperationMode */
  132. #endif /* SOMTGD_OperationMode */
  133. #ifndef SOMTGD__IDL_SEQUENCE_ParameterDescription
  134.     #ifdef _IDL_SEQUENCE_ParameterDescription
  135.         #undef _IDL_SEQUENCE_ParameterDescription
  136.         #define SOMTGD__IDL_SEQUENCE_ParameterDescription 1
  137.     #else
  138.         #define _IDL_SEQUENCE_ParameterDescription _IDL_SEQUENCE_ParameterDef_ParameterDescription
  139.     #endif /* _IDL_SEQUENCE_ParameterDescription */
  140. #endif /* SOMTGD__IDL_SEQUENCE_ParameterDescription */
  141. #ifndef SOMTGD__IDL_SEQUENCE_ExceptionDescription
  142.     #ifdef _IDL_SEQUENCE_ExceptionDescription
  143.         #undef _IDL_SEQUENCE_ExceptionDescription
  144.         #define SOMTGD__IDL_SEQUENCE_ExceptionDescription 1
  145.     #else
  146.         #define _IDL_SEQUENCE_ExceptionDescription _IDL_SEQUENCE_ExceptionDef_ExceptionDescription
  147.     #endif /* _IDL_SEQUENCE_ExceptionDescription */
  148. #endif /* SOMTGD__IDL_SEQUENCE_ExceptionDescription */
  149. #ifndef SOMTGD_OperationDescription
  150.     #ifdef OperationDescription
  151.         #undef OperationDescription
  152.         #define SOMTGD_OperationDescription 1
  153.     #else
  154.         #define OperationDescription OperationDef_OperationDescription
  155.     #endif /* OperationDescription */
  156. #endif /* SOMTGD_OperationDescription */
  157. #endif /* SOM_DONT_USE_SHORT_NAMES */
  158.  
  159. /*
  160.  * End of user-defined types.
  161.  */
  162.  
  163. /* A procedure to create the OperationDef Class */
  164. SOMEXTERN
  165. #if (defined(SOM_Module_operatdf_Source) || defined(OperationDef_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_OperationDef))
  166. WIN32_DLLEXPORT
  167. #else
  168. WIN32_DLLIMPORT
  169. #endif
  170. SOMClass * SOMLINK OperationDefNewClass(
  171.         integer4,
  172.         integer4 );
  173.  
  174. /* The API to the OperationDef class object, and the methods it introduces. */
  175. SOMEXTERN struct OperationDefClassDataStructure {
  176.     SOMClass *classObject;
  177.     somMToken _get_result;
  178.     somMToken _set_result;
  179.     somMToken _get_mode;
  180.     somMToken _set_mode;
  181.     somMToken _get_contexts;
  182.     somMToken _set_contexts;
  183. }
  184. #if !(defined(SOM_Module_operatdf_Source) || defined(OperationDef_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_OperationDef))
  185. WIN32_DLLIMPORT
  186. #elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
  187. WIN32_DLLEXPORT
  188. #endif
  189. SOMDLINK OperationDefClassData;
  190. #define _OperationDef OperationDefClassData.classObject
  191.  
  192. /* The API to parentMtabs for OperationDef, and the instance data it introduces. */
  193. SOMEXTERN struct OperationDefCClassDataStructure {
  194.     somMethodTabs parentMtab;
  195.     somDToken              instanceDataToken;
  196. }
  197. #if !(defined(SOM_Module_operatdf_Source) || defined(OperationDef_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_OperationDef))
  198. WIN32_DLLIMPORT
  199. #elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
  200. WIN32_DLLEXPORT
  201. #endif
  202. SOMDLINK OperationDefCClassData;
  203.  
  204. /*
  205.  * -- Typedefs for OperationDef Method Procedures
  206.  */
  207. extern "C" {
  208. typedef TypeCode   SOMLINK somTP_OperationDef__get_result(OperationDef *somSelf, Environment *ev);
  209. typedef somTP_OperationDef__get_result *somTD_OperationDef__get_result;
  210. typedef void   SOMLINK somTP_OperationDef__set_result(OperationDef *somSelf, Environment *ev,
  211.         TypeCode result);
  212. typedef somTP_OperationDef__set_result *somTD_OperationDef__set_result;
  213. typedef OperationDef_OperationMode   SOMLINK somTP_OperationDef__get_mode(OperationDef *somSelf, Environment *ev);
  214. typedef somTP_OperationDef__get_mode *somTD_OperationDef__get_mode;
  215. typedef void   SOMLINK somTP_OperationDef__set_mode(OperationDef *somSelf, Environment *ev,
  216.         OperationDef_OperationMode mode);
  217. typedef somTP_OperationDef__set_mode *somTD_OperationDef__set_mode;
  218. typedef _IDL_SEQUENCE_string   SOMLINK somTP_OperationDef__get_contexts(OperationDef *somSelf, Environment *ev);
  219. typedef somTP_OperationDef__get_contexts *somTD_OperationDef__get_contexts;
  220. typedef void   SOMLINK somTP_OperationDef__set_contexts(OperationDef *somSelf, Environment *ev,
  221.         _IDL_SEQUENCE_string* contexts);
  222. typedef somTP_OperationDef__set_contexts *somTD_OperationDef__set_contexts;
  223.  
  224. /*
  225.  * -- Typedefs for Reintroduced Wrapper Methods
  226.  */
  227. typedef Identifier   SOMLINK somTP_OperationDef__get_name(OperationDef *somSelf, Environment *ev);
  228. typedef somTP_OperationDef__get_name *somTD_OperationDef__get_name;
  229. typedef void   SOMLINK somTP_OperationDef__set_name(OperationDef *somSelf, Environment *ev,
  230.         Identifier name);
  231. typedef somTP_OperationDef__set_name *somTD_OperationDef__set_name;
  232. typedef RepositoryId   SOMLINK somTP_OperationDef__get_id(OperationDef *somSelf, Environment *ev);
  233. typedef somTP_OperationDef__get_id *somTD_OperationDef__get_id;
  234. typedef void   SOMLINK somTP_OperationDef__set_id(OperationDef *somSelf, Environment *ev,
  235.         RepositoryId id);
  236. typedef somTP_OperationDef__set_id *somTD_OperationDef__set_id;
  237. typedef RepositoryId   SOMLINK somTP_OperationDef__get_defined_in(OperationDef *somSelf, Environment *ev);
  238. typedef somTP_OperationDef__get_defined_in *somTD_OperationDef__get_defined_in;
  239. typedef void   SOMLINK somTP_OperationDef__set_defined_in(OperationDef *somSelf, Environment *ev,
  240.         RepositoryId defined_in);
  241. typedef somTP_OperationDef__set_defined_in *somTD_OperationDef__set_defined_in;
  242. typedef _IDL_SEQUENCE_somModifier   SOMLINK somTP_OperationDef__get_somModifiers(OperationDef *somSelf, Environment *ev);
  243. typedef somTP_OperationDef__get_somModifiers *somTD_OperationDef__get_somModifiers;
  244. typedef void   SOMLINK somTP_OperationDef__set_somModifiers(OperationDef *somSelf, Environment *ev,
  245.         _IDL_SEQUENCE_somModifier* somModifiers);
  246. typedef somTP_OperationDef__set_somModifiers *somTD_OperationDef__set_somModifiers;
  247. typedef _IDL_SEQUENCE_Container   SOMLINK somTP_OperationDef_within(OperationDef *somSelf, Environment *ev);
  248. typedef somTP_OperationDef_within *somTD_OperationDef_within;
  249. typedef Contained_Description   SOMLINK somTP_OperationDef_describe(OperationDef *somSelf, Environment *ev);
  250. typedef somTP_OperationDef_describe *somTD_OperationDef_describe;
  251. typedef void   SOMLINK somTP_OperationDef_somFree(OperationDef *somSelf);
  252. typedef somTP_OperationDef_somFree *somTD_OperationDef_somFree;
  253. typedef void   SOMLINK somTP_OperationDef_somInit(OperationDef *somSelf);
  254. typedef somTP_OperationDef_somInit *somTD_OperationDef_somInit;
  255. typedef void   SOMLINK somTP_OperationDef_somUninit(OperationDef *somSelf);
  256. typedef somTP_OperationDef_somUninit *somTD_OperationDef_somUninit;
  257. typedef void   SOMLINK somTP_OperationDef_somDumpSelf(OperationDef *somSelf,
  258.         long level);
  259. typedef somTP_OperationDef_somDumpSelf *somTD_OperationDef_somDumpSelf;
  260. typedef void   SOMLINK somTP_OperationDef_somDumpSelfInt(OperationDef *somSelf,
  261.         long level);
  262. typedef somTP_OperationDef_somDumpSelfInt *somTD_OperationDef_somDumpSelfInt;
  263. typedef void   SOMLINK somTP_OperationDef_somDefaultInit(OperationDef *somSelf,
  264.         somInitCtrl* ctrl);
  265. typedef somTP_OperationDef_somDefaultInit *somTD_OperationDef_somDefaultInit;
  266. typedef void   SOMLINK somTP_OperationDef_somDestruct(OperationDef *somSelf,
  267.         octet doFree,
  268.         somDestructCtrl* ctrl);
  269. typedef somTP_OperationDef_somDestruct *somTD_OperationDef_somDestruct;
  270. typedef void   SOMLINK somTP_OperationDef_somDefaultCopyInit(OperationDef *somSelf,
  271.         somInitCtrl* ctrl,
  272.         SOMObject* fromObj);
  273. typedef somTP_OperationDef_somDefaultCopyInit *somTD_OperationDef_somDefaultCopyInit;
  274. typedef OperationDef*   SOMLINK somTP_OperationDef_somDefaultAssign(OperationDef *somSelf,
  275.         somAssignCtrl* ctrl,
  276.         SOMObject* fromObj);
  277. typedef somTP_OperationDef_somDefaultAssign *somTD_OperationDef_somDefaultAssign;
  278. typedef void   SOMLINK somTP_OperationDef_somDefaultConstCopyInit(OperationDef *somSelf,
  279.         somInitCtrl* ctrl,
  280.         SOMObject* fromObj);
  281. typedef somTP_OperationDef_somDefaultConstCopyInit *somTD_OperationDef_somDefaultConstCopyInit;
  282. typedef void   SOMLINK somTP_OperationDef_somDefaultVCopyInit(OperationDef *somSelf,
  283.         somInitCtrl* ctrl,
  284.         SOMObject* fromObj);
  285. typedef somTP_OperationDef_somDefaultVCopyInit *somTD_OperationDef_somDefaultVCopyInit;
  286. typedef void   SOMLINK somTP_OperationDef_somDefaultConstVCopyInit(OperationDef *somSelf,
  287.         somInitCtrl* ctrl,
  288.         SOMObject* fromObj);
  289. typedef somTP_OperationDef_somDefaultConstVCopyInit *somTD_OperationDef_somDefaultConstVCopyInit;
  290. typedef OperationDef*   SOMLINK somTP_OperationDef_somDefaultConstAssign(OperationDef *somSelf,
  291.         somAssignCtrl* ctrl,
  292.         SOMObject* fromObj);
  293. typedef somTP_OperationDef_somDefaultConstAssign *somTD_OperationDef_somDefaultConstAssign;
  294. typedef OperationDef*   SOMLINK somTP_OperationDef_somDefaultVAssign(OperationDef *somSelf,
  295.         somAssignCtrl* ctrl,
  296.         SOMObject* fromObj);
  297. typedef somTP_OperationDef_somDefaultVAssign *somTD_OperationDef_somDefaultVAssign;
  298. typedef OperationDef*   SOMLINK somTP_OperationDef_somDefaultConstVAssign(OperationDef *somSelf,
  299.         somAssignCtrl* ctrl,
  300.         SOMObject* fromObj);
  301. typedef somTP_OperationDef_somDefaultConstVAssign *somTD_OperationDef_somDefaultConstVAssign;
  302. typedef SOMClass*   SOMLINK somTP_OperationDef_somGetClass(OperationDef *somSelf);
  303. typedef somTP_OperationDef_somGetClass *somTD_OperationDef_somGetClass;
  304. typedef string   SOMLINK somTP_OperationDef_somGetClassName(OperationDef *somSelf);
  305. typedef somTP_OperationDef_somGetClassName *somTD_OperationDef_somGetClassName;
  306. typedef long   SOMLINK somTP_OperationDef_somGetSize(OperationDef *somSelf);
  307. typedef somTP_OperationDef_somGetSize *somTD_OperationDef_somGetSize;
  308. typedef boolean   SOMLINK somTP_OperationDef_somIsA(OperationDef *somSelf,
  309.         SOMClass* aClassObj);
  310. typedef somTP_OperationDef_somIsA *somTD_OperationDef_somIsA;
  311. typedef boolean   SOMLINK somTP_OperationDef_somIsInstanceOf(OperationDef *somSelf,
  312.         SOMClass* aClassObj);
  313. typedef somTP_OperationDef_somIsInstanceOf *somTD_OperationDef_somIsInstanceOf;
  314. typedef boolean   SOMLINK somTP_OperationDef_somRespondsTo(OperationDef *somSelf,
  315.         somId mId);
  316. typedef somTP_OperationDef_somRespondsTo *somTD_OperationDef_somRespondsTo;
  317. typedef boolean   SOMLINK somTP_OperationDef_somDispatch(OperationDef *somSelf,
  318.         somToken* retValue,
  319.         somId methodId,
  320.         va_list ap);
  321. typedef somTP_OperationDef_somDispatch *somTD_OperationDef_somDispatch;
  322. typedef boolean   SOMLINK somTP_OperationDef_somClassDispatch(OperationDef *somSelf,
  323.         SOMClass* clsObj,
  324.         somToken* retValue,
  325.         somId methodId,
  326.         va_list ap);
  327. typedef somTP_OperationDef_somClassDispatch *somTD_OperationDef_somClassDispatch;
  328. typedef boolean   SOMLINK somTP_OperationDef_somCastObj(OperationDef *somSelf,
  329.         SOMClass* cls);
  330. typedef somTP_OperationDef_somCastObj *somTD_OperationDef_somCastObj;
  331. typedef boolean   SOMLINK somTP_OperationDef_somResetObj(OperationDef *somSelf);
  332. typedef somTP_OperationDef_somResetObj *somTD_OperationDef_somResetObj;
  333. typedef SOMObject*   SOMLINK somTP_OperationDef_somPrintSelf(OperationDef *somSelf);
  334. typedef somTP_OperationDef_somPrintSelf *somTD_OperationDef_somPrintSelf;
  335. typedef _IDL_SEQUENCE_Contained   SOMLINK somTP_OperationDef_contents(OperationDef *somSelf, Environment *ev,
  336.         Container_InterfaceName limit_type,
  337.         boolean exclude_inherited);
  338. typedef somTP_OperationDef_contents *somTD_OperationDef_contents;
  339. typedef _IDL_SEQUENCE_Contained   SOMLINK somTP_OperationDef_lookup_name(OperationDef *somSelf, Environment *ev,
  340.         Identifier search_name,
  341.         long levels_to_search,
  342.         Container_InterfaceName limit_type,
  343.         boolean exclude_inherited);
  344. typedef somTP_OperationDef_lookup_name *somTD_OperationDef_lookup_name;
  345. typedef _IDL_SEQUENCE_Container_ContainerDescription   SOMLINK somTP_OperationDef_describe_contents(OperationDef *somSelf, Environment *ev,
  346.         Container_InterfaceName limit_type,
  347.         boolean exclude_inherited,
  348.         long max_returned_objs);
  349. typedef somTP_OperationDef_describe_contents *somTD_OperationDef_describe_contents;
  350. }
  351.  
  352. #endif /* OperationDef_API */
  353.  
  354.  
  355. /*
  356.  * -- This emitter believes that method thunks are unavailable,
  357.  * -- so somResolve will be called.
  358.  */
  359. #undef somresolve_
  360. #define somresolve_(obj,mToken) (somResolve(obj,mToken))
  361.  
  362. /*
  363.  * -- The C++ Wrapper Class for OperationDef
  364.  */
  365. class OperationDef : public Contained, public Container
  366. {
  367. public:
  368.  
  369. // OperationDef::new creates the class object if necessary, and then uses somNewNoInit
  370. // to allocate memory and create the object. Initialization is in ctors.
  371. void *operator new(size_t)
  372. {
  373.    if (!_OperationDef) OperationDefNewClass(OperationDef_MajorVersion,OperationDef_MinorVersion);
  374.    return (void*)
  375.       SOM_Resolve(_OperationDef,SOMClass,somNewNoInit)
  376.          ((SOMClass *)((void*)_OperationDef));
  377. }
  378.  
  379. // OperationDef::delete uses somDestruct.
  380. void operator delete(void * obj)
  381. {
  382.    if (obj && *(void**)obj) {
  383.       SOM_Resolve(obj,SOMObject,somDestruct)
  384.          ((SOMObject*)obj, 1, 0);
  385.    }
  386. }
  387.  
  388. OperationDef()
  389. {
  390.    if (*(void**)this != 
  391.        ((somParentMtabStructPtr)
  392.         (OperationDefCClassData.parentMtab))->mtab)
  393.       return;
  394.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  395. }
  396.  
  397. OperationDef(OperationDef* fromObj)
  398. {
  399.    if (*(void**)this != 
  400.        ((somParentMtabStructPtr)
  401.         (OperationDefCClassData.parentMtab))->mtab)
  402.       return;
  403.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  404. }
  405.  
  406. OperationDef(const OperationDef* fromObj)
  407. {
  408.    if (*(void**)this != 
  409.        ((somParentMtabStructPtr)
  410.         (OperationDefCClassData.parentMtab))->mtab)
  411.       return;
  412.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  413. }
  414.  
  415.  
  416. /* method: _get_result */
  417. TypeCode   _get_result(Environment *ev)
  418. {
  419.    return SOM_ResolveD(this,OperationDef,OperationDef,_get_result)
  420.     (this, ev);
  421. }
  422.  
  423.  
  424. /* method: _set_result */
  425. void   _set_result(Environment *ev,
  426.         TypeCode result)
  427. {
  428.    SOM_ResolveD(this,OperationDef,OperationDef,_set_result)
  429.     (this, ev,result);
  430. }
  431.  
  432.  
  433. /* method: _get_mode */
  434. OperationDef_OperationMode   _get_mode(Environment *ev)
  435. {
  436.    return SOM_ResolveD(this,OperationDef,OperationDef,_get_mode)
  437.     (this, ev);
  438. }
  439.  
  440.  
  441. /* method: _set_mode */
  442. void   _set_mode(Environment *ev,
  443.         OperationDef_OperationMode mode)
  444. {
  445.    SOM_ResolveD(this,OperationDef,OperationDef,_set_mode)
  446.     (this, ev,mode);
  447. }
  448.  
  449.  
  450. /* method: _get_contexts */
  451. _IDL_SEQUENCE_string   _get_contexts(Environment *ev)
  452. {
  453.    return SOM_ResolveD(this,OperationDef,OperationDef,_get_contexts)
  454.     (this, ev);
  455. }
  456.  
  457.  
  458. /* method: _set_contexts */
  459. void   _set_contexts(Environment *ev,
  460.         _IDL_SEQUENCE_string* contexts)
  461. {
  462.    SOM_ResolveD(this,OperationDef,OperationDef,_set_contexts)
  463.     (this, ev,contexts);
  464. }
  465.  
  466.  
  467. /*
  468.  * Reintroduce inherited methods
  469.  */
  470.  
  471. /* method: _get_name */
  472. Identifier   _get_name(Environment *ev)
  473. {
  474.    return SOM_ResolveD(this,OperationDef,Contained,_get_name)
  475.     (this, ev);
  476. }
  477.  
  478.  
  479. /* method: _set_name */
  480. void   _set_name(Environment *ev,
  481.         Identifier name)
  482. {
  483.    SOM_ResolveD(this,OperationDef,Contained,_set_name)
  484.     (this, ev,name);
  485. }
  486.  
  487.  
  488. /* method: _get_id */
  489. RepositoryId   _get_id(Environment *ev)
  490. {
  491.    return SOM_ResolveD(this,OperationDef,Contained,_get_id)
  492.     (this, ev);
  493. }
  494.  
  495.  
  496. /* method: _set_id */
  497. void   _set_id(Environment *ev,
  498.         RepositoryId id)
  499. {
  500.    SOM_ResolveD(this,OperationDef,Contained,_set_id)
  501.     (this, ev,id);
  502. }
  503.  
  504.  
  505. /* method: _get_defined_in */
  506. RepositoryId   _get_defined_in(Environment *ev)
  507. {
  508.    return SOM_ResolveD(this,OperationDef,Contained,_get_defined_in)
  509.     (this, ev);
  510. }
  511.  
  512.  
  513. /* method: _set_defined_in */
  514. void   _set_defined_in(Environment *ev,
  515.         RepositoryId defined_in)
  516. {
  517.    SOM_ResolveD(this,OperationDef,Contained,_set_defined_in)
  518.     (this, ev,defined_in);
  519. }
  520.  
  521.  
  522. /* method: _get_somModifiers */
  523. _IDL_SEQUENCE_somModifier   _get_somModifiers(Environment *ev)
  524. {
  525.    return SOM_ResolveD(this,OperationDef,Contained,_get_somModifiers)
  526.     (this, ev);
  527. }
  528.  
  529.  
  530. /* method: _set_somModifiers */
  531. void   _set_somModifiers(Environment *ev,
  532.         _IDL_SEQUENCE_somModifier* somModifiers)
  533. {
  534.    SOM_ResolveD(this,OperationDef,Contained,_set_somModifiers)
  535.     (this, ev,somModifiers);
  536. }
  537.  
  538.  
  539. /* method: within */
  540. _IDL_SEQUENCE_Container   within(Environment *ev)
  541. {
  542.    return SOM_ResolveD(this,OperationDef,Contained,within)
  543.     (this, ev);
  544. }
  545.  
  546.  
  547. /* method: describe */
  548. Contained_Description   describe(Environment *ev)
  549. {
  550.    return SOM_ResolveD(this,OperationDef,Contained,describe)
  551.     (this, ev);
  552. }
  553.  
  554.  
  555. /* method: somFree */
  556. void   somFree()
  557. {
  558.    SOM_ResolveD(this,OperationDef,SOMObject,somFree)
  559.     (this);
  560. }
  561.  
  562.  
  563. /* method: somInit */
  564. void   somInit()
  565. {
  566.    SOM_ResolveD(this,OperationDef,SOMObject,somInit)
  567.     (this);
  568. }
  569.  
  570.  
  571. /* method: somUninit */
  572. void   somUninit()
  573. {
  574.    SOM_ResolveD(this,OperationDef,SOMObject,somUninit)
  575.     (this);
  576. }
  577.  
  578.  
  579. /* method: somDumpSelf */
  580. void   somDumpSelf(long level)
  581. {
  582.    SOM_ResolveD(this,OperationDef,SOMObject,somDumpSelf)
  583.     (this,level);
  584. }
  585.  
  586.  
  587. /* method: somDumpSelfInt */
  588. void   somDumpSelfInt(long level)
  589. {
  590.    SOM_ResolveD(this,OperationDef,SOMObject,somDumpSelfInt)
  591.     (this,level);
  592. }
  593.  
  594.  
  595. /* initializer method: somDefaultInit */
  596. void   somDefaultInit(somInitCtrl* ctrl)
  597. {
  598.    SOM_ResolveD(this,OperationDef,SOMObject,somDefaultInit)
  599.     (this,ctrl);
  600. }
  601.  
  602.  
  603. /* method: somDestruct */
  604. void   somDestruct(octet doFree,
  605.         somDestructCtrl* ctrl)
  606. {
  607.    SOM_ResolveD(this,OperationDef,SOMObject,somDestruct)
  608.     (this,doFree,ctrl);
  609. }
  610.  
  611.  
  612. /* initializer method: somDefaultCopyInit */
  613. void   somDefaultCopyInit(somInitCtrl* ctrl,
  614.         SOMObject* fromObj)
  615. {
  616.    SOM_ResolveD(this,OperationDef,SOMObject,somDefaultCopyInit)
  617.     (this,ctrl,fromObj);
  618. }
  619.  
  620.  
  621. /* method: somDefaultAssign */
  622. OperationDef*  somDefaultAssign(somAssignCtrl* ctrl,
  623.         SOMObject* fromObj)
  624. {
  625.    return SOM_ResolveD(this,OperationDef,SOMObject,somDefaultAssign)
  626.     (this,ctrl,fromObj);
  627. }
  628.  
  629.  
  630. /* initializer method: somDefaultConstCopyInit */
  631. void   somDefaultConstCopyInit(somInitCtrl* ctrl,
  632.         SOMObject* fromObj)
  633. {
  634.    SOM_ResolveD(this,OperationDef,SOMObject,somDefaultConstCopyInit)
  635.     (this,ctrl,fromObj);
  636. }
  637.  
  638.  
  639. /* initializer method: somDefaultVCopyInit */
  640. void   somDefaultVCopyInit(somInitCtrl* ctrl,
  641.         SOMObject* fromObj)
  642. {
  643.    SOM_ResolveD(this,OperationDef,SOMObject,somDefaultVCopyInit)
  644.     (this,ctrl,fromObj);
  645. }
  646.  
  647.  
  648. /* initializer method: somDefaultConstVCopyInit */
  649. void   somDefaultConstVCopyInit(somInitCtrl* ctrl,
  650.         SOMObject* fromObj)
  651. {
  652.    SOM_ResolveD(this,OperationDef,SOMObject,somDefaultConstVCopyInit)
  653.     (this,ctrl,fromObj);
  654. }
  655.  
  656.  
  657. /* method: somDefaultConstAssign */
  658. OperationDef*  somDefaultConstAssign(somAssignCtrl* ctrl,
  659.         SOMObject* fromObj)
  660. {
  661.    return SOM_ResolveD(this,OperationDef,SOMObject,somDefaultConstAssign)
  662.     (this,ctrl,fromObj);
  663. }
  664.  
  665.  
  666. /* method: somDefaultVAssign */
  667. OperationDef*  somDefaultVAssign(somAssignCtrl* ctrl,
  668.         SOMObject* fromObj)
  669. {
  670.    return SOM_ResolveD(this,OperationDef,SOMObject,somDefaultVAssign)
  671.     (this,ctrl,fromObj);
  672. }
  673.  
  674.  
  675. /* method: somDefaultConstVAssign */
  676. OperationDef*  somDefaultConstVAssign(somAssignCtrl* ctrl,
  677.         SOMObject* fromObj)
  678. {
  679.    return SOM_ResolveD(this,OperationDef,SOMObject,somDefaultConstVAssign)
  680.     (this,ctrl,fromObj);
  681. }
  682.  
  683.  
  684. /* method: somGetClass */
  685. SOMClass*   somGetClass()
  686. {
  687.    return SOM_ResolveD(this,OperationDef,SOMObject,somGetClass)
  688.     (this);
  689. }
  690.  
  691.  
  692. /* method: somGetClassName */
  693. string   somGetClassName()
  694. {
  695.    return SOM_ResolveD(this,OperationDef,SOMObject,somGetClassName)
  696.     (this);
  697. }
  698.  
  699.  
  700. /* method: somGetSize */
  701. long   somGetSize()
  702. {
  703.    return SOM_ResolveD(this,OperationDef,SOMObject,somGetSize)
  704.     (this);
  705. }
  706.  
  707.  
  708. /* method: somIsA */
  709. boolean   somIsA(SOMClass* aClassObj)
  710. {
  711.    return SOM_ResolveD(this,OperationDef,SOMObject,somIsA)
  712.     (this,aClassObj);
  713. }
  714.  
  715.  
  716. /* method: somIsInstanceOf */
  717. boolean   somIsInstanceOf(SOMClass* aClassObj)
  718. {
  719.    return SOM_ResolveD(this,OperationDef,SOMObject,somIsInstanceOf)
  720.     (this,aClassObj);
  721. }
  722.  
  723.  
  724. /* method: somRespondsTo */
  725. boolean   somRespondsTo(somId mId)
  726. {
  727.    return SOM_ResolveD(this,OperationDef,SOMObject,somRespondsTo)
  728.     (this,mId);
  729. }
  730.  
  731.  
  732. /* va_list method: somDispatch */
  733. /* the va_list invocation form */
  734. boolean   OperationDef_somDispatch(somToken* retValue,
  735.         somId methodId,
  736.         va_list ap)
  737. {
  738. return SOM_ResolveD(this,OperationDef,SOMObject,somDispatch)
  739.     (this,retValue,methodId,ap);
  740. }
  741.  
  742. /* the varargs invocation form */
  743. boolean   somDispatch(somToken* retValue,
  744.         somId methodId,
  745.         ...)
  746. {
  747.    va_list ap;
  748.    va_start(ap, methodId);
  749.    boolean __somResult = 
  750.       SOM_ResolveD(this,OperationDef,SOMObject,somDispatch)
  751.     (this,retValue,methodId,ap);
  752.    va_end(ap);
  753.    return __somResult;
  754. }
  755.  
  756.  
  757. /* va_list method: somClassDispatch */
  758. /* the va_list invocation form */
  759. boolean   OperationDef_somClassDispatch(SOMClass* clsObj,
  760.         somToken* retValue,
  761.         somId methodId,
  762.         va_list ap)
  763. {
  764. return SOM_ResolveD(this,OperationDef,SOMObject,somClassDispatch)
  765.     (this,clsObj,retValue,methodId,ap);
  766. }
  767.  
  768. /* the varargs invocation form */
  769. boolean   somClassDispatch(SOMClass* clsObj,
  770.         somToken* retValue,
  771.         somId methodId,
  772.         ...)
  773. {
  774.    va_list ap;
  775.    va_start(ap, methodId);
  776.    boolean __somResult = 
  777.       SOM_ResolveD(this,OperationDef,SOMObject,somClassDispatch)
  778.     (this,clsObj,retValue,methodId,ap);
  779.    va_end(ap);
  780.    return __somResult;
  781. }
  782.  
  783.  
  784. /* method: somCastObj */
  785. boolean   somCastObj(SOMClass* cls)
  786. {
  787.    return SOM_ResolveD(this,OperationDef,SOMObject,somCastObj)
  788.     (this,cls);
  789. }
  790.  
  791.  
  792. /* method: somResetObj */
  793. boolean   somResetObj()
  794. {
  795.    return SOM_ResolveD(this,OperationDef,SOMObject,somResetObj)
  796.     (this);
  797. }
  798.  
  799.  
  800. /* method: somPrintSelf */
  801. SOMObject*   somPrintSelf()
  802. {
  803.    return SOM_ResolveD(this,OperationDef,SOMObject,somPrintSelf)
  804.     (this);
  805. }
  806.  
  807.  
  808. /* method: contents */
  809. _IDL_SEQUENCE_Contained   contents(Environment *ev,
  810.         Container_InterfaceName limit_type,
  811.         boolean exclude_inherited)
  812. {
  813.    return SOM_ResolveD(this,OperationDef,Container,contents)
  814.     (this, ev,limit_type,exclude_inherited);
  815. }
  816.  
  817.  
  818. /* method: lookup_name */
  819. _IDL_SEQUENCE_Contained   lookup_name(Environment *ev,
  820.         Identifier search_name,
  821.         long levels_to_search,
  822.         Container_InterfaceName limit_type,
  823.         boolean exclude_inherited)
  824. {
  825.    return SOM_ResolveD(this,OperationDef,Container,lookup_name)
  826.     (this, ev,search_name,levels_to_search,limit_type,exclude_inherited);
  827. }
  828.  
  829.  
  830. /* method: describe_contents */
  831. _IDL_SEQUENCE_Container_ContainerDescription   describe_contents(Environment *ev,
  832.         Container_InterfaceName limit_type,
  833.         boolean exclude_inherited,
  834.         long max_returned_objs)
  835. {
  836.    return SOM_ResolveD(this,OperationDef,Container,describe_contents)
  837.     (this, ev,limit_type,exclude_inherited,max_returned_objs);
  838. }
  839.  
  840.  
  841.  
  842. };   /* OperationDef */
  843.  
  844.  
  845.  
  846. #endif       /* SOM_OperationDef_xh */
  847.