
/*
 * This file was generated by the SOM Compiler.
 * FileName: omgidobj.xh.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.19
 *     SOM Emitter emitxh.dll: 2.108
 */

#ifndef SOM_Module_omgidobj_CosObjectIdentity_defined
#define SOM_Module_omgidobj_CosObjectIdentity_defined 1
#include <som.xh>

/*
 * Start of bindings for IDL types
 */

class SOMClass;
class SOMObject;
class CosObjectIdentity_IdentifiableObject;
class CosObjectIdentity_IdentifiableObject;
typedef
unsigned long  CosObjectIdentity_ObjectIdentifier;

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_ObjectIdentifier
    #ifdef ObjectIdentifier
        #undef ObjectIdentifier
        #define SOMTGD_ObjectIdentifier 1
    #else
        #define ObjectIdentifier CosObjectIdentity_ObjectIdentifier
    #endif /* ObjectIdentifier */
#endif /* SOMTGD_ObjectIdentifier */
#endif /* SOM_DONT_USE_SHORT_NAMES */

/*
 * End of bindings for IDL types.
 */
#endif /* SOM_Module_omgidobj_CosObjectIdentity_defined */

#ifndef SOM_CosObjectIdentity_IdentifiableObject_xh
#define SOM_CosObjectIdentity_IdentifiableObject_xh


#define CosObjectIdentity_IdentifiableObject_MajorVersion 3
#define CosObjectIdentity_IdentifiableObject_MinorVersion 0
class CosObjectIdentity_IdentifiableObject;

/* Parents */
#ifndef SOM_SOMObject_xh
#ifdef SOMLOCALINCLUDES
#include "somobj.xh"
#else
#include <somobj.xh>
#endif
#endif

/* Useful C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>

#ifndef CosObjectIdentity_IdentifiableObject_API
#define CosObjectIdentity_IdentifiableObject_API
/*
 * -- The Class API
 */
#ifndef SOM_IMPORTEXPORT_somabs1_omgidobj
#ifdef SOM_DLL_somabs1
	/* export semantics */
	#if defined(SOM_DEFFILE_somabs1)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somabs1))\
	|| !defined(SOM_Module_omgidobj_Source)
	#define SOM_IMPORTEXPORT_somabs1_omgidobj
	#else
	#define SOM_IMPORTEXPORT_somabs1_omgidobj SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somabs1_omgidobj SOMDLLIMPORT
#endif
#endif

/*
 * Start of bindings for IDL types
 */


/*
 * End of bindings for IDL types.
 */

/*
 * A function to create the CosObjectIdentity_IdentifiableObject class object...
 */
SOMEXTERN SOM_IMPORTEXPORT_somabs1_omgidobj SOMClass * SOMLINK CosObjectIdentity_IdentifiableObjectNewClass(
		integer4 majorVersion,
		integer4 minorVersion);


/*
 * The API 2 ClassData Structures...
 */
SOMEXTERN struct CosObjectIdentity_IdentifiableObjectClassDataStructure {
	SOMClass *classObject;
	somMToken _get_constant_random_id;
	somMToken _set_constant_random_id;
	somMToken is_identical;
} SOMDLINK SOM_IMPORTEXPORT_somabs1_omgidobj CosObjectIdentity_IdentifiableObjectClassData;
SOMEXTERN struct CosObjectIdentity_IdentifiableObjectCClassDataStructure {
	som3ClassDetailsPtr    parentMtab;
	somDToken              instanceDataToken;
} SOMDLINK SOM_IMPORTEXPORT_somabs1_omgidobj CosObjectIdentity_IdentifiableObjectCClassData;


/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_CosObjectIdentity_IdentifiableObject (CosObjectIdentity_IdentifiableObjectClassData.classObject)
#ifndef SOMGD_CosObjectIdentity_IdentifiableObject
    #if (defined(_CosObjectIdentity_IdentifiableObject) || defined(__CosObjectIdentity_IdentifiableObject))
        #undef _CosObjectIdentity_IdentifiableObject
        #undef __CosObjectIdentity_IdentifiableObject
        #define SOMGD_CosObjectIdentity_IdentifiableObject 1
    #else
        #define _CosObjectIdentity_IdentifiableObject _SOMCLASS_CosObjectIdentity_IdentifiableObject
    #endif /* _CosObjectIdentity_IdentifiableObject */
