home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / impldef.xh < prev    next >
Text File  |  1999-02-22  |  33KB  |  1,053 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: impldef.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.17
  7.  *     SOM Emitter emitxh: 2.47
  8.  */
  9.  
  10. /*
  11.  *   CLASS SPECIFICATION FOR IMPLEMENTATION DEFINITION
  12.  */
  13.  
  14.  
  15. #ifndef SOM_ImplementationDef_xh
  16. #define SOM_ImplementationDef_xh
  17.  
  18. class ImplementationDef;
  19.  
  20. /*
  21.  *  ImplementationDef attributes
  22.  */
  23.  
  24. #define ImplementationDef_MajorVersion 2
  25. #define ImplementationDef_MinorVersion 1
  26.  
  27. /* C++ SOM defs */
  28. #include <somcls.xh>
  29. #include <somcm.xh>
  30.  
  31. /* C++ parent defs */
  32. #ifndef SOM_SOMObject_xh
  33. #include <somobj.xh>
  34. #endif
  35.  
  36. #ifndef ImplementationDef_API
  37. #define ImplementationDef_API
  38. /*
  39.  * -- The Class API
  40.  */
  41.  
  42. /*
  43.  * Start of bindings for IDL types
  44.  */
  45.  
  46. class SOMClass;
  47. class SOMObject;
  48. class Container;
  49.  
  50. /*
  51.  * End of bindings for IDL types.
  52.  */
  53.  
  54. /*
  55.  * Passthru lines: File: "C.xh", "after"
  56.  */
  57.  
  58. /* flags */
  59. #define IMPLDEF_MULTI_THREAD  0x00000001
  60. #define IMPLDEF_POOL_THREAD   0x00000002
  61. #define IMPLDEF_DISABLE_SVR   0x00000004
  62. #define IMPLDEF_IMPLID_SET    0x00000008
  63. #define IMPLDEF_NONSTOPPABLE  0x00000010
  64. #define IMPLDEF_SECUREMODE    0x00000020
  65.  
  66. class ImplementationDef;
  67. SOMEXTERN ImplementationDef* SOMDLINK SOMD_ImplDefObject;
  68.  
  69.  
  70. /* A procedure to create the ImplementationDef Class */
  71. SOMEXTERN SOMClass * SOMLINK ImplementationDefNewClass(
  72.         integer4 majorVersion,
  73.         integer4 minorVersion);
  74.  
  75. /* The API to the ImplementationDef class object, and the methods it introduces. */
  76. SOMEXTERN struct ImplementationDefClassDataStructure {
  77.     SOMClass *classObject;
  78.     somMToken _set_impl_id;
  79.     somMToken _get_impl_id;
  80.     somMToken _set_impl_alias;
  81.     somMToken _get_impl_alias;
  82.     somMToken _set_impl_program;
  83.     somMToken _get_impl_program;
  84.     somMToken _set_impl_flags;
  85.     somMToken _get_impl_flags;
  86.     somMToken _set_impl_server_class;
  87.     somMToken _get_impl_server_class;
  88.     somMToken _set_impl_socket_class;
  89.     somMToken _get_impl_socket_class;
  90.     somMToken _set_impl_refdata_file;
  91.     somMToken _get_impl_refdata_file;
  92.     somMToken _set_impl_refdata_bkup;
  93.     somMToken _get_impl_refdata_bkup;
  94.     somMToken _set_impl_hostname;
  95.     somMToken _get_impl_hostname;
  96.     somMToken _set_impl_def_struct;
  97.     somMToken _get_impl_def_struct;
  98.     somMToken get_impl_winserver_handle;
  99. } SOMDLINK ImplementationDefClassData;
  100. #define _ImplementationDef ImplementationDefClassData.classObject
  101.  
  102. /* The API to parentMtabs for ImplementationDef, and the instance data it introduces. */
  103. SOMEXTERN struct ImplementationDefCClassDataStructure {
  104.     somMethodTabs parentMtab;
  105.     somDToken              instanceDataToken;
  106. } SOMDLINK ImplementationDefCClassData;
  107.  
  108. /*
  109.  * -- Typedefs for ImplementationDef Method Procedures
  110.  */
  111. SOMEXTERN {
  112. typedef string   SOMLINK somTP_ImplementationDef__get_impl_id(ImplementationDef *somSelf, Environment *ev);
  113. typedef somTP_ImplementationDef__get_impl_id *somTD_ImplementationDef__get_impl_id;
  114. typedef void   SOMLINK somTP_ImplementationDef__set_impl_id(ImplementationDef *somSelf, Environment *ev, 
  115.         string impl_id);
  116. typedef somTP_ImplementationDef__set_impl_id *somTD_ImplementationDef__set_impl_id;
  117. typedef string   SOMLINK somTP_ImplementationDef__get_impl_alias(ImplementationDef *somSelf, Environment *ev);
  118. typedef somTP_ImplementationDef__get_impl_alias *somTD_ImplementationDef__get_impl_alias;
  119. typedef void   SOMLINK somTP_ImplementationDef__set_impl_alias(ImplementationDef *somSelf, Environment *ev, 
  120.         string impl_alias);
  121. typedef somTP_ImplementationDef__set_impl_alias *somTD_ImplementationDef__set_impl_alias;
  122. typedef string   SOMLINK somTP_ImplementationDef__get_impl_program(ImplementationDef *somSelf, Environment *ev);
  123. typedef somTP_ImplementationDef__get_impl_program *somTD_ImplementationDef__get_impl_program;
  124. typedef void   SOMLINK somTP_ImplementationDef__set_impl_program(ImplementationDef *somSelf, Environment *ev, 
  125.         string impl_program);
  126. typedef somTP_ImplementationDef__set_impl_program *somTD_ImplementationDef__set_impl_program;
  127. typedef Flags   SOMLINK somTP_ImplementationDef__get_impl_flags(ImplementationDef *somSelf, Environment *ev);
  128. typedef somTP_ImplementationDef__get_impl_flags *somTD_ImplementationDef__get_impl_flags;
  129. typedef void   SOMLINK somTP_ImplementationDef__set_impl_flags(ImplementationDef *somSelf, Environment *ev, 
  130.         Flags impl_flags);
  131. typedef somTP_ImplementationDef__set_impl_flags *somTD_ImplementationDef__set_impl_flags;
  132. typedef string   SOMLINK somTP_ImplementationDef__get_impl_server_class(ImplementationDef *somSelf, Environment *ev);
  133. typedef somTP_ImplementationDef__get_impl_server_class *somTD_ImplementationDef__get_impl_server_class;
  134. typedef void   SOMLINK somTP_ImplementationDef__set_impl_server_class(ImplementationDef *somSelf, Environment *ev, 
  135.         string impl_server_class);
  136. typedef somTP_ImplementationDef__set_impl_server_class *somTD_ImplementationDef__set_impl_server_class;
  137. typedef string   SOMLINK somTP_ImplementationDef__get_impl_refdata_file(ImplementationDef *somSelf, Environment *ev);
  138. typedef somTP_ImplementationDef__get_impl_refdata_file *somTD_ImplementationDef__get_impl_refdata_file;
  139. typedef void   SOMLINK somTP_ImplementationDef__set_impl_refdata_file(ImplementationDef *somSelf, Environment *ev, 
  140.         string impl_refdata_file);
  141. typedef somTP_ImplementationDef__set_impl_refdata_file *somTD_ImplementationDef__set_impl_refdata_file;
  142. typedef string   SOMLINK somTP_ImplementationDef__get_impl_refdata_bkup(ImplementationDef *somSelf, Environment *ev);
  143. typedef somTP_ImplementationDef__get_impl_refdata_bkup *somTD_ImplementationDef__get_impl_refdata_bkup;
  144. typedef void   SOMLINK somTP_ImplementationDef__set_impl_refdata_bkup(ImplementationDef *somSelf, Environment *ev, 
  145.         string impl_refdata_bkup);
  146. typedef somTP_ImplementationDef__set_impl_refdata_bkup *somTD_ImplementationDef__set_impl_refdata_bkup;
  147. typedef string   SOMLINK somTP_ImplementationDef__get_impl_hostname(ImplementationDef *somSelf, Environment *ev);
  148. typedef somTP_ImplementationDef__get_impl_hostname *somTD_ImplementationDef__get_impl_hostname;
  149. typedef void   SOMLINK somTP_ImplementationDef__set_impl_hostname(ImplementationDef *somSelf, Environment *ev, 
  150.         string impl_hostname);
  151. typedef somTP_ImplementationDef__set_impl_hostname *somTD_ImplementationDef__set_impl_hostname;
  152.  
  153. /*
  154.  * -- Typedefs for Reintroduced Wrapper Methods
  155.  */
  156. typedef void   SOMLINK somTP_ImplementationDef_somDefaultInit(ImplementationDef *somSelf, 
  157.         som3InitCtrl* ctrl);
  158. typedef somTP_ImplementationDef_somDefaultInit *somTD_ImplementationDef_somDefaultInit;
  159. typedef void   SOMLINK somTP_ImplementationDef_somDestruct(ImplementationDef *somSelf, 
  160.         octet doFree, 
  161.         som3DestructCtrl* ctrl);
  162. typedef somTP_ImplementationDef_somDestruct *somTD_ImplementationDef_somDestruct;
  163. typedef void   SOMLINK somTP_ImplementationDef_somDefaultCopyInit(ImplementationDef *somSelf, 
  164.         som3InitCtrl* ctrl, 
  165.         SOMObject* fromObj);
  166. typedef somTP_ImplementationDef_somDefaultCopyInit *somTD_ImplementationDef_somDefaultCopyInit;
  167. typedef ImplementationDef*   SOMLINK somTP_ImplementationDef_somDefaultAssign(ImplementationDef *somSelf, 
  168.         som3AssignCtrl* ctrl, 
  169.         SOMObject* fromObj);
  170. typedef somTP_ImplementationDef_somDefaultAssign *somTD_ImplementationDef_somDefaultAssign;
  171. typedef void   SOMLINK somTP_ImplementationDef_somDefaultConstCopyInit(ImplementationDef *somSelf, 
  172.         som3InitCtrl* ctrl, 
  173.         SOMObject* fromObj);
  174. typedef somTP_ImplementationDef_somDefaultConstCopyInit *somTD_ImplementationDef_somDefaultConstCopyInit;
  175. typedef void   SOMLINK somTP_ImplementationDef_somDefaultVCopyInit(ImplementationDef *somSelf, 
  176.         som3InitCtrl* ctrl, 
  177.         SOMObject* fromObj);
  178. typedef somTP_ImplementationDef_somDefaultVCopyInit *somTD_ImplementationDef_somDefaultVCopyInit;
  179. typedef void   SOMLINK somTP_ImplementationDef_somDefaultConstVCopyInit(ImplementationDef *somSelf, 
  180.         som3InitCtrl* ctrl, 
  181.         SOMObject* fromObj);
  182. typedef somTP_ImplementationDef_somDefaultConstVCopyInit *somTD_ImplementationDef_somDefaultConstVCopyInit;
  183. typedef ImplementationDef*   SOMLINK somTP_ImplementationDef_somDefaultConstAssign(ImplementationDef *somSelf, 
  184.         som3AssignCtrl* ctrl, 
  185.         SOMObject* fromObj);
  186. typedef somTP_ImplementationDef_somDefaultConstAssign *somTD_ImplementationDef_somDefaultConstAssign;
  187. typedef ImplementationDef*   SOMLINK somTP_ImplementationDef_somDefaultVAssign(ImplementationDef *somSelf, 
  188.         som3AssignCtrl* ctrl, 
  189.         SOMObject* fromObj);
  190. typedef somTP_ImplementationDef_somDefaultVAssign *somTD_ImplementationDef_somDefaultVAssign;
  191. typedef ImplementationDef*   SOMLINK somTP_ImplementationDef_somDefaultConstVAssign(ImplementationDef *somSelf, 
  192.         som3AssignCtrl* ctrl, 
  193.         SOMObject* fromObj);
  194. typedef somTP_ImplementationDef_somDefaultConstVAssign *somTD_ImplementationDef_somDefaultConstVAssign;
  195. typedef void   SOMLINK somTP_ImplementationDef_somInit(ImplementationDef *somSelf);
  196. typedef somTP_ImplementationDef_somInit *somTD_ImplementationDef_somInit;
  197. typedef void   SOMLINK somTP_ImplementationDef_somFree(ImplementationDef *somSelf);
  198. typedef somTP_ImplementationDef_somFree *somTD_ImplementationDef_somFree;
  199. typedef void   SOMLINK somTP_ImplementationDef_somUninit(ImplementationDef *somSelf);
  200. typedef somTP_ImplementationDef_somUninit *somTD_ImplementationDef_somUninit;
  201. typedef SOMClass*   SOMLINK somTP_ImplementationDef_somGetClass(ImplementationDef *somSelf);
  202. typedef somTP_ImplementationDef_somGetClass *somTD_ImplementationDef_somGetClass;
  203. typedef string   SOMLINK somTP_ImplementationDef_somGetClassName(ImplementationDef *somSelf);
  204. typedef somTP_ImplementationDef_somGetClassName *somTD_ImplementationDef_somGetClassName;
  205. typedef long   SOMLINK somTP_ImplementationDef_somGetSize(ImplementationDef *somSelf);
  206. typedef somTP_ImplementationDef_somGetSize *somTD_ImplementationDef_somGetSize;
  207. typedef boolean   SOMLINK somTP_ImplementationDef_somIsA(ImplementationDef *somSelf, 
  208.         SOMClass* aClassObj);
  209. typedef somTP_ImplementationDef_somIsA *somTD_ImplementationDef_somIsA;
  210. typedef boolean   SOMLINK somTP_ImplementationDef_somIsInstanceOf(ImplementationDef *somSelf, 
  211.         SOMClass* aClassObj);
  212. typedef somTP_ImplementationDef_somIsInstanceOf *somTD_ImplementationDef_somIsInstanceOf;
  213. typedef boolean   SOMLINK somTP_ImplementationDef_somRespondsTo(ImplementationDef *somSelf, 
  214.         somId mId);
  215. typedef somTP_ImplementationDef_somRespondsTo *somTD_ImplementationDef_somRespondsTo;
  216. typedef boolean   SOMLINK somTP_ImplementationDef_somDispatch(ImplementationDef *somSelf, 
  217.         somToken* retValue, 
  218.         somId methodId, 
  219.         va_list ap);
  220. typedef somTP_ImplementationDef_somDispatch *somTD_ImplementationDef_somDispatch;
  221. typedef boolean   SOMLINK somTP_ImplementationDef_somClassDispatch(ImplementationDef *somSelf, 
  222.         SOMClass* clsObj, 
  223.         somToken* retValue, 
  224.         somId methodId, 
  225.         va_list ap);
  226. typedef somTP_ImplementationDef_somClassDispatch *somTD_ImplementationDef_somClassDispatch;
  227. typedef boolean   SOMLINK somTP_ImplementationDef_somCastObj(ImplementationDef *somSelf, 
  228.         SOMClass* cls);
  229. typedef somTP_ImplementationDef_somCastObj *somTD_ImplementationDef_somCastObj;
  230. typedef boolean   SOMLINK somTP_ImplementationDef_somResetObj(ImplementationDef *somSelf);
  231. typedef somTP_ImplementationDef_somResetObj *somTD_ImplementationDef_somResetObj;
  232. typedef void   SOMLINK somTP_ImplementationDef_somDispatchV(ImplementationDef *somSelf, 
  233.         somId methodId, 
  234.         somId descriptor, 
  235.         va_list ap);
  236. typedef somTP_ImplementationDef_somDispatchV *somTD_ImplementationDef_somDispatchV;
  237. typedef long   SOMLINK somTP_ImplementationDef_somDispatchL(ImplementationDef *somSelf, 
  238.         somId methodId, 
  239.         somId descriptor, 
  240.         va_list ap);
  241. typedef somTP_ImplementationDef_somDispatchL *somTD_ImplementationDef_somDispatchL;
  242. typedef void*   SOMLINK somTP_ImplementationDef_somDispatchA(ImplementationDef *somSelf, 
  243.         somId methodId, 
  244.         somId descriptor, 
  245.         va_list ap);
  246. typedef somTP_ImplementationDef_somDispatchA *somTD_ImplementationDef_somDispatchA;
  247. typedef double   SOMLINK somTP_ImplementationDef_somDispatchD(ImplementationDef *somSelf, 
  248.         somId methodId, 
  249.         somId descriptor, 
  250.         va_list ap);
  251. typedef somTP_ImplementationDef_somDispatchD *somTD_ImplementationDef_somDispatchD;
  252. typedef SOMObject*   SOMLINK somTP_ImplementationDef_somPrintSelf(ImplementationDef *somSelf);
  253. typedef somTP_ImplementationDef_somPrintSelf *somTD_ImplementationDef_somPrintSelf;
  254. typedef void   SOMLINK somTP_ImplementationDef_somDumpSelf(ImplementationDef *somSelf, 
  255.         long level);
  256. typedef somTP_ImplementationDef_somDumpSelf *somTD_ImplementationDef_somDumpSelf;
  257. typedef void   SOMLINK somTP_ImplementationDef_somDumpSelfInt(ImplementationDef *somSelf, 
  258.         long level);
  259. typedef somTP_ImplementationDef_somDumpSelfInt *somTD_ImplementationDef_somDumpSelfInt;
  260. }
  261.  
  262. #endif /* ImplementationDef_API */
  263.  
  264.  
  265. /*
  266.  * -- This emitter treats Method Tokens as Thunks by default.
  267.  * -- Use the sc modifier "nothunks" to change this default
  268.  */
  269. #undef somresolve_
  270. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  271.  
  272. /*
  273.  * -- The C++ Wrapper Class for ImplementationDef
  274.  */
  275. class ImplementationDef : public SOMObject
  276. {
  277. /*
  278.  *  ImplementationDef attributes
  279.  */
  280. public:
  281.  
  282. // ImplementationDef::new creates the class object if necessary, and then uses somNewNoInit
  283. // to allocate memory and create the object. Initialization is in ctors.
  284. void *operator new(size_t)
  285. {
  286.    if (!_ImplementationDef) ImplementationDefNewClass(ImplementationDef_MajorVersion,ImplementationDef_MinorVersion);
  287.    return (void*)
  288.       SOM_Resolve(_ImplementationDef,SOMClass,somNewNoInit)
  289.          ((SOMClass *)((void*)_ImplementationDef));
  290. }
  291.  
  292. // ImplementationDef::delete uses somDestruct.
  293. void operator delete(void * obj)
  294. {
  295.    if (obj && *(void**)obj) {
  296.       SOM_Resolve(obj,SOMObject,somFree)
  297.          ((SOMObject*)obj);
  298.    }
  299. }
  300.  
  301. ImplementationDef& operator=(ImplementationDef& fromObj)
  302. {
  303.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  304.    return *this;
  305. }
  306.  
  307. ImplementationDef()
  308. {
  309.    if (*(void**)this != 
  310.        ((somParentMtabStructPtr)
  311.         (ImplementationDefCClassData.parentMtab))->mtab)
  312.       return;
  313.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  314. }
  315.  
  316. ImplementationDef(ImplementationDef* fromObj)
  317. {
  318.    if (*(void**)this != 
  319.        ((somParentMtabStructPtr)
  320.         (ImplementationDefCClassData.parentMtab))->mtab)
  321.       return;
  322.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  323. }
  324.  
  325. #ifdef __IBMCPP__
  326. #pragma info(nocnv,nopar)
  327. #endif
  328. ImplementationDef(const ImplementationDef* fromObj)
  329. {
  330.    if (*(void**)this != 
  331.        ((somParentMtabStructPtr)
  332.         (ImplementationDefCClassData.parentMtab))->mtab)
  333.       return;
  334.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  335. }
  336. #ifdef __IBMCPP__
  337. #pragma info(restore)
  338. #endif
  339.  
  340.  
  341. /* method: _get_impl_id */
  342. string   _get_impl_id(Environment *ev)
  343. {
  344. /*
  345.  * Method from the IDL attribute statement:
  346.  * "attribute string impl_id"
  347.  */
  348.    return SOM_ResolveD(this,ImplementationDef,ImplementationDef,_get_impl_id)
  349.     (this, ev);
  350. }
  351.  
  352.  
  353. /* method: _set_impl_id */
  354. void   _set_impl_id(Environment *ev, 
  355.         string impl_id)
  356. {
  357. /*
  358.  * Method from the IDL attribute statement:
  359.  * "attribute string impl_id"
  360.  */
  361.    SOM_ResolveD(this,ImplementationDef,ImplementationDef,_set_impl_id)
  362.     (this, ev,impl_id);
  363. }
  364.  
  365.  
  366. /* method: _get_impl_alias */
  367. string   _get_impl_alias(Environment *ev)
  368. {
  369. /*
  370.  * Method from the IDL attribute statement:
  371.  * "attribute string impl_alias"
  372.  */
  373.    return SOM_ResolveD(this,ImplementationDef,ImplementationDef,_get_impl_alias)
  374.     (this, ev);
  375. }
  376.  
  377.  
  378. /* method: _set_impl_alias */
  379. void   _set_impl_alias(Environment *ev, 
  380.         string impl_alias)
  381. {
  382. /*
  383.  * Method from the IDL attribute statement:
  384.  * "attribute string impl_alias"
  385.  */
  386.    SOM_ResolveD(this,ImplementationDef,ImplementationDef,_set_impl_alias)
  387.     (this, ev,impl_alias);
  388. }
  389.  
  390.  
  391. /* method: _get_impl_program */
  392. string   _get_impl_program(Environment *ev)
  393. {
  394. /*
  395.  * Method from the IDL attribute statement:
  396.  * "attribute string impl_program"
  397.  */
  398.    return SOM_ResolveD(this,ImplementationDef,ImplementationDef,_get_impl_program)
  399.     (this, ev);
  400. }
  401.  
  402.  
  403. /* method: _set_impl_program */
  404. void   _set_impl_program(Environment *ev, 
  405.         string impl_program)
  406. {
  407. /*
  408.  * Method from the IDL attribute statement:
  409.  * "attribute string impl_program"
  410.  */
  411.    SOM_ResolveD(this,ImplementationDef,ImplementationDef,_set_impl_program)
  412.     (this, ev,impl_program);
  413. }
  414.  
  415.  
  416. /* method: _get_impl_flags */
  417. Flags   _get_impl_flags(Environment *ev)
  418. {
  419. /*
  420.  * Method from the IDL attribute statement:
  421.  * "attribute Flags impl_flags"
  422.  */
  423.    return SOM_ResolveD(this,ImplementationDef,ImplementationDef,_get_impl_flags)
  424.     (this, ev);
  425. }
  426.  
  427.  
  428. /* method: _set_impl_flags */
  429. void   _set_impl_flags(Environment *ev, 
  430.         Flags impl_flags)
  431. {
  432. /*
  433.  * Method from the IDL attribute statement:
  434.  * "attribute Flags impl_flags"
  435.  */
  436.    SOM_ResolveD(this,ImplementationDef,ImplementationDef,_set_impl_flags)
  437.     (this, ev,impl_flags);
  438. }
  439.  
  440.  
  441. /* method: _get_impl_server_class */
  442. string   _get_impl_server_class(Environment *ev)
  443. {
  444. /*
  445.  * Method from the IDL attribute statement:
  446.  * "attribute string impl_server_class"
  447.  */
  448.    return SOM_ResolveD(this,ImplementationDef,ImplementationDef,_get_impl_server_class)
  449.     (this, ev);
  450. }
  451.  
  452.  
  453. /* method: _set_impl_server_class */
  454. void   _set_impl_server_class(Environment *ev, 
  455.         string impl_server_class)
  456. {
  457. /*
  458.  * Method from the IDL attribute statement:
  459.  * "attribute string impl_server_class"
  460.  */
  461.    SOM_ResolveD(this,ImplementationDef,ImplementationDef,_set_impl_server_class)
  462.     (this, ev,impl_server_class);
  463. }
  464.  
  465.  
  466. /* method: _get_impl_refdata_file */
  467. string   _get_impl_refdata_file(Environment *ev)
  468. {
  469. /*
  470.  * Method from the IDL attribute statement:
  471.  * "attribute string impl_refdata_file"
  472.  */
  473.    return SOM_ResolveD(this,ImplementationDef,ImplementationDef,_get_impl_refdata_file)
  474.     (this, ev);
  475. }
  476.  
  477.  
  478. /* method: _set_impl_refdata_file */
  479. void   _set_impl_refdata_file(Environment *ev, 
  480.         string impl_refdata_file)
  481. {
  482. /*
  483.  * Method from the IDL attribute statement:
  484.  * "attribute string impl_refdata_file"
  485.  */
  486.    SOM_ResolveD(this,ImplementationDef,ImplementationDef,_set_impl_refdata_file)
  487.     (this, ev,impl_refdata_file);
  488. }
  489.  
  490.  
  491. /* method: _get_impl_refdata_bkup */
  492. string   _get_impl_refdata_bkup(Environment *ev)
  493. {
  494. /*
  495.  * Method from the IDL attribute statement:
  496.  * "attribute string impl_refdata_bkup"
  497.  */
  498.    return SOM_ResolveD(this,ImplementationDef,ImplementationDef,_get_impl_refdata_bkup)
  499.     (this, ev);
  500. }
  501.  
  502.  
  503. /* method: _set_impl_refdata_bkup */
  504. void   _set_impl_refdata_bkup(Environment *ev, 
  505.         string impl_refdata_bkup)
  506. {
  507. /*
  508.  * Method from the IDL attribute statement:
  509.  * "attribute string impl_refdata_bkup"
  510.  */
  511.    SOM_ResolveD(this,ImplementationDef,ImplementationDef,_set_impl_refdata_bkup)
  512.     (this, ev,impl_refdata_bkup);
  513. }
  514.  
  515.  
  516. /* method: _get_impl_hostname */
  517. string   _get_impl_hostname(Environment *ev)
  518. {
  519. /*
  520.  * Method from the IDL attribute statement:
  521.  * "attribute string impl_hostname"
  522.  */
  523.    return SOM_ResolveD(this,ImplementationDef,ImplementationDef,_get_impl_hostname)
  524.     (this, ev);
  525. }
  526.  
  527.  
  528. /* method: _set_impl_hostname */
  529. void   _set_impl_hostname(Environment *ev, 
  530.         string impl_hostname)
  531. {
  532. /*
  533.  * Method from the IDL attribute statement:
  534.  * "attribute string impl_hostname"
  535.  */
  536.    SOM_ResolveD(this,ImplementationDef,ImplementationDef,_set_impl_hostname)
  537.     (this, ev,impl_hostname);
  538. }
  539.  
  540.  
  541. /*
  542.  * Reintroduce inherited methods
  543.  */
  544.  
  545. /* initializer method: somDefaultInit */
  546. void   somDefaultInit(som3InitCtrl* ctrl)
  547. {
  548. /*
  549.  *  A default initializer for a SOM object. Passing a null ctrl
  550.  *  indicates to the receiver that its class is the class of the
  551.  *  object being initialized, whereby the initializer will determine
  552.  *  an appropriate control structure.
  553.  */
  554.    SOM_ResolveD(this,ImplementationDef,SOMObject,somDefaultInit)
  555.     (this,ctrl);
  556. }
  557.  
  558.  
  559. /* method: somDestruct */
  560. void   somDestruct(octet doFree, 
  561.         som3DestructCtrl* ctrl)
  562. {
  563. /*
  564.  *  The default destructor for a SOM object. A nonzero <doFree>
  565.  *  indicates that the object storage should be freed by the
  566.  *  object's class (via somDeallocate) after uninitialization.
  567.  *  As with somDefaultInit, a null ctrl can be passed.
  568.  */
  569.    SOM_ResolveD(this,ImplementationDef,SOMObject,somDestruct)
  570.     (this,doFree,ctrl);
  571. }
  572.  
  573.  
  574. /* initializer method: somDefaultCopyInit */
  575. void   somDefaultCopyInit(som3InitCtrl* ctrl, 
  576.         SOMObject* fromObj)
  577. {
  578. /*
  579.  *  A default copy constructor. Use this to make copies of objects for
  580.  *  calling methods with "by-value" argument semantics.
  581.  */
  582.    SOM_ResolveD(this,ImplementationDef,SOMObject,somDefaultCopyInit)
  583.     (this,ctrl,fromObj);
  584. }
  585.  
  586.  
  587. /* method: somDefaultAssign */
  588. ImplementationDef*  somDefaultAssign(som3AssignCtrl* ctrl, 
  589.         SOMObject* fromObj)
  590. {
  591. /*
  592.  *  A default assignment operator. Use this to "assign" the state of one
  593.  *  object to another.
  594.  */
  595.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somDefaultAssign)
  596.     (this,ctrl,fromObj);
  597. }
  598.  
  599.  
  600. /* initializer method: somDefaultConstCopyInit */
  601. void   somDefaultConstCopyInit(som3InitCtrl* ctrl, 
  602.         SOMObject* fromObj)
  603. {
  604. /*
  605.  *  A default copy constructor that uses a const fromObj.
  606.  */
  607.    SOM_ResolveD(this,ImplementationDef,SOMObject,somDefaultConstCopyInit)
  608.     (this,ctrl,fromObj);
  609. }
  610.  
  611.  
  612. /* initializer method: somDefaultVCopyInit */
  613. void   somDefaultVCopyInit(som3InitCtrl* ctrl, 
  614.         SOMObject* fromObj)
  615. {
  616. /*
  617.  *  A default copy constructor that uses a volatile fromObj.
  618.  */
  619.    SOM_ResolveD(this,ImplementationDef,SOMObject,somDefaultVCopyInit)
  620.     (this,ctrl,fromObj);
  621. }
  622.  
  623.  
  624. /* initializer method: somDefaultConstVCopyInit */
  625. void   somDefaultConstVCopyInit(som3InitCtrl* ctrl, 
  626.         SOMObject* fromObj)
  627. {
  628. /*
  629.  *  A default copy constructor that uses a const volatile fromObj.
  630.  */
  631.    SOM_ResolveD(this,ImplementationDef,SOMObject,somDefaultConstVCopyInit)
  632.     (this,ctrl,fromObj);
  633. }
  634.  
  635.  
  636. /* method: somDefaultConstAssign */
  637. ImplementationDef*  somDefaultConstAssign(som3AssignCtrl* ctrl, 
  638.         SOMObject* fromObj)
  639. {
  640. /*
  641.  *  A default assignment operator that uses a const fromObj.
  642.  */
  643.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somDefaultConstAssign)
  644.     (this,ctrl,fromObj);
  645. }
  646.  
  647.  
  648. /* method: somDefaultVAssign */
  649. ImplementationDef*  somDefaultVAssign(som3AssignCtrl* ctrl, 
  650.         SOMObject* fromObj)
  651. {
  652. /*
  653.  *  A default assignment operator that uses a volatile fromObj.
  654.  */
  655.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somDefaultVAssign)
  656.     (this,ctrl,fromObj);
  657. }
  658.  
  659.  
  660. /* method: somDefaultConstVAssign */
  661. ImplementationDef*  somDefaultConstVAssign(som3AssignCtrl* ctrl, 
  662.         SOMObject* fromObj)
  663. {
  664. /*
  665.  *  A default assignment operator that uses a const volatile fromObj.
  666.  */
  667.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somDefaultConstVAssign)
  668.     (this,ctrl,fromObj);
  669. }
  670.  
  671.  
  672. /* method: somInit */
  673. void   somInit()
  674. {
  675. /*
  676.  *  Obsolete but still supported. Override somDefaultInit instead of somInit.
  677.  */
  678.    SOM_ResolveD(this,ImplementationDef,SOMObject,somInit)
  679.     (this);
  680. }
  681.  
  682.  
  683. /* method: somFree */
  684. void   somFree()
  685. {
  686. /*
  687.  *  Use as directed by framework implementations.
  688.  */
  689.    SOM_ResolveD(this,ImplementationDef,SOMObject,somFree)
  690.     (this);
  691. }
  692.  
  693.  
  694. /* method: somUninit */
  695. void   somUninit()
  696. {
  697. /*
  698.  *  Obsolete but still supported. Override somDestruct instead of somUninit.
  699.  */
  700.    SOM_ResolveD(this,ImplementationDef,SOMObject,somUninit)
  701.     (this);
  702. }
  703.  
  704.  
  705. /* method: somGetClass */
  706. SOMClass*   somGetClass()
  707. {
  708. /*
  709.  *  Return the receiver's class.
  710.  */
  711.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somGetClass)
  712.     (this);
  713. }
  714.  
  715.  
  716. /* method: somGetClassName */
  717. string   somGetClassName()
  718. {
  719. /*
  720.  *  Return the name of the receiver's class.
  721.  */
  722.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somGetClassName)
  723.     (this);
  724. }
  725.  
  726.  
  727. /* method: somGetSize */
  728. long   somGetSize()
  729. {
  730. /*
  731.  *  Return the size of the receiver.
  732.  */
  733.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somGetSize)
  734.     (this);
  735. }
  736.  
  737.  
  738. /* method: somIsA */
  739. boolean   somIsA(SOMClass* aClassObj)
  740. {
  741. /*
  742.  *  Returns 1 (true) if the receiver responds to methods
  743.  *  introduced by <aClassObj>, and 0 (false) otherwise.
  744.  */
  745.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somIsA)
  746.     (this,aClassObj);
  747. }
  748.  
  749.  
  750. /* method: somIsInstanceOf */
  751. boolean   somIsInstanceOf(SOMClass* aClassObj)
  752. {
  753. /*
  754.  *  Returns 1 (true) if the receiver is an instance of
  755.  *  <aClassObj> and 0 (false) otherwise.
  756.  */
  757.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somIsInstanceOf)
  758.     (this,aClassObj);
  759. }
  760.  
  761.  
  762. /* method: somRespondsTo */
  763. boolean   somRespondsTo(somId mId)
  764. {
  765. /*
  766.  *  Returns 1 (true) if the indicated method can be invoked
  767.  *  on the receiver and 0 (false) otherwise.
  768.  */
  769.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somRespondsTo)
  770.     (this,mId);
  771. }
  772.  
  773.  
  774. /* va_list method: somDispatch */
  775.  
  776. /*
  777.  *  This method provides a generic, class-specific dispatch mechanism.
  778.  *  It accepts as input <retValue> a pointer to the memory area to be
  779.  *  loaded with the result of dispatching the method indicated by
  780.  *  <methodId> using the arguments in <ap>. <ap> contains the object
  781.  *  on which the method is to be invoked as the first argument.
  782.  */
  783. /* the va_list invocation form */
  784. boolean   ImplementationDef_somDispatch(somToken* retValue, 
  785.         somId methodId, 
  786.         va_list ap)
  787. {return SOM_ResolveD(this,ImplementationDef,SOMObject,somDispatch)
  788.     (this,retValue,methodId,ap);
  789. }
  790.  
  791. /* the varargs invocation form */
  792. boolean   somDispatch(somToken* retValue, 
  793.         somId methodId, 
  794.         ...)
  795. {
  796. /*
  797.  *  This method provides a generic, class-specific dispatch mechanism.
  798.  *  It accepts as input <retValue> a pointer to the memory area to be
  799.  *  loaded with the result of dispatching the method indicated by
  800.  *  <methodId> using the arguments in <ap>. <ap> contains the object
  801.  *  on which the method is to be invoked as the first argument.
  802.  */
  803.    va_list ap;
  804.    va_start(ap, methodId);
  805.    boolean __somResult = 
  806.       SOM_ResolveD(this,ImplementationDef,SOMObject,somDispatch)
  807.     (this,retValue,methodId,ap);
  808.    va_end(ap);
  809.    return __somResult;
  810. }
  811.  
  812.  
  813. /* va_list method: somClassDispatch */
  814.  
  815. /*
  816.  *  Like somDispatch, but method resolution for static methods is done
  817.  *  according to the clsObj instance method table.
  818.  */
  819. /* the va_list invocation form */
  820. boolean   ImplementationDef_somClassDispatch(SOMClass* clsObj, 
  821.         somToken* retValue, 
  822.         somId methodId, 
  823.         va_list ap)
  824. {return SOM_ResolveD(this,ImplementationDef,SOMObject,somClassDispatch)
  825.     (this,clsObj,retValue,methodId,ap);
  826. }
  827.  
  828. /* the varargs invocation form */
  829. boolean   somClassDispatch(SOMClass* clsObj, 
  830.         somToken* retValue, 
  831.         somId methodId, 
  832.         ...)
  833. {
  834. /*
  835.  *  Like somDispatch, but method resolution for static methods is done
  836.  *  according to the clsObj instance method table.
  837.  */
  838.    va_list ap;
  839.    va_start(ap, methodId);
  840.    boolean __somResult = 
  841.       SOM_ResolveD(this,ImplementationDef,SOMObject,somClassDispatch)
  842.     (this,clsObj,retValue,methodId,ap);
  843.    va_end(ap);
  844.    return __somResult;
  845. }
  846.  
  847.  
  848. /* method: somCastObj */
  849. boolean   somCastObj(SOMClass* cls)
  850. {
  851. /*
  852.  *  cast the receiving object to cls (which must be an ancestor of the
  853.  *  objects true class. Returns true on success.
  854.  */
  855.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somCastObj)
  856.     (this,cls);
  857. }
  858.  
  859.  
  860. /* method: somResetObj */
  861. boolean   somResetObj()
  862. {
  863. /*
  864.  *  reset an object to its true class. Returns true always.
  865.  */
  866.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somResetObj)
  867.     (this);
  868. }
  869.  
  870.  
  871. /* va_list method: somDispatchV */
  872.  
  873. /*
  874.  *  Obsolete. Use somDispatch instead.
  875.  */
  876. /* the va_list invocation form */
  877. void   ImplementationDef_somDispatchV(somId methodId, 
  878.         somId descriptor, 
  879.         va_list ap)
  880. {   SOM_ResolveD(this,ImplementationDef,SOMObject,somDispatchV)
  881.     (this,methodId,descriptor,ap);
  882. }
  883.  
  884. /* the varargs invocation form */
  885. void   somDispatchV(somId methodId, 
  886.         somId descriptor, 
  887.         ...)
  888. {
  889. /*
  890.  *  Obsolete. Use somDispatch instead.
  891.  */
  892.    va_list ap;
  893.    va_start(ap, descriptor);
  894.    SOM_ResolveD(this,ImplementationDef,SOMObject,somDispatchV)
  895.     (this,methodId,descriptor,ap);
  896.    va_end(ap);
  897. }
  898.  
  899.  
  900. /* va_list method: somDispatchL */
  901.  
  902. /*
  903.  *  Obsolete. Use somDispatch instead.
  904.  */
  905. /* the va_list invocation form */
  906. long   ImplementationDef_somDispatchL(somId methodId, 
  907.         somId descriptor, 
  908.         va_list ap)
  909. {return SOM_ResolveD(this,ImplementationDef,SOMObject,somDispatchL)
  910.     (this,methodId,descriptor,ap);
  911. }
  912.  
  913. /* the varargs invocation form */
  914. long   somDispatchL(somId methodId, 
  915.         somId descriptor, 
  916.         ...)
  917. {
  918. /*
  919.  *  Obsolete. Use somDispatch instead.
  920.  */
  921.    va_list ap;
  922.    va_start(ap, descriptor);
  923.    long __somResult = 
  924.       SOM_ResolveD(this,ImplementationDef,SOMObject,somDispatchL)
  925.     (this,methodId,descriptor,ap);
  926.    va_end(ap);
  927.    return __somResult;
  928. }
  929.  
  930.  
  931. /* va_list method: somDispatchA */
  932.  
  933. /*
  934.  *  Obsolete. Use somDispatch instead.
  935.  */
  936. /* the va_list invocation form */
  937. void*   ImplementationDef_somDispatchA(somId methodId, 
  938.         somId descriptor, 
  939.         va_list ap)
  940. {return SOM_ResolveD(this,ImplementationDef,SOMObject,somDispatchA)
  941.     (this,methodId,descriptor,ap);
  942. }
  943.  
  944. /* the varargs invocation form */
  945. void*   somDispatchA(somId methodId, 
  946.         somId descriptor, 
  947.         ...)
  948. {
  949. /*
  950.  *  Obsolete. Use somDispatch instead.
  951.  */
  952.    va_list ap;
  953.    va_start(ap, descriptor);
  954.    void* __somResult = 
  955.       SOM_ResolveD(this,ImplementationDef,SOMObject,somDispatchA)
  956.     (this,methodId,descriptor,ap);
  957.    va_end(ap);
  958.    return __somResult;
  959. }
  960.  
  961.  
  962. /* va_list method: somDispatchD */
  963.  
  964. /*
  965.  *  Obsolete. Use somDispatch instead.
  966.  */
  967. /* the va_list invocation form */
  968. double   ImplementationDef_somDispatchD(somId methodId, 
  969.         somId descriptor, 
  970.         va_list ap)
  971. {return SOM_ResolveD(this,ImplementationDef,SOMObject,somDispatchD)
  972.     (this,methodId,descriptor,ap);
  973. }
  974.  
  975. /* the varargs invocation form */
  976. double   somDispatchD(somId methodId, 
  977.         somId descriptor, 
  978.         ...)
  979. {
  980. /*
  981.  *  Obsolete. Use somDispatch instead.
  982.  */
  983.    va_list ap;
  984.    va_start(ap, descriptor);
  985.    double __somResult = 
  986.       SOM_ResolveD(this,ImplementationDef,SOMObject,somDispatchD)
  987.     (this,methodId,descriptor,ap);
  988.    va_end(ap);
  989.    return __somResult;
  990. }
  991.  
  992.  
  993. /* method: somPrintSelf */
  994. SOMObject*   somPrintSelf()
  995. {
  996. /*
  997.  *  Uses <SOMOutCharRoutine> to write a brief string with identifying
  998.  *  information about this object.  The default implementation just gives
  999.  *  the object's class name and its address in memory.
  1000.  *  <self> is returned.
  1001.  */
  1002.    return SOM_ResolveD(this,ImplementationDef,SOMObject,somPrintSelf)
  1003.     (this);
  1004. }
  1005.  
  1006.  
  1007. /* method: somDumpSelf */
  1008. void   somDumpSelf(long level)
  1009. {
  1010. /*
  1011.  *  Uses <SOMOutCharRoutine> to write a detailed description of this object
  1012.  *  and its current state.
  1013.  * 
  1014.  *  <level> indicates the nesting level for describing compound objects
  1015.  *  it must be greater than or equal to zero.  All lines in the
  1016.  *  description will be preceeded by <2*level> spaces.
  1017.  * 
  1018.  *  This routine only actually writes the data that concerns the object
  1019.  *  as a whole, such as class, and uses <somDumpSelfInt> to describe
  1020.  *  the object's current state.  This approach allows readable
  1021.  *  descriptions of compound objects to be constructed.
  1022.  * 
  1023.  *  Generally it is not necessary to override this method, if it is
  1024.  *  overriden it generally must be completely replaced.
  1025.  */
  1026.    SOM_ResolveD(this,ImplementationDef,SOMObject,somDumpSelf)
  1027.     (this,level);
  1028. }
  1029.  
  1030.  
  1031. /* method: somDumpSelfInt */
  1032. void   somDumpSelfInt(long level)
  1033. {
  1034. /*
  1035.  *  Uses <SOMOutCharRoutine> to write in the current state of this object.
  1036.  *  Generally this method will need to be overridden.  When overriding
  1037.  *  it, begin by calling the parent class form of this method and then
  1038.  *  write in a description of your class's instance data. This will
  1039.  *  result in a description of all the object's instance data going
  1040.  *  from its root ancestor class to its specific class.
  1041.  */
  1042.    SOM_ResolveD(this,ImplementationDef,SOMObject,somDumpSelfInt)
  1043.     (this,level);
  1044. }
  1045.  
  1046.  
  1047.  
  1048. };   /* ImplementationDef */
  1049.  
  1050.  
  1051.  
  1052. #endif       /* SOM_ImplementationDef_xh */
  1053.