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

#ifndef SOM_ODLink_xh
#define SOM_ODLink_xh

class ODLink;

#define ODLink_MajorVersion 1
#define ODLink_MinorVersion 0

/*
 * Passthru lines: File: "C.xh", "before"
 */

#ifdef _PLATFORM_OS2_
#ifndef _ODTYPESB_
#include <ODTypesB.xh>
#endif
#endif


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

/* C++ parent defs */
#ifndef SOM_ODBaseLink_xh
#include <LinkB.xh>
#endif

#ifndef ODLink_API
#define ODLink_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;
class ODLink;

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

/* A procedure to create the ODLink Class */
SOMEXTERN
#if (defined(SOM_Module_Link_Source) || defined(ODLink_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODLink))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODLinkNewClass(
		integer4,
		integer4 );

/* The API to the ODLink class object, and the methods it introduces. */
SOMEXTERN struct ODLinkClassDataStructure {
	SOMClass *classObject;
	somMToken reserved1;
	somMToken reserved2;
	somMToken reserved3;
	somMToken reserved4;
	somMToken reserved5;
	somMToken reserved6;
	somMToken reserved7;
	somMToken reserved8;
	somMToken reserved9;
	somMToken reserved10;
}
#if !(defined(SOM_Module_Link_Source) || defined(ODLink_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODLink))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODLinkClassData;
#define _ODLink ODLinkClassData.classObject

/* The API to parentMtabs for ODLink, and the instance data it introduces. */
SOMEXTERN struct ODLinkCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_Link_Source) || defined(ODLink_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODLink))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODLinkCClassData;

/*
 * -- Typedefs for ODLink Method Procedures
 */