#endif /* SOMGD_CosObjectIdentity_IdentifiableObject */
#define CosObjectIdentity_IdentifiableObject_classObj _SOMCLASS_CosObjectIdentity_IdentifiableObject
#define _SOMMTOKEN_CosObjectIdentity_IdentifiableObject(method) ((somMToken)CosObjectIdentity_IdentifiableObjectClassData.method)

/*
 * -- Typedefs for CosObjectIdentity_IdentifiableObject Method Procedures
 */
SOMEXTERN {
typedef CosObjectIdentity_ObjectIdentifier   SOMLINK somTP_CosObjectIdentity_IdentifiableObject__get_constant_random_id(CosObjectIdentity_IdentifiableObject *somSelf, Environment *ev);
typedef somTP_CosObjectIdentity_IdentifiableObject__get_constant_random_id *somTD_CosObjectIdentity_IdentifiableObject__get_constant_random_id;
typedef boolean   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_is_identical(CosObjectIdentity_IdentifiableObject *somSelf, Environment *ev, 
		CosObjectIdentity_IdentifiableObject* other_object);
typedef somTP_CosObjectIdentity_IdentifiableObject_is_identical *somTD_CosObjectIdentity_IdentifiableObject_is_identical;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDefaultInit(CosObjectIdentity_IdentifiableObject *somSelf, 
		som3InitCtrl* ctrl);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDefaultInit *somTD_CosObjectIdentity_IdentifiableObject_somDefaultInit;
typedef void   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDestruct(CosObjectIdentity_IdentifiableObject *somSelf, 
		octet doFree, 
		som3DestructCtrl* ctrl);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDestruct *somTD_CosObjectIdentity_IdentifiableObject_somDestruct;
typedef void   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDefaultCopyInit(CosObjectIdentity_IdentifiableObject *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDefaultCopyInit *somTD_CosObjectIdentity_IdentifiableObject_somDefaultCopyInit;
typedef CosObjectIdentity_IdentifiableObject*   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDefaultAssign(CosObjectIdentity_IdentifiableObject *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDefaultAssign *somTD_CosObjectIdentity_IdentifiableObject_somDefaultAssign;
typedef void   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDefaultConstCopyInit(CosObjectIdentity_IdentifiableObject *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDefaultConstCopyInit *somTD_CosObjectIdentity_IdentifiableObject_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDefaultVCopyInit(CosObjectIdentity_IdentifiableObject *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDefaultVCopyInit *somTD_CosObjectIdentity_IdentifiableObject_somDefaultVCopyInit;
typedef void   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDefaultConstVCopyInit(CosObjectIdentity_IdentifiableObject *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDefaultConstVCopyInit *somTD_CosObjectIdentity_IdentifiableObject_somDefaultConstVCopyInit;
typedef CosObjectIdentity_IdentifiableObject*   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDefaultConstAssign(CosObjectIdentity_IdentifiableObject *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDefaultConstAssign *somTD_CosObjectIdentity_IdentifiableObject_somDefaultConstAssign;
typedef CosObjectIdentity_IdentifiableObject*   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDefaultVAssign(CosObjectIdentity_IdentifiableObject *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDefaultVAssign *somTD_CosObjectIdentity_IdentifiableObject_somDefaultVAssign;
typedef CosObjectIdentity_IdentifiableObject*   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDefaultConstVAssign(CosObjectIdentity_IdentifiableObject *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDefaultConstVAssign *somTD_CosObjectIdentity_IdentifiableObject_somDefaultConstVAssign;
typedef void   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somInit(CosObjectIdentity_IdentifiableObject *somSelf);
typedef somTP_CosObjectIdentity_IdentifiableObject_somInit *somTD_CosObjectIdentity_IdentifiableObject_somInit;
typedef void   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somUninit(CosObjectIdentity_IdentifiableObject *somSelf);
typedef somTP_CosObjectIdentity_IdentifiableObject_somUninit *somTD_CosObjectIdentity_IdentifiableObject_somUninit;
typedef void   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somFree(CosObjectIdentity_IdentifiableObject *somSelf);
typedef somTP_CosObjectIdentity_IdentifiableObject_somFree *somTD_CosObjectIdentity_IdentifiableObject_somFree;
typedef SOMClass*   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somGetClass(CosObjectIdentity_IdentifiableObject *somSelf);
typedef somTP_CosObjectIdentity_IdentifiableObject_somGetClass *somTD_CosObjectIdentity_IdentifiableObject_somGetClass;
typedef string   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somGetClassName(CosObjectIdentity_IdentifiableObject *somSelf);
typedef somTP_CosObjectIdentity_IdentifiableObject_somGetClassName *somTD_CosObjectIdentity_IdentifiableObject_somGetClassName;
typedef long   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somGetSize(CosObjectIdentity_IdentifiableObject *somSelf);
typedef somTP_CosObjectIdentity_IdentifiableObject_somGetSize *somTD_CosObjectIdentity_IdentifiableObject_somGetSize;
typedef boolean   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somIsA(CosObjectIdentity_IdentifiableObject *somSelf, 
		SOMClass* aClassObj);
typedef somTP_CosObjectIdentity_IdentifiableObject_somIsA *somTD_CosObjectIdentity_IdentifiableObject_somIsA;
typedef boolean   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somIsInstanceOf(CosObjectIdentity_IdentifiableObject *somSelf, 
		SOMClass* aClassObj);
typedef somTP_CosObjectIdentity_IdentifiableObject_somIsInstanceOf *somTD_CosObjectIdentity_IdentifiableObject_somIsInstanceOf;
typedef boolean   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somRespondsTo(CosObjectIdentity_IdentifiableObject *somSelf, 
		somId mId);
typedef somTP_CosObjectIdentity_IdentifiableObject_somRespondsTo *somTD_CosObjectIdentity_IdentifiableObject_somRespondsTo;
typedef boolean   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDispatch(CosObjectIdentity_IdentifiableObject *somSelf, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDispatch *somTD_CosObjectIdentity_IdentifiableObject_somDispatch;
typedef boolean   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somClassDispatch(CosObjectIdentity_IdentifiableObject *somSelf, 
		SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_CosObjectIdentity_IdentifiableObject_somClassDispatch *somTD_CosObjectIdentity_IdentifiableObject_somClassDispatch;
typedef boolean   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somCastObj(CosObjectIdentity_IdentifiableObject *somSelf, 
		SOMClass* castedCls);
typedef somTP_CosObjectIdentity_IdentifiableObject_somCastObj *somTD_CosObjectIdentity_IdentifiableObject_somCastObj;
typedef boolean   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somResetObj(CosObjectIdentity_IdentifiableObject *somSelf);
typedef somTP_CosObjectIdentity_IdentifiableObject_somResetObj *somTD_CosObjectIdentity_IdentifiableObject_somResetObj;
typedef CosObjectIdentity_IdentifiableObject*   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somPrintSelf(CosObjectIdentity_IdentifiableObject *somSelf);
typedef somTP_CosObjectIdentity_IdentifiableObject_somPrintSelf *somTD_CosObjectIdentity_IdentifiableObject_somPrintSelf;
typedef void   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDumpSelf(CosObjectIdentity_IdentifiableObject *somSelf, 
		long level);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDumpSelf *somTD_CosObjectIdentity_IdentifiableObject_somDumpSelf;
typedef void   SOMLINK somTP_CosObjectIdentity_IdentifiableObject_somDumpSelfInt(CosObjectIdentity_IdentifiableObject *somSelf, 
		long level);
typedef somTP_CosObjectIdentity_IdentifiableObject_somDumpSelfInt *somTD_CosObjectIdentity_IdentifiableObject_somDumpSelfInt;
}

#endif /* CosObjectIdentity_IdentifiableObject_API */


/*
 * -- The C++ Wrapper Class for CosObjectIdentity_IdentifiableObject
 */
class CosObjectIdentity_IdentifiableObject : public SOMObject
{
public:

// CosObjectIdentity_IdentifiableObject::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 (!_CosObjectIdentity_IdentifiableObject) CosObjectIdentity_IdentifiableObjectNewClass(CosObjectIdentity_IdentifiableObject_MajorVersion,CosObjectIdentity_IdentifiableObject_MinorVersion);
   return (void*)
   (((somTD_SOMClass_somNewNoInit)(SOMClassClassData.somNewNoInit))
         ((SOMClass *)((void*)_CosObjectIdentity_IdentifiableObject)));
}

// CosObjectIdentity_IdentifiableObject::delete uses somFree.
void operator delete(void * obj)
{
   if (obj && *(void**)obj)
      ((SOMObject*)obj)->somFree();
}

CosObjectIdentity_IdentifiableObject& operator=(CosObjectIdentity_IdentifiableObject& fromObj)
{
   this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
   return *this;
}

CosObjectIdentity_IdentifiableObject()
{
   if (*(void**)this != (CosObjectIdentity_IdentifiableObjectCClassData.parentMtab)->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultInit(0);
}

CosObjectIdentity_IdentifiableObject(CosObjectIdentity_IdentifiableObject* fromObj)
{
   if (*(void**)this != (CosObjectIdentity_IdentifiableObjectCClassData.parentMtab)->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}


/* method: _get_constant_random_id */
CosObjectIdentity_ObjectIdentifier   _get_constant_random_id(Environment *ev)
{
/*
 * Method from the IDL attribute statement:
 * "readonly attribute CosObjectIdentity_ObjectIdentifier constant_random_id"
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_CosObjectIdentity_IdentifiableObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject__get_constant_random_id)(CosObjectIdentity_IdentifiableObjectClassData._get_constant_random_id))(((CosObjectIdentity_IdentifiableObject *)((void *)this)), ev)
	);
}


/* method: is_identical */
boolean   is_identical(Environment *ev, 
		CosObjectIdentity_IdentifiableObject* other_object)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_CosObjectIdentity_IdentifiableObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_is_identical)(CosObjectIdentity_IdentifiableObjectClassData.is_identical))(((CosObjectIdentity_IdentifiableObject *)((void *)this)), ev,other_object)
	);
}


/*
 * Reintroduce inherited methods
 */

/* initializer method: somDefaultInit */
void   somDefaultInit(som3InitCtrl* ctrl)
{
/*
 *  A default initializer for a SOM object. Passing a null ctrl
 *  indicates to the receiver that its class is the class of the
 *  object being initialized, whereby the initializer will determine
 *  an appropriate control structure.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDefaultInit)(SOMObjectClassData.somDefaultInit))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),ctrl)
	);
}


/* method: somDestruct */
void   somDestruct(octet doFree, 
		som3DestructCtrl* ctrl)
{
/*
 *  The default destructor for a SOM object. A nonzero <doFree>
 *  indicates that the object storage should be freed by the
 *  object's class (via somDeallocate) after uninitialization.
 *  As with somDefaultInit, a null ctrl can be passed.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDestruct)(SOMObjectClassData.somDestruct))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),doFree,ctrl)
	);
}


/* initializer method: somDefaultCopyInit */
void   somDefaultCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor. Use this to make copies of objects for
 *  calling methods with "by-value" argument semantics.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDefaultCopyInit)(SOMObjectClassData.somDefaultCopyInit))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultAssign */
CosObjectIdentity_IdentifiableObject*  somDefaultAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator. Use this to "assign" the state of one
 *  object to another.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDefaultAssign)(SOMObjectClassData.somDefaultAssign))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),ctrl,fromObj)
	);
}


/* initializer method: somDefaultConstCopyInit */
void   somDefaultConstCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor that uses a const fromObj.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDefaultConstCopyInit)(SOMObjectClassData.somDefaultConstCopyInit))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),ctrl,fromObj)
	);
}


