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

#ifndef SOM_ODBaseLink_xh
#define SOM_ODBaseLink_xh

class ODBaseLink;

#define ODBaseLink_MajorVersion 1
#define ODBaseLink_MinorVersion 0

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

/* C++ parent defs */
#ifndef SOM_ODPersistentObject_xh
#include <PstObj.xh>
#endif

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

/*
 * Start of user-defined types:
 */
class SOMClass;
class SOMObject;
class ODFrame;
class ODFacet;
class ODPlatformCanvas;
class ODObject;
class ODExtension;
class ODRefCntObject;
class ODPersistentObject;
class ODStorageUnit;
class ODBaseLink;
class ODLinkSource;
class ODPart;
class ODDraft;

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

/* A procedure to create the ODBaseLink Class */
SOMEXTERN
#if (defined(SOM_Module_LinkB_Source) || defined(ODBaseLink_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODBaseLink))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODBaseLinkNewClass(
		integer4,
		integer4 );

/* The API to the ODBaseLink class object, and the methods it introduces. */
SOMEXTERN struct ODBaseLinkClassDataStructure {
	SOMClass *classObject;
	somMToken Lock;
	somMToken Unlock;
	somMToken GetContentStorageUnit;
	somMToken RegisterDependent;
	somMToken UnregisterDependent;
	somMToken GetUpdateID;
	somMToken GetChangeTime;
	somMToken ShowSourceContent;
	somMToken ShowLinkDestinationInfo;
	somMToken reserved1;
	somMToken reserved2;
	somMToken reserved3;
	somMToken reserved4;
	somMToken reserved5;
	somMToken reserved6;
	somMToken reserved7;
}
#if !(defined(SOM_Module_LinkB_Source) || defined(ODBaseLink_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODBaseLink))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODBaseLinkClassData;
#define _ODBaseLink ODBaseLinkClassData.classObject

/* The API to parentMtabs for ODBaseLink, and the instance data it introduces. */
SOMEXTERN struct ODBaseLinkCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_LinkB_Source) || defined(ODBaseLink_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODBaseLink))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODBaseLinkCClassData;

/*
 * -- Typedefs for ODBaseLink Method Procedures
 */
