
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\BUILD\NT\ship\include\ObjectNS.xh.
 * Generated using:
 *     SOM Precompiler somipc: Development
 *     SOM Emitter emitxh.dll: Development
 */

#ifndef SOM_ODObjectNameSpace_xh
#define SOM_ODObjectNameSpace_xh

class ODObjectNameSpace;

#define ODObjectNameSpace_MajorVersion 1
#define ODObjectNameSpace_MinorVersion 0

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

/* C++ parent defs */
#ifndef SOM_ODNameSpace_xh
#include <NamSpac.xh>
#endif

#ifndef ODObjectNameSpace_API
#define ODObjectNameSpace_API
/*
 * -- The Class API
 */

/*
 * Start of user-defined types:
 */
class SOMClass;
class SOMObject;
class ODFrame;
class ODFacet;
class ODPlatformCanvas;
class ODObject;
class ODExtension;
class ODNameSpace;
class ODStorageUnitView;
class ODObjectNameSpace;
class ODObjectIterator;

/*
 * End of user-defined types.
 */

/* A procedure to create the ODObjectNameSpace Class */
SOMEXTERN
#if (defined(SOM_Module_ObjectNS_Source) || defined(ODObjectNameSpace_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODObjectNameSpace))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODObjectNameSpaceNewClass(
		integer4,
		integer4 );

/* The API to the ODObjectNameSpace class object, and the methods it introduces. */
SOMEXTERN struct ODObjectNameSpaceClassDataStructure {
	SOMClass *classObject;
	somMToken Register;
	somMToken GetEntry;
	somMToken CreateIterator;
	somMToken reserved1;
}
#if !(defined(SOM_Module_ObjectNS_Source) || defined(ODObjectNameSpace_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODObjectNameSpace))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODObjectNameSpaceClassData;
#define _ODObjectNameSpace ODObjectNameSpaceClassData.classObject

/* The API to parentMtabs for ODObjectNameSpace, and the instance data it introduces. */
SOMEXTERN struct ODObjectNameSpaceCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_ObjectNS_Source) || defined(ODObjectNameSpace_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODObjectNameSpace))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODObjectNameSpaceCClassData;

/*
 * -- Typedefs for ODObjectNameSpace Method Procedures
 */