/* initializer method: somDefaultVCopyInit */
void   somDefaultVCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor that uses a volatile fromObj.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDefaultVCopyInit)(SOMObjectClassData.somDefaultVCopyInit))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),ctrl,fromObj)
	);
}


/* initializer method: somDefaultConstVCopyInit */
void   somDefaultConstVCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor that uses a const volatile fromObj.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDefaultConstVCopyInit)(SOMObjectClassData.somDefaultConstVCopyInit))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultConstAssign */
CosObjectIdentity_IdentifiableObject*  somDefaultConstAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator that uses a const fromObj.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDefaultConstAssign)(SOMObjectClassData.somDefaultConstAssign))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultVAssign */
CosObjectIdentity_IdentifiableObject*  somDefaultVAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator that uses a volatile fromObj.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDefaultVAssign)(SOMObjectClassData.somDefaultVAssign))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultConstVAssign */
CosObjectIdentity_IdentifiableObject*  somDefaultConstVAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator that uses a const volatile fromObj.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDefaultConstVAssign)(SOMObjectClassData.somDefaultConstVAssign))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somInit */
void   somInit()
{
/*
 *  Obsolete but still supported. Override somDefaultInit instead of somInit.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somInit)(SOMObjectClassData.somInit))(((CosObjectIdentity_IdentifiableObject *)((void *)this)))
	);
}


/* method: somUninit */
void   somUninit()
{
/*
 *  Obsolete but still supported. Override somDestruct instead of somUninit.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somUninit)(SOMObjectClassData.somUninit))(((CosObjectIdentity_IdentifiableObject *)((void *)this)))
	);
}


/* method: somFree */
void   somFree()
{
/*
 *  The default implementation just calls somDestruct.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somFree)(SOMObjectClassData.somFree))(((CosObjectIdentity_IdentifiableObject *)((void *)this)))
	);
}


/* method: somGetClass */
SOMClass*   somGetClass()
{
/*
 *  Return the receiver's class.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somGetClass)(SOMObjectClassData.somGetClass))(((CosObjectIdentity_IdentifiableObject *)((void *)this)))
	);
}


/* method: somGetClassName */
string   somGetClassName()
{
/*
 *  Return the name of the receiver's class.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somGetClassName)(SOMObjectClassData.somGetClassName))(((CosObjectIdentity_IdentifiableObject *)((void *)this)))
	);
}


/* method: somGetSize */
long   somGetSize()
{
/*
 *  Return the size of the receiver.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somGetSize)(SOMObjectClassData.somGetSize))(((CosObjectIdentity_IdentifiableObject *)((void *)this)))
	);
}


/* method: somIsA */
boolean   somIsA(SOMClass* aClassObj)
{
/*
 *  Returns 1 (true) if the receiver responds to methods
 *  introduced by <aClassObj>, and 0 (false) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somIsA)(SOMObjectClassData.somIsA))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),aClassObj)
	);
}


/* method: somIsInstanceOf */
boolean   somIsInstanceOf(SOMClass* aClassObj)
{
/*
 *  Returns 1 (true) if the receiver is an instance of
 *  <aClassObj> and 0 (false) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somIsInstanceOf)(SOMObjectClassData.somIsInstanceOf))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),aClassObj)
	);
}


/* method: somRespondsTo */
boolean   somRespondsTo(somId mId)
{
/*
 *  Returns 1 (true) if the indicated method can be invoked
 *  on the receiver and 0 (false) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somRespondsTo)(SOMObjectClassData.somRespondsTo))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),mId)
	);
}


/* va_list method: somDispatch */

/*
 *  This method provides a generic, class-specific dispatch mechanism.
 *  It accepts as input <retValue> a pointer to the memory area to be
 *  loaded with the result of dispatching the method indicated by
 *  <methodId> using the arguments in <ap>. <ap> contains the object
 *  on which the method is to be invoked as the first argument.
 * 
 *  Default redispatch stubs invoke this method.
 */
/* the va_list invocation form */
boolean   SOMObject_somDispatch(somToken* retValue, 
		somId methodId, 
		va_list ap)
{   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDispatch)(SOMObjectClassData.somDispatch))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),retValue,methodId,ap)
	);
}

/* the varargs invocation form */
boolean   somDispatch(somToken* retValue, 
		somId methodId, 
		...)
{
/*
 *  This method provides a generic, class-specific dispatch mechanism.
 *  It accepts as input <retValue> a pointer to the memory area to be
 *  loaded with the result of dispatching the method indicated by
 *  <methodId> using the arguments in <ap>. <ap> contains the object
 *  on which the method is to be invoked as the first argument.
 * 
 *  Default redispatch stubs invoke this method.
 */
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDispatch)(SOMObjectClassData.somDispatch))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),retValue,methodId,ap)
	);
   va_end(ap);
   return __somResult;
}