extern "C" {
typedef ODBoolean   SOMLINK somTP_ODBaseLink_Lock(ODBaseLink *somSelf, Environment *ev,
		ODULong wait,
		ODLinkKey* key);
typedef somTP_ODBaseLink_Lock *somTD_ODBaseLink_Lock;
typedef void   SOMLINK somTP_ODBaseLink_Unlock(ODBaseLink *somSelf, Environment *ev,
		ODLinkKey key);
typedef somTP_ODBaseLink_Unlock *somTD_ODBaseLink_Unlock;
typedef ODStorageUnit*   SOMLINK somTP_ODBaseLink_GetContentStorageUnit(ODBaseLink *somSelf, Environment *ev,
		ODLinkKey key);
typedef somTP_ODBaseLink_GetContentStorageUnit *somTD_ODBaseLink_GetContentStorageUnit;
typedef void   SOMLINK somTP_ODBaseLink_RegisterDependent(ODBaseLink *somSelf, Environment *ev,
		ODPart* clientPart,
		ODUpdateID id);
typedef somTP_ODBaseLink_RegisterDependent *somTD_ODBaseLink_RegisterDependent;
typedef void   SOMLINK somTP_ODBaseLink_UnregisterDependent(ODBaseLink *somSelf, Environment *ev,
		ODPart* clientPart);
typedef somTP_ODBaseLink_UnregisterDependent *somTD_ODBaseLink_UnregisterDependent;
typedef ODUpdateID   SOMLINK somTP_ODBaseLink_GetUpdateID(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_GetUpdateID *somTD_ODBaseLink_GetUpdateID;
typedef ODTime   SOMLINK somTP_ODBaseLink_GetChangeTime(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_GetChangeTime *somTD_ODBaseLink_GetChangeTime;
typedef void   SOMLINK somTP_ODBaseLink_ShowSourceContent(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_ShowSourceContent *somTD_ODBaseLink_ShowSourceContent;
typedef ODBoolean   SOMLINK somTP_ODBaseLink_ShowLinkDestinationInfo(ODBaseLink *somSelf, Environment *ev,
		ODFacet* facet,
		ODLinkInfo* info,
		ODBoolean changesAllowed,
		ODLinkInfoResult* infoResult);
typedef somTP_ODBaseLink_ShowLinkDestinationInfo *somTD_ODBaseLink_ShowLinkDestinationInfo;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_ODBaseLink_InitPersistentObject(ODBaseLink *somSelf, Environment *ev,
		ODStorageUnit* storageUnit);
typedef somTP_ODBaseLink_InitPersistentObject *somTD_ODBaseLink_InitPersistentObject;
typedef void   SOMLINK somTP_ODBaseLink_InitPersistentObjectFromStorage(ODBaseLink *somSelf, Environment *ev,
		ODStorageUnit* storageUnit);
typedef somTP_ODBaseLink_InitPersistentObjectFromStorage *somTD_ODBaseLink_InitPersistentObjectFromStorage;
typedef void   SOMLINK somTP_ODBaseLink_ReleaseAll(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_ReleaseAll *somTD_ODBaseLink_ReleaseAll;
typedef void   SOMLINK somTP_ODBaseLink_Externalize(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_Externalize *somTD_ODBaseLink_Externalize;
typedef ODStorageUnit*   SOMLINK somTP_ODBaseLink_GetStorageUnit(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_GetStorageUnit *somTD_ODBaseLink_GetStorageUnit;
typedef ODID   SOMLINK somTP_ODBaseLink_GetID(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_GetID *somTD_ODBaseLink_GetID;
typedef void   SOMLINK somTP_ODBaseLink_CloneInto(ODBaseLink *somSelf, Environment *ev,
		ODDraftKey key,
		ODStorageUnit* toSU,
		ODFrame* scope);
typedef somTP_ODBaseLink_CloneInto *somTD_ODBaseLink_CloneInto;
typedef void   SOMLINK somTP_ODBaseLink_somUninit(ODBaseLink *somSelf);
typedef somTP_ODBaseLink_somUninit *somTD_ODBaseLink_somUninit;
typedef void   SOMLINK somTP_ODBaseLink_InitRefCntObject(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_InitRefCntObject *somTD_ODBaseLink_InitRefCntObject;
typedef void   SOMLINK somTP_ODBaseLink_Acquire(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_Acquire *somTD_ODBaseLink_Acquire;
typedef void   SOMLINK somTP_ODBaseLink_Release(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_Release *somTD_ODBaseLink_Release;
typedef ODULong   SOMLINK somTP_ODBaseLink_GetRefCount(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_GetRefCount *somTD_ODBaseLink_GetRefCount;
typedef void   SOMLINK somTP_ODBaseLink_InitObject(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_InitObject *somTD_ODBaseLink_InitObject;
typedef ODBoolean   SOMLINK somTP_ODBaseLink_HasExtension(ODBaseLink *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODBaseLink_HasExtension *somTD_ODBaseLink_HasExtension;
typedef ODExtension*   SOMLINK somTP_ODBaseLink_AcquireExtension(ODBaseLink *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODBaseLink_AcquireExtension *somTD_ODBaseLink_AcquireExtension;
typedef void   SOMLINK somTP_ODBaseLink_ReleaseExtension(ODBaseLink *somSelf, Environment *ev,
		ODExtension* extension);
typedef somTP_ODBaseLink_ReleaseExtension *somTD_ODBaseLink_ReleaseExtension;
typedef ODSize   SOMLINK somTP_ODBaseLink_Purge(ODBaseLink *somSelf, Environment *ev,
		ODSize size);
typedef somTP_ODBaseLink_Purge *somTD_ODBaseLink_Purge;
typedef ODBoolean   SOMLINK somTP_ODBaseLink_IsEqualTo(ODBaseLink *somSelf, Environment *ev,
		ODObject* object);
typedef somTP_ODBaseLink_IsEqualTo *somTD_ODBaseLink_IsEqualTo;
typedef void   SOMLINK somTP_ODBaseLink_SubClassResponsibility(ODBaseLink *somSelf, Environment *ev);
typedef somTP_ODBaseLink_SubClassResponsibility *somTD_ODBaseLink_SubClassResponsibility;
typedef void   SOMLINK somTP_ODBaseLink_somInit(ODBaseLink *somSelf);
typedef somTP_ODBaseLink_somInit *somTD_ODBaseLink_somInit;
typedef void   SOMLINK somTP_ODBaseLink_somDefaultInit(ODBaseLink *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODBaseLink_somDefaultInit *somTD_ODBaseLink_somDefaultInit;
typedef void   SOMLINK somTP_ODBaseLink_somDestruct(ODBaseLink *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODBaseLink_somDestruct *somTD_ODBaseLink_somDestruct;
typedef void   SOMLINK somTP_ODBaseLink_somDefaultCopyInit(ODBaseLink *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBaseLink_somDefaultCopyInit *somTD_ODBaseLink_somDefaultCopyInit;
typedef ODBaseLink*   SOMLINK somTP_ODBaseLink_somDefaultAssign(ODBaseLink *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBaseLink_somDefaultAssign *somTD_ODBaseLink_somDefaultAssign;
typedef void   SOMLINK somTP_ODBaseLink_somDefaultConstCopyInit(ODBaseLink *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBaseLink_somDefaultConstCopyInit *somTD_ODBaseLink_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODBaseLink_somDefaultVCopyInit(ODBaseLink *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBaseLink_somDefaultVCopyInit *somTD_ODBaseLink_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODBaseLink_somDefaultConstVCopyInit(ODBaseLink *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBaseLink_somDefaultConstVCopyInit *somTD_ODBaseLink_somDefaultConstVCopyInit;
typedef ODBaseLink*   SOMLINK somTP_ODBaseLink_somDefaultConstAssign(ODBaseLink *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBaseLink_somDefaultConstAssign *somTD_ODBaseLink_somDefaultConstAssign;
typedef ODBaseLink*   SOMLINK somTP_ODBaseLink_somDefaultVAssign(ODBaseLink *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBaseLink_somDefaultVAssign *somTD_ODBaseLink_somDefaultVAssign;
typedef ODBaseLink*   SOMLINK somTP_ODBaseLink_somDefaultConstVAssign(ODBaseLink *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBaseLink_somDefaultConstVAssign *somTD_ODBaseLink_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODBaseLink_somFree(ODBaseLink *somSelf);
typedef somTP_ODBaseLink_somFree *somTD_ODBaseLink_somFree;
typedef SOMClass*   SOMLINK somTP_ODBaseLink_somGetClass(ODBaseLink *somSelf);
typedef somTP_ODBaseLink_somGetClass *somTD_ODBaseLink_somGetClass;
typedef string   SOMLINK somTP_ODBaseLink_somGetClassName(ODBaseLink *somSelf);
typedef somTP_ODBaseLink_somGetClassName *somTD_ODBaseLink_somGetClassName;
typedef long   SOMLINK somTP_ODBaseLink_somGetSize(ODBaseLink *somSelf);
typedef somTP_ODBaseLink_somGetSize *somTD_ODBaseLink_somGetSize;
typedef boolean   SOMLINK somTP_ODBaseLink_somIsA(ODBaseLink *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODBaseLink_somIsA *somTD_ODBaseLink_somIsA;
typedef boolean   SOMLINK somTP_ODBaseLink_somIsInstanceOf(ODBaseLink *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODBaseLink_somIsInstanceOf *somTD_ODBaseLink_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODBaseLink_somRespondsTo(ODBaseLink *somSelf,
		somId mId);
typedef somTP_ODBaseLink_somRespondsTo *somTD_ODBaseLink_somRespondsTo;
typedef boolean   SOMLINK somTP_ODBaseLink_somDispatch(ODBaseLink *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODBaseLink_somDispatch *somTD_ODBaseLink_somDispatch;
typedef boolean   SOMLINK somTP_ODBaseLink_somClassDispatch(ODBaseLink *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODBaseLink_somClassDispatch *somTD_ODBaseLink_somClassDispatch;
typedef boolean   SOMLINK somTP_ODBaseLink_somCastObj(ODBaseLink *somSelf,
		SOMClass* cls);
typedef somTP_ODBaseLink_somCastObj *somTD_ODBaseLink_somCastObj;
typedef boolean   SOMLINK somTP_ODBaseLink_somResetObj(ODBaseLink *somSelf);
typedef somTP_ODBaseLink_somResetObj *somTD_ODBaseLink_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODBaseLink_somPrintSelf(ODBaseLink *somSelf);
typedef somTP_ODBaseLink_somPrintSelf *somTD_ODBaseLink_somPrintSelf;
typedef void   SOMLINK somTP_ODBaseLink_somDumpSelf(ODBaseLink *somSelf,
		long level);
typedef somTP_ODBaseLink_somDumpSelf *somTD_ODBaseLink_somDumpSelf;
typedef void   SOMLINK somTP_ODBaseLink_somDumpSelfInt(ODBaseLink *somSelf,
		long level);
typedef somTP_ODBaseLink_somDumpSelfInt *somTD_ODBaseLink_somDumpSelfInt;
}

#endif /* ODBaseLink_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 ODBaseLink
 */
class ODBaseLink : public ODPersistentObject
{
public:

// ODBaseLink::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 (!_ODBaseLink) ODBaseLinkNewClass(ODBaseLink_MajorVersion,ODBaseLink_MinorVersion);
   return (void*)
      SOM_Resolve(_ODBaseLink,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODBaseLink));
}

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

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

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

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


/* method: Lock */
ODBoolean   Lock(Environment *ev,
		ODULong wait,
		ODLinkKey* key)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODBaseLink,ODBaseLink,Lock)
	(this, ev,wait,key);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODBaseLink,ODBaseLink,Lock)
	(this, ev,wait,key);
#endif
}


/* method: Unlock */
void   Unlock(Environment *ev,
		ODLinkKey key)
{
   SOM_ResolveD(this,ODBaseLink,ODBaseLink,Unlock)
	(this, ev,key);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: GetContentStorageUnit */
ODStorageUnit*   GetContentStorageUnit(Environment *ev,
		ODLinkKey key)
{
#ifdef SOMCHKEXCEPT
   ODStorageUnit* __somResult = 
      SOM_ResolveD(this,ODBaseLink,ODBaseLink,GetContentStorageUnit)
	(this, ev,key);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODBaseLink,ODBaseLink,GetContentStorageUnit)
	(this, ev,key);
#endif
}


/* method: RegisterDependent */
void   RegisterDependent(Environment *ev,
		ODPart* clientPart,
		ODUpdateID id)
{
   SOM_ResolveD(this,ODBaseLink,ODBaseLink,RegisterDependent)
	(this, ev,clientPart,id);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: UnregisterDependent */
void   UnregisterDependent(Environment *ev,
		ODPart* clientPart)
{
   SOM_ResolveD(this,ODBaseLink,ODBaseLink,UnregisterDependent)
	(this, ev,clientPart);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


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


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


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


/* method: ShowLinkDestinationInfo */
ODBoolean   ShowLinkDestinationInfo(Environment *ev,
		ODFacet* facet,
		ODLinkInfo* info,
		ODBoolean changesAllowed,
		ODLinkInfoResult* infoResult)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODBaseLink,ODBaseLink,ShowLinkDestinationInfo)
	(this, ev,facet,info,changesAllowed,infoResult);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODBaseLink,ODBaseLink,ShowLinkDestinationInfo)
	(this, ev,facet,info,changesAllowed,infoResult);
#endif
}


/*
 * Reintroduce inherited methods
 */

/* method: InitPersistentObject */
void   InitPersistentObject(Environment *ev,
		ODStorageUnit* storageUnit)
{
   SOM_ResolveD(this,ODBaseLink,ODPersistentObject,InitPersistentObject)
	(this, ev,storageUnit);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: InitPersistentObjectFromStorage */
void   InitPersistentObjectFromStorage(Environment *ev,
		ODStorageUnit* storageUnit)
{
   SOM_ResolveD(this,ODBaseLink,ODPersistentObject,InitPersistentObjectFromStorage)
	(this, ev,storageUnit);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


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


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


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


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


/* method: CloneInto */
void   CloneInto(Environment *ev,
		ODDraftKey key,
		ODStorageUnit* toSU,
		ODFrame* scope)
{
   SOM_ResolveD(this,ODBaseLink,ODPersistentObject,CloneInto)
	(this, ev,key,toSU,scope);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


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


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


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


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


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


/* method: InitObject */
void   InitObject(Environment *ev)
{
   SOM_ResolveD(this,ODBaseLink,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,ODBaseLink,ODObject,HasExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODBaseLink,ODObject,HasExtension)
	(this, ev,extensionName);
#endif
}


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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



};   /* ODBaseLink */



#endif       /* SOM_ODBaseLink_xh */