extern "C" {

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef ODBoolean   SOMLINK somTP_ODLink_Lock(ODLink *somSelf, Environment *ev,
		ODULong wait,
		ODLinkKey* key);
typedef somTP_ODLink_Lock *somTD_ODLink_Lock;
typedef void   SOMLINK somTP_ODLink_Unlock(ODLink *somSelf, Environment *ev,
		ODLinkKey key);
typedef somTP_ODLink_Unlock *somTD_ODLink_Unlock;
typedef ODStorageUnit*   SOMLINK somTP_ODLink_GetContentStorageUnit(ODLink *somSelf, Environment *ev,
		ODLinkKey key);
typedef somTP_ODLink_GetContentStorageUnit *somTD_ODLink_GetContentStorageUnit;
typedef void   SOMLINK somTP_ODLink_RegisterDependent(ODLink *somSelf, Environment *ev,
		ODPart* clientPart,
		ODUpdateID id);
typedef somTP_ODLink_RegisterDependent *somTD_ODLink_RegisterDependent;
typedef void   SOMLINK somTP_ODLink_UnregisterDependent(ODLink *somSelf, Environment *ev,
		ODPart* clientPart);
typedef somTP_ODLink_UnregisterDependent *somTD_ODLink_UnregisterDependent;
typedef ODUpdateID   SOMLINK somTP_ODLink_GetUpdateID(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_GetUpdateID *somTD_ODLink_GetUpdateID;
typedef ODTime   SOMLINK somTP_ODLink_GetChangeTime(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_GetChangeTime *somTD_ODLink_GetChangeTime;
typedef void   SOMLINK somTP_ODLink_ShowSourceContent(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_ShowSourceContent *somTD_ODLink_ShowSourceContent;
typedef ODBoolean   SOMLINK somTP_ODLink_ShowLinkDestinationInfo(ODLink *somSelf, Environment *ev,
		ODFacet* facet,
		ODLinkInfo* info,
		ODBoolean changesAllowed,
		ODLinkInfoResult* infoResult);
typedef somTP_ODLink_ShowLinkDestinationInfo *somTD_ODLink_ShowLinkDestinationInfo;
typedef void   SOMLINK somTP_ODLink_somUninit(ODLink *somSelf);
typedef somTP_ODLink_somUninit *somTD_ODLink_somUninit;
typedef void   SOMLINK somTP_ODLink_Externalize(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_Externalize *somTD_ODLink_Externalize;
typedef void   SOMLINK somTP_ODLink_ReleaseAll(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_ReleaseAll *somTD_ODLink_ReleaseAll;
typedef void   SOMLINK somTP_ODLink_CloneInto(ODLink *somSelf, Environment *ev,
		ODDraftKey key,
		ODStorageUnit* toSU,
		ODFrame* scope);
typedef somTP_ODLink_CloneInto *somTD_ODLink_CloneInto;
typedef void   SOMLINK somTP_ODLink_InitPersistentObject(ODLink *somSelf, Environment *ev,
		ODStorageUnit* storageUnit);
typedef somTP_ODLink_InitPersistentObject *somTD_ODLink_InitPersistentObject;
typedef void   SOMLINK somTP_ODLink_InitPersistentObjectFromStorage(ODLink *somSelf, Environment *ev,
		ODStorageUnit* storageUnit);
typedef somTP_ODLink_InitPersistentObjectFromStorage *somTD_ODLink_InitPersistentObjectFromStorage;
typedef ODStorageUnit*   SOMLINK somTP_ODLink_GetStorageUnit(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_GetStorageUnit *somTD_ODLink_GetStorageUnit;
typedef ODID   SOMLINK somTP_ODLink_GetID(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_GetID *somTD_ODLink_GetID;
typedef void   SOMLINK somTP_ODLink_InitRefCntObject(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_InitRefCntObject *somTD_ODLink_InitRefCntObject;
typedef void   SOMLINK somTP_ODLink_Acquire(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_Acquire *somTD_ODLink_Acquire;
typedef void   SOMLINK somTP_ODLink_Release(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_Release *somTD_ODLink_Release;
typedef ODULong   SOMLINK somTP_ODLink_GetRefCount(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_GetRefCount *somTD_ODLink_GetRefCount;
typedef void   SOMLINK somTP_ODLink_InitObject(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_InitObject *somTD_ODLink_InitObject;
typedef ODBoolean   SOMLINK somTP_ODLink_HasExtension(ODLink *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODLink_HasExtension *somTD_ODLink_HasExtension;
typedef ODExtension*   SOMLINK somTP_ODLink_AcquireExtension(ODLink *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODLink_AcquireExtension *somTD_ODLink_AcquireExtension;
typedef void   SOMLINK somTP_ODLink_ReleaseExtension(ODLink *somSelf, Environment *ev,
		ODExtension* extension);
typedef somTP_ODLink_ReleaseExtension *somTD_ODLink_ReleaseExtension;
typedef ODSize   SOMLINK somTP_ODLink_Purge(ODLink *somSelf, Environment *ev,
		ODSize size);
typedef somTP_ODLink_Purge *somTD_ODLink_Purge;
typedef ODBoolean   SOMLINK somTP_ODLink_IsEqualTo(ODLink *somSelf, Environment *ev,
		ODObject* object);
typedef somTP_ODLink_IsEqualTo *somTD_ODLink_IsEqualTo;
typedef void   SOMLINK somTP_ODLink_SubClassResponsibility(ODLink *somSelf, Environment *ev);
typedef somTP_ODLink_SubClassResponsibility *somTD_ODLink_SubClassResponsibility;
typedef void   SOMLINK somTP_ODLink_somInit(ODLink *somSelf);
typedef somTP_ODLink_somInit *somTD_ODLink_somInit;
typedef void   SOMLINK somTP_ODLink_somDefaultInit(ODLink *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODLink_somDefaultInit *somTD_ODLink_somDefaultInit;
typedef void   SOMLINK somTP_ODLink_somDestruct(ODLink *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODLink_somDestruct *somTD_ODLink_somDestruct;
typedef void   SOMLINK somTP_ODLink_somDefaultCopyInit(ODLink *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODLink_somDefaultCopyInit *somTD_ODLink_somDefaultCopyInit;
typedef ODLink*   SOMLINK somTP_ODLink_somDefaultAssign(ODLink *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODLink_somDefaultAssign *somTD_ODLink_somDefaultAssign;
typedef void   SOMLINK somTP_ODLink_somDefaultConstCopyInit(ODLink *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODLink_somDefaultConstCopyInit *somTD_ODLink_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODLink_somDefaultVCopyInit(ODLink *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODLink_somDefaultVCopyInit *somTD_ODLink_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODLink_somDefaultConstVCopyInit(ODLink *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODLink_somDefaultConstVCopyInit *somTD_ODLink_somDefaultConstVCopyInit;
typedef ODLink*   SOMLINK somTP_ODLink_somDefaultConstAssign(ODLink *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODLink_somDefaultConstAssign *somTD_ODLink_somDefaultConstAssign;
typedef ODLink*   SOMLINK somTP_ODLink_somDefaultVAssign(ODLink *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODLink_somDefaultVAssign *somTD_ODLink_somDefaultVAssign;
typedef ODLink*   SOMLINK somTP_ODLink_somDefaultConstVAssign(ODLink *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODLink_somDefaultConstVAssign *somTD_ODLink_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODLink_somFree(ODLink *somSelf);
typedef somTP_ODLink_somFree *somTD_ODLink_somFree;
typedef SOMClass*   SOMLINK somTP_ODLink_somGetClass(ODLink *somSelf);
typedef somTP_ODLink_somGetClass *somTD_ODLink_somGetClass;
typedef string   SOMLINK somTP_ODLink_somGetClassName(ODLink *somSelf);
typedef somTP_ODLink_somGetClassName *somTD_ODLink_somGetClassName;
typedef long   SOMLINK somTP_ODLink_somGetSize(ODLink *somSelf);
typedef somTP_ODLink_somGetSize *somTD_ODLink_somGetSize;
typedef boolean   SOMLINK somTP_ODLink_somIsA(ODLink *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODLink_somIsA *somTD_ODLink_somIsA;
typedef boolean   SOMLINK somTP_ODLink_somIsInstanceOf(ODLink *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODLink_somIsInstanceOf *somTD_ODLink_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODLink_somRespondsTo(ODLink *somSelf,
		somId mId);
typedef somTP_ODLink_somRespondsTo *somTD_ODLink_somRespondsTo;
typedef boolean   SOMLINK somTP_ODLink_somDispatch(ODLink *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODLink_somDispatch *somTD_ODLink_somDispatch;
typedef boolean   SOMLINK somTP_ODLink_somClassDispatch(ODLink *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODLink_somClassDispatch *somTD_ODLink_somClassDispatch;
typedef boolean   SOMLINK somTP_ODLink_somCastObj(ODLink *somSelf,
		SOMClass* cls);
typedef somTP_ODLink_somCastObj *somTD_ODLink_somCastObj;
typedef boolean   SOMLINK somTP_ODLink_somResetObj(ODLink *somSelf);
typedef somTP_ODLink_somResetObj *somTD_ODLink_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODLink_somPrintSelf(ODLink *somSelf);
typedef somTP_ODLink_somPrintSelf *somTD_ODLink_somPrintSelf;
typedef void   SOMLINK somTP_ODLink_somDumpSelf(ODLink *somSelf,
		long level);
typedef somTP_ODLink_somDumpSelf *somTD_ODLink_somDumpSelf;
typedef void   SOMLINK somTP_ODLink_somDumpSelfInt(ODLink *somSelf,
		long level);
typedef somTP_ODLink_somDumpSelfInt *somTD_ODLink_somDumpSelfInt;
}

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

// ODLink::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 (!_ODLink) ODLinkNewClass(ODLink_MajorVersion,ODLink_MinorVersion);
   return (void*)
      SOM_Resolve(_ODLink,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODLink));
}

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

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

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

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


/*
 * Reintroduce inherited methods
 */

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


/* method: Unlock */
void   Unlock(Environment *ev,
		ODLinkKey key)
{
   SOM_ResolveD(this,ODLink,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,ODLink,ODBaseLink,GetContentStorageUnit)
	(this, ev,key);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODLink,ODBaseLink,GetContentStorageUnit)
	(this, ev,key);
#endif
}


/* method: RegisterDependent */
void   RegisterDependent(Environment *ev,
		ODPart* clientPart,
		ODUpdateID id)
{
   SOM_ResolveD(this,ODLink,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,ODLink,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,ODLink,ODBaseLink,GetUpdateID)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODLink,ODBaseLink,GetUpdateID)
	(this, ev);
#endif
}


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


/* method: ShowSourceContent */
void   ShowSourceContent(Environment *ev)
{
   SOM_ResolveD(this,ODLink,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,ODLink,ODBaseLink,ShowLinkDestinationInfo)
	(this, ev,facet,info,changesAllowed,infoResult);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODLink,ODBaseLink,ShowLinkDestinationInfo)
	(this, ev,facet,info,changesAllowed,infoResult);
#endif
}


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


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


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


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


/* method: InitPersistentObject */
void   InitPersistentObject(Environment *ev,
		ODStorageUnit* storageUnit)
{
   SOM_ResolveD(this,ODLink,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,ODLink,ODPersistentObject,InitPersistentObjectFromStorage)
	(this, ev,storageUnit);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


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


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


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


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


/* method: Release */
void   Release(Environment *ev)
{
   SOM_ResolveD(this,ODLink,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,ODLink,ODRefCntObject,GetRefCount)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODLink,ODRefCntObject,GetRefCount)
	(this, ev);
#endif
}


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


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


/* method: ReleaseExtension */
void   ReleaseExtension(Environment *ev,
		ODExtension* extension)
{
   SOM_ResolveD(this,ODLink,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,ODLink,ODObject,Purge)
	(this, ev,size);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODLink,ODObject,Purge)
	(this, ev,size);
#endif
}


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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



};   /* ODLink */



#endif       /* SOM_ODLink_xh */