/* va_list method: somClassDispatch */

/*
 *  Like somDispatch, but method resolution for static methods is done
 *  according to the clsObj instance method table.
 */
/* the va_list invocation form */
boolean   SOMObject_somClassDispatch(SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap)
{   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),clsObj,retValue,methodId,ap)
	);
}

/* the varargs invocation form */
boolean   somClassDispatch(SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		...)
{
/*
 *  Like somDispatch, but method resolution for static methods is done
 *  according to the clsObj instance method table.
 */
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),clsObj,retValue,methodId,ap)
	);
   va_end(ap);
   return __somResult;
}


/* method: somCastObj */
boolean   somCastObj(SOMClass* castedCls)
{
/*
 *  Changes the behavior of the target object to that implemented
 *  by castedCls. This is possible when all concrete data in castedCls
 *  is also concrete in the true class of the target object.
 *  Returns true (1) on success, and false (0) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somCastObj)(SOMObjectClassData.somCastObj))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),castedCls)
	);
}


/* method: somResetObj */
boolean   somResetObj()
{
/*
 *  reset an object to its true class. Returns true always.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somResetObj)(SOMObjectClassData.somResetObj))(((CosObjectIdentity_IdentifiableObject *)((void *)this)))
	);
}


/* method: somPrintSelf */
CosObjectIdentity_IdentifiableObject*  somPrintSelf()
{
/*
 *  Uses <SOMOutCharRoutine> to write a brief string with identifying
 *  information about this object.  The default implementation just gives
 *  the object's class name and its address in memory.
 *  <self> is returned.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somPrintSelf)(SOMObjectClassData.somPrintSelf))(((CosObjectIdentity_IdentifiableObject *)((void *)this)))
	);
}


/* method: somDumpSelf */
void   somDumpSelf(long level)
{
/*
 *  Uses <SOMOutCharRoutine> to write a detailed description of this object
 *  and its current state.
 * 
 *  <level> indicates the nesting level for describing compound objects
 *  it must be greater than or equal to zero.  All lines in the
 *  description will be preceeded by <2*level> spaces.
 * 
 *  This routine only actually writes the data that concerns the object
 *  as a whole, such as class, and uses <somDumpSelfInt> to describe
 *  the object's current state.  This approach allows readable
 *  descriptions of compound objects to be constructed.
 * 
 *  Generally it is not necessary to override this method, if it is
 *  overriden it generally must be completely replaced.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDumpSelf)(SOMObjectClassData.somDumpSelf))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),level)
	);
}


/* method: somDumpSelfInt */
void   somDumpSelfInt(long level)
{
/*
 *  Uses <SOMOutCharRoutine> to write in the current state of this object.
 *  Generally this method will need to be overridden.  When overriding
 *  it, begin by calling the parent class form of this method and then
 *  write in a description of your class's instance data. This will
 *  result in a description of all the object's instance data going
 *  from its root ancestor class to its specific class.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_CosObjectIdentity_IdentifiableObject_somDumpSelfInt)(SOMObjectClassData.somDumpSelfInt))(((CosObjectIdentity_IdentifiableObject *)((void *)this)),level)
	);
}



};   /* CosObjectIdentity_IdentifiableObject */



#endif       /* SOM_CosObjectIdentity_IdentifiableObject_xh */