extern "C" {
typedef void   SOMLINK somTP_ODObjectNameSpace_Register(ODObjectNameSpace *somSelf, Environment *ev,
		ODISOStr key,
		ODObject* object);
typedef somTP_ODObjectNameSpace_Register *somTD_ODObjectNameSpace_Register;
typedef ODBoolean   SOMLINK somTP_ODObjectNameSpace_GetEntry(ODObjectNameSpace *somSelf, Environment *ev,
		ODISOStr key,
		ODObject** object);
typedef somTP_ODObjectNameSpace_GetEntry *somTD_ODObjectNameSpace_GetEntry;
typedef ODObjectIterator*   SOMLINK somTP_ODObjectNameSpace_CreateIterator(ODObjectNameSpace *somSelf, Environment *ev);
typedef somTP_ODObjectNameSpace_CreateIterator *somTD_ODObjectNameSpace_CreateIterator;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef ODISOStr   SOMLINK somTP_ODObjectNameSpace_GetName(ODObjectNameSpace *somSelf, Environment *ev);
typedef somTP_ODObjectNameSpace_GetName *somTD_ODObjectNameSpace_GetName;
typedef ODNSTypeSpec   SOMLINK somTP_ODObjectNameSpace_GetType(ODObjectNameSpace *somSelf, Environment *ev);
typedef somTP_ODObjectNameSpace_GetType *somTD_ODObjectNameSpace_GetType;
typedef ODNameSpace*   SOMLINK somTP_ODObjectNameSpace_GetParent(ODObjectNameSpace *somSelf, Environment *ev);
typedef somTP_ODObjectNameSpace_GetParent *somTD_ODObjectNameSpace_GetParent;
typedef void   SOMLINK somTP_ODObjectNameSpace_SetType(ODObjectNameSpace *somSelf, Environment *ev,
		ODNSTypeSpec type);
typedef somTP_ODObjectNameSpace_SetType *somTD_ODObjectNameSpace_SetType;
typedef void   SOMLINK somTP_ODObjectNameSpace_Unregister(ODObjectNameSpace *somSelf, Environment *ev,
		ODISOStr key);
typedef somTP_ODObjectNameSpace_Unregister *somTD_ODObjectNameSpace_Unregister;
typedef ODBoolean   SOMLINK somTP_ODObjectNameSpace_Exists(ODObjectNameSpace *somSelf, Environment *ev,
		ODISOStr key);
typedef somTP_ODObjectNameSpace_Exists *somTD_ODObjectNameSpace_Exists;
typedef void   SOMLINK somTP_ODObjectNameSpace_WriteToFile(ODObjectNameSpace *somSelf, Environment *ev,
		ODByteArray* file);
typedef somTP_ODObjectNameSpace_WriteToFile *somTD_ODObjectNameSpace_WriteToFile;
typedef void   SOMLINK somTP_ODObjectNameSpace_ReadFromFile(ODObjectNameSpace *somSelf, Environment *ev,
		ODByteArray* file);
typedef somTP_ODObjectNameSpace_ReadFromFile *somTD_ODObjectNameSpace_ReadFromFile;
typedef void   SOMLINK somTP_ODObjectNameSpace_WriteToStorage(ODObjectNameSpace *somSelf, Environment *ev,
		ODStorageUnitView* view);
typedef somTP_ODObjectNameSpace_WriteToStorage *somTD_ODObjectNameSpace_WriteToStorage;
typedef void   SOMLINK somTP_ODObjectNameSpace_ReadFromStorage(ODObjectNameSpace *somSelf, Environment *ev,
		ODStorageUnitView* view);
typedef somTP_ODObjectNameSpace_ReadFromStorage *somTD_ODObjectNameSpace_ReadFromStorage;
typedef void   SOMLINK somTP_ODObjectNameSpace_somUninit(ODObjectNameSpace *somSelf);
typedef somTP_ODObjectNameSpace_somUninit *somTD_ODObjectNameSpace_somUninit;
typedef ODSize   SOMLINK somTP_ODObjectNameSpace_Purge(ODObjectNameSpace *somSelf, Environment *ev,
		ODSize size);
typedef somTP_ODObjectNameSpace_Purge *somTD_ODObjectNameSpace_Purge;
typedef void   SOMLINK somTP_ODObjectNameSpace_InitObject(ODObjectNameSpace *somSelf, Environment *ev);
typedef somTP_ODObjectNameSpace_InitObject *somTD_ODObjectNameSpace_InitObject;
typedef ODBoolean   SOMLINK somTP_ODObjectNameSpace_HasExtension(ODObjectNameSpace *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODObjectNameSpace_HasExtension *somTD_ODObjectNameSpace_HasExtension;
typedef ODExtension*   SOMLINK somTP_ODObjectNameSpace_AcquireExtension(ODObjectNameSpace *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODObjectNameSpace_AcquireExtension *somTD_ODObjectNameSpace_AcquireExtension;
typedef void   SOMLINK somTP_ODObjectNameSpace_ReleaseExtension(ODObjectNameSpace *somSelf, Environment *ev,
		ODExtension* extension);
typedef somTP_ODObjectNameSpace_ReleaseExtension *somTD_ODObjectNameSpace_ReleaseExtension;
typedef ODBoolean   SOMLINK somTP_ODObjectNameSpace_IsEqualTo(ODObjectNameSpace *somSelf, Environment *ev,
		ODObject* object);
typedef somTP_ODObjectNameSpace_IsEqualTo *somTD_ODObjectNameSpace_IsEqualTo;
typedef void   SOMLINK somTP_ODObjectNameSpace_SubClassResponsibility(ODObjectNameSpace *somSelf, Environment *ev);
typedef somTP_ODObjectNameSpace_SubClassResponsibility *somTD_ODObjectNameSpace_SubClassResponsibility;
typedef void   SOMLINK somTP_ODObjectNameSpace_somInit(ODObjectNameSpace *somSelf);
typedef somTP_ODObjectNameSpace_somInit *somTD_ODObjectNameSpace_somInit;
typedef void   SOMLINK somTP_ODObjectNameSpace_somDefaultInit(ODObjectNameSpace *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODObjectNameSpace_somDefaultInit *somTD_ODObjectNameSpace_somDefaultInit;
typedef void   SOMLINK somTP_ODObjectNameSpace_somDestruct(ODObjectNameSpace *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODObjectNameSpace_somDestruct *somTD_ODObjectNameSpace_somDestruct;
typedef void   SOMLINK somTP_ODObjectNameSpace_somDefaultCopyInit(ODObjectNameSpace *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODObjectNameSpace_somDefaultCopyInit *somTD_ODObjectNameSpace_somDefaultCopyInit;
typedef ODObjectNameSpace*   SOMLINK somTP_ODObjectNameSpace_somDefaultAssign(ODObjectNameSpace *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODObjectNameSpace_somDefaultAssign *somTD_ODObjectNameSpace_somDefaultAssign;
typedef void   SOMLINK somTP_ODObjectNameSpace_somDefaultConstCopyInit(ODObjectNameSpace *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODObjectNameSpace_somDefaultConstCopyInit *somTD_ODObjectNameSpace_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODObjectNameSpace_somDefaultVCopyInit(ODObjectNameSpace *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODObjectNameSpace_somDefaultVCopyInit *somTD_ODObjectNameSpace_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODObjectNameSpace_somDefaultConstVCopyInit(ODObjectNameSpace *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODObjectNameSpace_somDefaultConstVCopyInit *somTD_ODObjectNameSpace_somDefaultConstVCopyInit;
typedef ODObjectNameSpace*   SOMLINK somTP_ODObjectNameSpace_somDefaultConstAssign(ODObjectNameSpace *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODObjectNameSpace_somDefaultConstAssign *somTD_ODObjectNameSpace_somDefaultConstAssign;
typedef ODObjectNameSpace*   SOMLINK somTP_ODObjectNameSpace_somDefaultVAssign(ODObjectNameSpace *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODObjectNameSpace_somDefaultVAssign *somTD_ODObjectNameSpace_somDefaultVAssign;
typedef ODObjectNameSpace*   SOMLINK somTP_ODObjectNameSpace_somDefaultConstVAssign(ODObjectNameSpace *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODObjectNameSpace_somDefaultConstVAssign *somTD_ODObjectNameSpace_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODObjectNameSpace_somFree(ODObjectNameSpace *somSelf);
typedef somTP_ODObjectNameSpace_somFree *somTD_ODObjectNameSpace_somFree;
typedef SOMClass*   SOMLINK somTP_ODObjectNameSpace_somGetClass(ODObjectNameSpace *somSelf);
typedef somTP_ODObjectNameSpace_somGetClass *somTD_ODObjectNameSpace_somGetClass;
typedef string   SOMLINK somTP_ODObjectNameSpace_somGetClassName(ODObjectNameSpace *somSelf);
typedef somTP_ODObjectNameSpace_somGetClassName *somTD_ODObjectNameSpace_somGetClassName;
typedef long   SOMLINK somTP_ODObjectNameSpace_somGetSize(ODObjectNameSpace *somSelf);
typedef somTP_ODObjectNameSpace_somGetSize *somTD_ODObjectNameSpace_somGetSize;
typedef boolean   SOMLINK somTP_ODObjectNameSpace_somIsA(ODObjectNameSpace *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODObjectNameSpace_somIsA *somTD_ODObjectNameSpace_somIsA;
typedef boolean   SOMLINK somTP_ODObjectNameSpace_somIsInstanceOf(ODObjectNameSpace *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODObjectNameSpace_somIsInstanceOf *somTD_ODObjectNameSpace_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODObjectNameSpace_somRespondsTo(ODObjectNameSpace *somSelf,
		somId mId);
typedef somTP_ODObjectNameSpace_somRespondsTo *somTD_ODObjectNameSpace_somRespondsTo;
typedef boolean   SOMLINK somTP_ODObjectNameSpace_somDispatch(ODObjectNameSpace *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODObjectNameSpace_somDispatch *somTD_ODObjectNameSpace_somDispatch;
typedef boolean   SOMLINK somTP_ODObjectNameSpace_somClassDispatch(ODObjectNameSpace *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODObjectNameSpace_somClassDispatch *somTD_ODObjectNameSpace_somClassDispatch;
typedef boolean   SOMLINK somTP_ODObjectNameSpace_somCastObj(ODObjectNameSpace *somSelf,
		SOMClass* cls);
typedef somTP_ODObjectNameSpace_somCastObj *somTD_ODObjectNameSpace_somCastObj;
typedef boolean   SOMLINK somTP_ODObjectNameSpace_somResetObj(ODObjectNameSpace *somSelf);
typedef somTP_ODObjectNameSpace_somResetObj *somTD_ODObjectNameSpace_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODObjectNameSpace_somPrintSelf(ODObjectNameSpace *somSelf);
typedef somTP_ODObjectNameSpace_somPrintSelf *somTD_ODObjectNameSpace_somPrintSelf;
typedef void   SOMLINK somTP_ODObjectNameSpace_somDumpSelf(ODObjectNameSpace *somSelf,
		long level);
typedef somTP_ODObjectNameSpace_somDumpSelf *somTD_ODObjectNameSpace_somDumpSelf;
typedef void   SOMLINK somTP_ODObjectNameSpace_somDumpSelfInt(ODObjectNameSpace *somSelf,
		long level);
typedef somTP_ODObjectNameSpace_somDumpSelfInt *somTD_ODObjectNameSpace_somDumpSelfInt;
}

#endif /* ODObjectNameSpace_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 ODObjectNameSpace
 */
class ODObjectNameSpace : public ODNameSpace
{
public:

// ODObjectNameSpace::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 (!_ODObjectNameSpace) ODObjectNameSpaceNewClass(ODObjectNameSpace_MajorVersion,ODObjectNameSpace_MinorVersion);
   return (void*)
      SOM_Resolve(_ODObjectNameSpace,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODObjectNameSpace));
}

// ODObjectNameSpace::delete uses somDestruct.
void operator delete(void * obj)
{
   if (obj && *(void**)obj) {
      SOM_Resolve(obj,SOMObject,somDestruct)
         ((SOMObject*)obj, 1, 0);
   }
}

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

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

ODObjectNameSpace(const ODObjectNameSpace* fromObj)
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (ODObjectNameSpaceCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}


/* method: Register */
void   Register(Environment *ev,
		ODISOStr key,
		ODObject* object)
{
   SOM_ResolveD(this,ODObjectNameSpace,ODObjectNameSpace,Register)
	(this, ev,key,object);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: GetEntry */
ODBoolean   GetEntry(Environment *ev,
		ODISOStr key,
		ODObject** object)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODObjectNameSpace,ODObjectNameSpace,GetEntry)
	(this, ev,key,object);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODObjectNameSpace,ODObjectNameSpace,GetEntry)
	(this, ev,key,object);
#endif
}


/* method: CreateIterator */
ODObjectIterator*   CreateIterator(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODObjectIterator* __somResult = 
      SOM_ResolveD(this,ODObjectNameSpace,ODObjectNameSpace,CreateIterator)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODObjectNameSpace,ODObjectNameSpace,CreateIterator)
	(this, ev);
#endif
}


/*
 * Reintroduce inherited methods
 */

/* method: GetName */
ODISOStr   GetName(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODISOStr __somResult = 
      SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,GetName)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,GetName)
	(this, ev);
#endif
}


/* method: GetType */
ODNSTypeSpec   GetType(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODNSTypeSpec __somResult = 
      SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,GetType)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,GetType)
	(this, ev);
#endif
}


/* method: GetParent */
ODNameSpace*   GetParent(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODNameSpace* __somResult = 
      SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,GetParent)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,GetParent)
	(this, ev);
#endif
}


/* method: SetType */
void   SetType(Environment *ev,
		ODNSTypeSpec type)
{
   SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,SetType)
	(this, ev,type);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: Unregister */
void   Unregister(Environment *ev,
		ODISOStr key)
{
   SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,Unregister)
	(this, ev,key);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: Exists */
ODBoolean   Exists(Environment *ev,
		ODISOStr key)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,Exists)
	(this, ev,key);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,Exists)
	(this, ev,key);
#endif
}


/* method: WriteToFile */
void   WriteToFile(Environment *ev,
		ODByteArray* file)
{
   SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,WriteToFile)
	(this, ev,file);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: ReadFromFile */
void   ReadFromFile(Environment *ev,
		ODByteArray* file)
{
   SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,ReadFromFile)
	(this, ev,file);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: WriteToStorage */
void   WriteToStorage(Environment *ev,
		ODStorageUnitView* view)
{
   SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,WriteToStorage)
	(this, ev,view);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: ReadFromStorage */
void   ReadFromStorage(Environment *ev,
		ODStorageUnitView* view)
{
   SOM_ResolveD(this,ODObjectNameSpace,ODNameSpace,ReadFromStorage)
	(this, ev,view);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: somUninit */
void   somUninit()
{
   SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somUninit)
	(this);
}


/* method: Purge */
ODSize   Purge(Environment *ev,
		ODSize size)
{
#ifdef SOMCHKEXCEPT
   ODSize __somResult = 
      SOM_ResolveD(this,ODObjectNameSpace,ODObject,Purge)
	(this, ev,size);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODObjectNameSpace,ODObject,Purge)
	(this, ev,size);
#endif
}


/* method: InitObject */
void   InitObject(Environment *ev)
{
   SOM_ResolveD(this,ODObjectNameSpace,ODObject,InitObject)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: HasExtension */
ODBoolean   HasExtension(Environment *ev,
		ODType extensionName)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODObjectNameSpace,ODObject,HasExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODObjectNameSpace,ODObject,HasExtension)
	(this, ev,extensionName);
#endif
}


/* method: AcquireExtension */
ODExtension*   AcquireExtension(Environment *ev,
		ODType extensionName)
{
#ifdef SOMCHKEXCEPT
   ODExtension* __somResult = 
      SOM_ResolveD(this,ODObjectNameSpace,ODObject,AcquireExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODObjectNameSpace,ODObject,AcquireExtension)
	(this, ev,extensionName);
#endif
}


/* method: ReleaseExtension */
void   ReleaseExtension(Environment *ev,
		ODExtension* extension)
{
   SOM_ResolveD(this,ODObjectNameSpace,ODObject,ReleaseExtension)
	(this, ev,extension);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: IsEqualTo */
ODBoolean   IsEqualTo(Environment *ev,
		ODObject* object)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODObjectNameSpace,ODObject,IsEqualTo)
	(this, ev,object);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODObjectNameSpace,ODObject,IsEqualTo)
	(this, ev,object);
