home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: h:\somnt\include\TSIDENT.xh.
- * Generated using:
- * SOM Precompiler somipc: Development
- * SOM Emitter emitxh.dll: Development
- */
-
- #ifndef SOM_Module_h3a5csomnt5cinclude5cTSIDENT_TSPortability_defined
- #define SOM_Module_h3a5csomnt5cinclude5cTSIDENT_TSPortability_defined 1
- #include <som.xh>
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class TSPortability_Sender;
- class TSPortability_Receiver;
- class TSPortability_Sender;
- class TSPortability_Receiver;
-
- /*
- * End of user-defined types.
- */
- #endif /* SOM_Module_h3a5csomnt5cinclude5cTSIDENT_TSPortability_defined */
-
- #ifndef SOM_TSIdentification_xh
- #define SOM_TSIdentification_xh
-
- class TSIdentification;
-
- #define TSIdentification_MajorVersion 2
- #define TSIdentification_MinorVersion 1
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_SOMObject_xh
- #include <somobj.xh>
- #endif
-
- /*
- * C++ metaclass def
- */
- #include <snglicls.xh>
-
- #ifndef TSIdentification_API
- #define TSIdentification_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- #define ex_TSIdentification_NotAvailable "::TSIdentification::NotAvailable"
- #define TSIdentification_NotAvailable NULL
- #define ex_TSIdentification_AlreadyIdentified "::TSIdentification::AlreadyIdentified"
- #define TSIdentification_AlreadyIdentified NULL
-
- #ifndef SOM_DONT_USE_SHORT_NAMES
- #ifndef SOMTGD_ex_NotAvailable
- #ifdef ex_NotAvailable
- #undef ex_NotAvailable
- #define SOMTGD_ex_NotAvailable 1
- #else
- #define ex_NotAvailable ex_TSIdentification_NotAvailable
- #endif /* ex_NotAvailable */
- #endif /* SOMTGD_ex_NotAvailable */
- #ifndef SOMTGD_NotAvailable
- #ifdef NotAvailable
- #undef NotAvailable
- #define SOMTGD_NotAvailable 1
- #else
- #define NotAvailable TSIdentification_NotAvailable
- #endif /* NotAvailable */
- #endif /* SOMTGD_NotAvailable */
- #ifndef SOMTGD_ex_AlreadyIdentified
- #ifdef ex_AlreadyIdentified
- #undef ex_AlreadyIdentified
- #define SOMTGD_ex_AlreadyIdentified 1
- #else
- #define ex_AlreadyIdentified ex_TSIdentification_AlreadyIdentified
- #endif /* ex_AlreadyIdentified */
- #endif /* SOMTGD_ex_AlreadyIdentified */
- #ifndef SOMTGD_AlreadyIdentified
- #ifdef AlreadyIdentified
- #undef AlreadyIdentified
- #define SOMTGD_AlreadyIdentified 1
- #else
- #define AlreadyIdentified TSIdentification_AlreadyIdentified
- #endif /* AlreadyIdentified */
- #endif /* SOMTGD_AlreadyIdentified */
- #endif /* SOM_DONT_USE_SHORT_NAMES */
-
- /*
- * End of user-defined types.
- */
-
- /* A procedure to create the TSIdentification Class */
- class SOMMSingleInstance;
- SOMEXTERN
- #if (defined(SOM_Module_TSIDENT_Source) || defined(TSIdentification_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_TSIdentification))
- WIN32_DLLEXPORT
- #else
- WIN32_DLLIMPORT
- #endif
- SOMMSingleInstance * SOMLINK TSIdentificationNewClass(
- integer4,
- integer4 );
-
- /* The API to the TSIdentification class object, and the methods it introduces. */
- SOMEXTERN struct TSIdentificationClassDataStructure {
- SOMMSingleInstance *classObject;
- somMToken identify_sender;
- somMToken identify_receiver;
- somMToken _get_sender;
- somMToken _get_receiver;
- }
- #if !(defined(SOM_Module_TSIDENT_Source) || defined(TSIdentification_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_TSIdentification))
- WIN32_DLLIMPORT
- #elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
- WIN32_DLLEXPORT
- #endif
- SOMDLINK TSIdentificationClassData;
- #define _TSIdentification TSIdentificationClassData.classObject
-
- /* The API to parentMtabs for TSIdentification, and the instance data it introduces. */
- SOMEXTERN struct TSIdentificationCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- }
- #if !(defined(SOM_Module_TSIDENT_Source) || defined(TSIdentification_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_TSIdentification))
- WIN32_DLLIMPORT
- #elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
- WIN32_DLLEXPORT
- #endif
- SOMDLINK TSIdentificationCClassData;
-
- /*
- * -- Typedefs for TSIdentification Method Procedures
- */
- extern "C" {
- typedef void SOMLINK somTP_TSIdentification_identify_sender(TSIdentification *somSelf, Environment *ev,
- TSPortability_Sender* sender);
- typedef somTP_TSIdentification_identify_sender *somTD_TSIdentification_identify_sender;
- typedef void SOMLINK somTP_TSIdentification_identify_receiver(TSIdentification *somSelf, Environment *ev,
- TSPortability_Receiver* receiver);
- typedef somTP_TSIdentification_identify_receiver *somTD_TSIdentification_identify_receiver;
- typedef TSPortability_Sender* SOMLINK somTP_TSIdentification__get_sender(TSIdentification *somSelf, Environment *ev);
- typedef somTP_TSIdentification__get_sender *somTD_TSIdentification__get_sender;
- typedef TSPortability_Receiver* SOMLINK somTP_TSIdentification__get_receiver(TSIdentification *somSelf, Environment *ev);
- typedef somTP_TSIdentification__get_receiver *somTD_TSIdentification__get_receiver;
-
- /*
- * -- Typedefs for Reintroduced Wrapper Methods
- */
- typedef void SOMLINK somTP_TSIdentification_somDefaultInit(TSIdentification *somSelf,
- somInitCtrl* ctrl);
- typedef somTP_TSIdentification_somDefaultInit *somTD_TSIdentification_somDefaultInit;
- typedef void SOMLINK somTP_TSIdentification_somDestruct(TSIdentification *somSelf,
- octet doFree,
- somDestructCtrl* ctrl);
- typedef somTP_TSIdentification_somDestruct *somTD_TSIdentification_somDestruct;
- typedef void SOMLINK somTP_TSIdentification_somDefaultCopyInit(TSIdentification *somSelf,
- somInitCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_TSIdentification_somDefaultCopyInit *somTD_TSIdentification_somDefaultCopyInit;
- typedef TSIdentification* SOMLINK somTP_TSIdentification_somDefaultAssign(TSIdentification *somSelf,
- somAssignCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_TSIdentification_somDefaultAssign *somTD_TSIdentification_somDefaultAssign;
- typedef void SOMLINK somTP_TSIdentification_somDefaultConstCopyInit(TSIdentification *somSelf,
- somInitCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_TSIdentification_somDefaultConstCopyInit *somTD_TSIdentification_somDefaultConstCopyInit;
- typedef void SOMLINK somTP_TSIdentification_somDefaultVCopyInit(TSIdentification *somSelf,
- somInitCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_TSIdentification_somDefaultVCopyInit *somTD_TSIdentification_somDefaultVCopyInit;
- typedef void SOMLINK somTP_TSIdentification_somDefaultConstVCopyInit(TSIdentification *somSelf,
- somInitCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_TSIdentification_somDefaultConstVCopyInit *somTD_TSIdentification_somDefaultConstVCopyInit;
- typedef TSIdentification* SOMLINK somTP_TSIdentification_somDefaultConstAssign(TSIdentification *somSelf,
- somAssignCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_TSIdentification_somDefaultConstAssign *somTD_TSIdentification_somDefaultConstAssign;
- typedef TSIdentification* SOMLINK somTP_TSIdentification_somDefaultVAssign(TSIdentification *somSelf,
- somAssignCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_TSIdentification_somDefaultVAssign *somTD_TSIdentification_somDefaultVAssign;
- typedef TSIdentification* SOMLINK somTP_TSIdentification_somDefaultConstVAssign(TSIdentification *somSelf,
- somAssignCtrl* ctrl,
- SOMObject* fromObj);
- typedef somTP_TSIdentification_somDefaultConstVAssign *somTD_TSIdentification_somDefaultConstVAssign;
- typedef void SOMLINK somTP_TSIdentification_somInit(TSIdentification *somSelf);
- typedef somTP_TSIdentification_somInit *somTD_TSIdentification_somInit;
- typedef void SOMLINK somTP_TSIdentification_somFree(TSIdentification *somSelf);
- typedef somTP_TSIdentification_somFree *somTD_TSIdentification_somFree;
- typedef void SOMLINK somTP_TSIdentification_somUninit(TSIdentification *somSelf);
- typedef somTP_TSIdentification_somUninit *somTD_TSIdentification_somUninit;
- typedef SOMMSingleInstance* SOMLINK somTP_TSIdentification_somGetClass(TSIdentification *somSelf);
- typedef somTP_TSIdentification_somGetClass *somTD_TSIdentification_somGetClass;
- typedef string SOMLINK somTP_TSIdentification_somGetClassName(TSIdentification *somSelf);
- typedef somTP_TSIdentification_somGetClassName *somTD_TSIdentification_somGetClassName;
- typedef long SOMLINK somTP_TSIdentification_somGetSize(TSIdentification *somSelf);
- typedef somTP_TSIdentification_somGetSize *somTD_TSIdentification_somGetSize;
- typedef boolean SOMLINK somTP_TSIdentification_somIsA(TSIdentification *somSelf,
- SOMClass* aClassObj);
- typedef somTP_TSIdentification_somIsA *somTD_TSIdentification_somIsA;
- typedef boolean SOMLINK somTP_TSIdentification_somIsInstanceOf(TSIdentification *somSelf,
- SOMClass* aClassObj);
- typedef somTP_TSIdentification_somIsInstanceOf *somTD_TSIdentification_somIsInstanceOf;
- typedef boolean SOMLINK somTP_TSIdentification_somRespondsTo(TSIdentification *somSelf,
- somId mId);
- typedef somTP_TSIdentification_somRespondsTo *somTD_TSIdentification_somRespondsTo;
- typedef boolean SOMLINK somTP_TSIdentification_somDispatch(TSIdentification *somSelf,
- somToken* retValue,
- somId methodId,
- va_list ap);
- typedef somTP_TSIdentification_somDispatch *somTD_TSIdentification_somDispatch;
- typedef boolean SOMLINK somTP_TSIdentification_somClassDispatch(TSIdentification *somSelf,
- SOMClass* clsObj,
- somToken* retValue,
- somId methodId,
- va_list ap);
- typedef somTP_TSIdentification_somClassDispatch *somTD_TSIdentification_somClassDispatch;
- typedef boolean SOMLINK somTP_TSIdentification_somCastObj(TSIdentification *somSelf,
- SOMClass* cls);
- typedef somTP_TSIdentification_somCastObj *somTD_TSIdentification_somCastObj;
- typedef boolean SOMLINK somTP_TSIdentification_somResetObj(TSIdentification *somSelf);
- typedef somTP_TSIdentification_somResetObj *somTD_TSIdentification_somResetObj;
- typedef SOMObject* SOMLINK somTP_TSIdentification_somPrintSelf(TSIdentification *somSelf);
- typedef somTP_TSIdentification_somPrintSelf *somTD_TSIdentification_somPrintSelf;
- typedef void SOMLINK somTP_TSIdentification_somDumpSelf(TSIdentification *somSelf,
- long level);
- typedef somTP_TSIdentification_somDumpSelf *somTD_TSIdentification_somDumpSelf;
- typedef void SOMLINK somTP_TSIdentification_somDumpSelfInt(TSIdentification *somSelf,
- long level);
- typedef somTP_TSIdentification_somDumpSelfInt *somTD_TSIdentification_somDumpSelfInt;
- }
-
- #endif /* TSIdentification_API */
-
-
- /*
- * -- This emitter believes that method thunks are unavailable,
- * -- so somResolve will be called.
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) (somResolve(obj,mToken))
-
- /*
- * -- The C++ Wrapper Class for TSIdentification
- */
- class TSIdentification : public SOMObject
- {
- public:
-
- // TSIdentification::new creates the class object if necessary, and then uses somNewNoInit
- // to allocate memory and create the object. Initialization is in ctors.
- void *operator new(size_t)
- {
- if (!_TSIdentification) TSIdentificationNewClass(TSIdentification_MajorVersion,TSIdentification_MinorVersion);
- return (void*)
- SOM_Resolve(_TSIdentification,SOMClass,somNewNoInit)
- ((SOMClass *)((void*)_TSIdentification));
- }
-
- // TSIdentification::delete uses somDestruct.
- void operator delete(void * obj)
- {
- if (obj && *(void**)obj) {
- SOM_Resolve(obj,SOMObject,somDestruct)
- ((SOMObject*)obj, 1, 0);
- }
- }
-
- TSIdentification()
- {
- if (*(void**)this !=
- ((somParentMtabStructPtr)
- (TSIdentificationCClassData.parentMtab))->mtab)
- return;
- ((SOMObject*)((void*)this))->somDefaultInit(0);
- }
-
- TSIdentification(TSIdentification* fromObj)
- {
- if (*(void**)this !=
- ((somParentMtabStructPtr)
- (TSIdentificationCClassData.parentMtab))->mtab)
- return;
- ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
- }
-
- TSIdentification(const TSIdentification* fromObj)
- {
- if (*(void**)this !=
- ((somParentMtabStructPtr)
- (TSIdentificationCClassData.parentMtab))->mtab)
- return;
- ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
- }
-
-
- /* method: identify_sender */
- void identify_sender(Environment *ev,
- TSPortability_Sender* sender)
- {
- SOM_ResolveD(this,TSIdentification,TSIdentification,identify_sender)
- (this, ev,sender);
- }
-
-
- /* method: identify_receiver */
- void identify_receiver(Environment *ev,
- TSPortability_Receiver* receiver)
- {
- SOM_ResolveD(this,TSIdentification,TSIdentification,identify_receiver)
- (this, ev,receiver);
- }
-
-
- /* method: _get_sender */
- TSPortability_Sender* _get_sender(Environment *ev)
- {
- return SOM_ResolveD(this,TSIdentification,TSIdentification,_get_sender)
- (this, ev);
- }
-
-
- /* method: _get_receiver */
- TSPortability_Receiver* _get_receiver(Environment *ev)
- {
- return SOM_ResolveD(this,TSIdentification,TSIdentification,_get_receiver)
- (this, ev);
- }
-
-
- /*
- * Reintroduce inherited methods
- */
-
- /* initializer method: somDefaultInit */
- void somDefaultInit(somInitCtrl* ctrl)
- {
- SOM_ResolveD(this,TSIdentification,SOMObject,somDefaultInit)
- (this,ctrl);
- }
-
-
- /* method: somDestruct */
- void somDestruct(octet doFree,
- somDestructCtrl* ctrl)
- {
- SOM_ResolveD(this,TSIdentification,SOMObject,somDestruct)
- (this,doFree,ctrl);
- }
-
-
- /* initializer method: somDefaultCopyInit */
- void somDefaultCopyInit(somInitCtrl* ctrl,
- SOMObject* fromObj)
- {
- SOM_ResolveD(this,TSIdentification,SOMObject,somDefaultCopyInit)
- (this,ctrl,fromObj);
- }
-
-
- /* method: somDefaultAssign */
- TSIdentification* somDefaultAssign(somAssignCtrl* ctrl,
- SOMObject* fromObj)
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somDefaultAssign)
- (this,ctrl,fromObj);
- }
-
-
- /* initializer method: somDefaultConstCopyInit */
- void somDefaultConstCopyInit(somInitCtrl* ctrl,
- SOMObject* fromObj)
- {
- SOM_ResolveD(this,TSIdentification,SOMObject,somDefaultConstCopyInit)
- (this,ctrl,fromObj);
- }
-
-
- /* initializer method: somDefaultVCopyInit */
- void somDefaultVCopyInit(somInitCtrl* ctrl,
- SOMObject* fromObj)
- {
- SOM_ResolveD(this,TSIdentification,SOMObject,somDefaultVCopyInit)
- (this,ctrl,fromObj);
- }
-
-
- /* initializer method: somDefaultConstVCopyInit */
- void somDefaultConstVCopyInit(somInitCtrl* ctrl,
- SOMObject* fromObj)
- {
- SOM_ResolveD(this,TSIdentification,SOMObject,somDefaultConstVCopyInit)
- (this,ctrl,fromObj);
- }
-
-
- /* method: somDefaultConstAssign */
- TSIdentification* somDefaultConstAssign(somAssignCtrl* ctrl,
- SOMObject* fromObj)
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somDefaultConstAssign)
- (this,ctrl,fromObj);
- }
-
-
- /* method: somDefaultVAssign */
- TSIdentification* somDefaultVAssign(somAssignCtrl* ctrl,
- SOMObject* fromObj)
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somDefaultVAssign)
- (this,ctrl,fromObj);
- }
-
-
- /* method: somDefaultConstVAssign */
- TSIdentification* somDefaultConstVAssign(somAssignCtrl* ctrl,
- SOMObject* fromObj)
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somDefaultConstVAssign)
- (this,ctrl,fromObj);
- }
-
-
- /* method: somInit */
- void somInit()
- {
- SOM_ResolveD(this,TSIdentification,SOMObject,somInit)
- (this);
- }
-
-
- /* method: somFree */
- void somFree()
- {
- SOM_ResolveD(this,TSIdentification,SOMObject,somFree)
- (this);
- }
-
-
- /* method: somUninit */
- void somUninit()
- {
- SOM_ResolveD(this,TSIdentification,SOMObject,somUninit)
- (this);
- }
-
-
- /* method: somGetClass */
- SOMMSingleInstance* somGetClass()
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somGetClass)
- (this);
- }
-
-
- /* method: somGetClassName */
- string somGetClassName()
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somGetClassName)
- (this);
- }
-
-
- /* method: somGetSize */
- long somGetSize()
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somGetSize)
- (this);
- }
-
-
- /* method: somIsA */
- boolean somIsA(SOMClass* aClassObj)
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somIsA)
- (this,aClassObj);
- }
-
-
- /* method: somIsInstanceOf */
- boolean somIsInstanceOf(SOMClass* aClassObj)
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somIsInstanceOf)
- (this,aClassObj);
- }
-
-
- /* method: somRespondsTo */
- boolean somRespondsTo(somId mId)
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somRespondsTo)
- (this,mId);
- }
-
-
- /* va_list method: somDispatch */
- /* the va_list invocation form */
- boolean TSIdentification_somDispatch(somToken* retValue,
- somId methodId,
- va_list ap)
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somDispatch)
- (this,retValue,methodId,ap);
- }
-
- /* the varargs invocation form */
- boolean somDispatch(somToken* retValue,
- somId methodId,
- ...)
- {
- va_list ap;
- va_start(ap, methodId);
- boolean __somResult =
- SOM_ResolveD(this,TSIdentification,SOMObject,somDispatch)
- (this,retValue,methodId,ap);
- va_end(ap);
- return __somResult;
- }
-
-
- /* va_list method: somClassDispatch */
- /* the va_list invocation form */
- boolean TSIdentification_somClassDispatch(SOMClass* clsObj,
- somToken* retValue,
- somId methodId,
- va_list ap)
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somClassDispatch)
- (this,clsObj,retValue,methodId,ap);
- }
-
- /* the varargs invocation form */
- boolean somClassDispatch(SOMClass* clsObj,
- somToken* retValue,
- somId methodId,
- ...)
- {
- va_list ap;
- va_start(ap, methodId);
- boolean __somResult =
- SOM_ResolveD(this,TSIdentification,SOMObject,somClassDispatch)
- (this,clsObj,retValue,methodId,ap);
- va_end(ap);
- return __somResult;
- }
-
-
- /* method: somCastObj */
- boolean somCastObj(SOMClass* cls)
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somCastObj)
- (this,cls);
- }
-
-
- /* method: somResetObj */
- boolean somResetObj()
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somResetObj)
- (this);
- }
-
-
- /* method: somPrintSelf */
- SOMObject* somPrintSelf()
- {
- return SOM_ResolveD(this,TSIdentification,SOMObject,somPrintSelf)
- (this);
- }
-
-
- /* method: somDumpSelf */
- void somDumpSelf(long level)
- {
- SOM_ResolveD(this,TSIdentification,SOMObject,somDumpSelf)
- (this,level);
- }
-
-
- /* method: somDumpSelfInt */
- void somDumpSelfInt(long level)
- {
- SOM_ResolveD(this,TSIdentification,SOMObject,somDumpSelfInt)
- (this,level);
- }
-
-
-
- }; /* TSIdentification */
-
-
-
- #endif /* SOM_TSIdentification_xh */
-