#endif
}


/* method: SubClassResponsibility */
void   SubClassResponsibility(Environment *ev)
{
   SOM_ResolveD(this,ODObjectNameSpace,ODObject,SubClassResponsibility)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: somInit */
void   somInit()
{
   SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somInit)
	(this);
}


/* initializer method: somDefaultInit */
void   somDefaultInit(somInitCtrl* ctrl)
{
   SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somDefaultInit)
	(this,ctrl);
}


/* method: somDestruct */
void   somDestruct(octet doFree,
		somDestructCtrl* ctrl)
{
   SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somDestruct)
	(this,doFree,ctrl);
}


/* initializer method: somDefaultCopyInit */
void   somDefaultCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somDefaultCopyInit)
	(this,ctrl,fromObj);
}


/* method: somDefaultAssign */
ODObjectNameSpace*  somDefaultAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somDefaultAssign)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultConstCopyInit */
void   somDefaultConstCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somDefaultConstCopyInit)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultVCopyInit */
void   somDefaultVCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somDefaultVCopyInit)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultConstVCopyInit */
void   somDefaultConstVCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somDefaultConstVCopyInit)
	(this,ctrl,fromObj);
}


/* method: somDefaultConstAssign */
ODObjectNameSpace*  somDefaultConstAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somDefaultConstAssign)
	(this,ctrl,fromObj);
}


/* method: somDefaultVAssign */
ODObjectNameSpace*  somDefaultVAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somDefaultVAssign)
	(this,ctrl,fromObj);
}


/* method: somDefaultConstVAssign */
ODObjectNameSpace*  somDefaultConstVAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somDefaultConstVAssign)
	(this,ctrl,fromObj);
}


/* method: somFree */
void   somFree()
{
   SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somFree)
	(this);
}


/* method: somGetClass */
SOMClass*   somGetClass()
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somGetClass)
	(this);
}


/* method: somGetClassName */
string   somGetClassName()
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somGetClassName)
	(this);
}


/* method: somGetSize */
long   somGetSize()
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somGetSize)
	(this);
}


/* method: somIsA */
boolean   somIsA(SOMClass* aClassObj)
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somIsA)
	(this,aClassObj);
}


/* method: somIsInstanceOf */
boolean   somIsInstanceOf(SOMClass* aClassObj)
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somIsInstanceOf)
	(this,aClassObj);
}


/* method: somRespondsTo */
boolean   somRespondsTo(somId mId)
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somRespondsTo)
	(this,mId);
}


/* va_list method: somDispatch */
/* the va_list invocation form */
boolean   ODObjectNameSpace_somDispatch(somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODObjectNameSpace,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,ODObjectNameSpace,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean   ODObjectNameSpace_somClassDispatch(SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODObjectNameSpace,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,ODObjectNameSpace,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* method: somCastObj */
boolean   somCastObj(SOMClass* cls)
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somCastObj)
	(this,cls);
}


/* method: somResetObj */
boolean   somResetObj()
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somResetObj)
	(this);
}


/* method: somPrintSelf */
SOMObject*   somPrintSelf()
{
   return SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somPrintSelf)
	(this);
}


/* method: somDumpSelf */
void   somDumpSelf(long level)
{
   SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somDumpSelf)
	(this,level);
}


/* method: somDumpSelfInt */
void   somDumpSelfInt(long level)
{
   SOM_ResolveD(this,ODObjectNameSpace,SOMObject,somDumpSelfInt)
	(this,level);
}



};   /* ODObjectNameSpace */



#endif       /* SOM_ODObjectNameSpace_xh */
