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

#ifndef SOM_ODDocument_xh
#define SOM_ODDocument_xh

class ODDocument;

#define ODDocument_MajorVersion 1
#define ODDocument_MinorVersion 0

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

/* C++ parent defs */
#ifndef SOM_ODRefCntObject_xh
#include <RefCtObj.xh>
#endif

#ifndef ODDocument_API
#define ODDocument_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 ODDocument;
class ODContainer;
class ODDraft;
class ODStorageUnit;

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

/* A procedure to create the ODDocument Class */
SOMEXTERN
#if (defined(SOM_Module_Document_Source) || defined(ODDocument_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODDocument))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODDocumentNewClass(
		integer4,
		integer4 );

/* The API to the ODDocument class object, and the methods it introduces. */
SOMEXTERN struct ODDocumentClassDataStructure {
	SOMClass *classObject;
	somMToken GetContainer;
	somMToken GetID;
	somMToken GetName;
	somMToken SetName;
	somMToken CollapseDrafts;
	somMToken AcquireDraft;
	somMToken Exists;
	somMToken AcquireBaseDraft;
	somMToken CreateDraft;
	somMToken SaveToAPrevDraft;
	somMToken SetBaseDraftFromForeignDraft;
	somMToken reserved1;
	somMToken reserved2;
}
#if !(defined(SOM_Module_Document_Source) || defined(ODDocument_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODDocument))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODDocumentClassData;
#define _ODDocument ODDocumentClassData.classObject

/* The API to parentMtabs for ODDocument, and the instance data it introduces. */
SOMEXTERN struct ODDocumentCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_Document_Source) || defined(ODDocument_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODDocument))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODDocumentCClassData;

/*
 * -- Typedefs for ODDocument Method Procedures
 */
extern "C" {
typedef ODContainer*   SOMLINK somTP_ODDocument_GetContainer(ODDocument *somSelf, Environment *ev);
typedef somTP_ODDocument_GetContainer *somTD_ODDocument_GetContainer;
typedef ODDocumentID   SOMLINK somTP_ODDocument_GetID(ODDocument *somSelf, Environment *ev);
typedef somTP_ODDocument_GetID *somTD_ODDocument_GetID;
typedef ODDocumentName   SOMLINK somTP_ODDocument_GetName(ODDocument *somSelf, Environment *ev);
typedef somTP_ODDocument_GetName *somTD_ODDocument_GetName;
typedef void   SOMLINK somTP_ODDocument_SetName(ODDocument *somSelf, Environment *ev,
		ODDocumentName* name);
typedef somTP_ODDocument_SetName *somTD_ODDocument_SetName;
typedef ODDocument*   SOMLINK somTP_ODDocument_CollapseDrafts(ODDocument *somSelf, Environment *ev,
		ODDraft* from,
		ODDraft* to);
typedef somTP_ODDocument_CollapseDrafts *somTD_ODDocument_CollapseDrafts;
typedef ODDraft*   SOMLINK somTP_ODDocument_AcquireDraft(ODDocument *somSelf, Environment *ev,
		ODDraftPermissions perms,
		ODDraftID id,
		ODDraft* draft,
		ODPositionCode posCode,
		ODBoolean release);
typedef somTP_ODDocument_AcquireDraft *somTD_ODDocument_AcquireDraft;
typedef ODBoolean   SOMLINK somTP_ODDocument_Exists(ODDocument *somSelf, Environment *ev,
		ODDraftID id,
		ODDraft* draft,
		ODPositionCode posCode);
typedef somTP_ODDocument_Exists *somTD_ODDocument_Exists;
typedef ODDraft*   SOMLINK somTP_ODDocument_AcquireBaseDraft(ODDocument *somSelf, Environment *ev,
		ODDraftPermissions perms);
typedef somTP_ODDocument_AcquireBaseDraft *somTD_ODDocument_AcquireBaseDraft;
typedef ODDraft*   SOMLINK somTP_ODDocument_CreateDraft(ODDocument *somSelf, Environment *ev,
		ODDraft* below,
		ODBoolean releaseBelow);
typedef somTP_ODDocument_CreateDraft *somTD_ODDocument_CreateDraft;
typedef void   SOMLINK somTP_ODDocument_SaveToAPrevDraft(ODDocument *somSelf, Environment *ev,
		ODDraft* from,
		ODDraft* to);
typedef somTP_ODDocument_SaveToAPrevDraft *somTD_ODDocument_SaveToAPrevDraft;
typedef void   SOMLINK somTP_ODDocument_SetBaseDraftFromForeignDraft(ODDocument *somSelf, Environment *ev,
		ODDraft* draft);
typedef somTP_ODDocument_SetBaseDraftFromForeignDraft *somTD_ODDocument_SetBaseDraftFromForeignDraft;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_ODDocument_InitRefCntObject(ODDocument *somSelf, Environment *ev);
typedef somTP_ODDocument_InitRefCntObject *somTD_ODDocument_InitRefCntObject;
typedef void   SOMLINK somTP_ODDocument_Acquire(ODDocument *somSelf, Environment *ev);
typedef somTP_ODDocument_Acquire *somTD_ODDocument_Acquire;
typedef void   SOMLINK somTP_ODDocument_Release(ODDocument *somSelf, Environment *ev);
typedef somTP_ODDocument_Release *somTD_ODDocument_Release;
typedef ODULong   SOMLINK somTP_ODDocument_GetRefCount(ODDocument *somSelf, Environment *ev);
typedef somTP_ODDocument_GetRefCount *somTD_ODDocument_GetRefCount;
typedef void   SOMLINK somTP_ODDocument_somUninit(ODDocument *somSelf);
typedef somTP_ODDocument_somUninit *somTD_ODDocument_somUninit;
typedef void   SOMLINK somTP_ODDocument_InitObject(ODDocument *somSelf, Environment *ev);
typedef somTP_ODDocument_InitObject *somTD_ODDocument_InitObject;
typedef ODBoolean   SOMLINK somTP_ODDocument_HasExtension(ODDocument *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODDocument_HasExtension *somTD_ODDocument_HasExtension;
typedef ODExtension*   SOMLINK somTP_ODDocument_AcquireExtension(ODDocument *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODDocument_AcquireExtension *somTD_ODDocument_AcquireExtension;
typedef void   SOMLINK somTP_ODDocument_ReleaseExtension(ODDocument *somSelf, Environment *ev,
		ODExtension* extension);
typedef somTP_ODDocument_ReleaseExtension *somTD_ODDocument_ReleaseExtension;
typedef ODSize   SOMLINK somTP_ODDocument_Purge(ODDocument *somSelf, Environment *ev,
		ODSize size);
typedef somTP_ODDocument_Purge *somTD_ODDocument_Purge;
typedef ODBoolean   SOMLINK somTP_ODDocument_IsEqualTo(ODDocument *somSelf, Environment *ev,
		ODObject* object);
typedef somTP_ODDocument_IsEqualTo *somTD_ODDocument_IsEqualTo;
typedef void   SOMLINK somTP_ODDocument_SubClassResponsibility(ODDocument *somSelf, Environment *ev);
typedef somTP_ODDocument_SubClassResponsibility *somTD_ODDocument_SubClassResponsibility;
typedef void   SOMLINK somTP_ODDocument_somInit(ODDocument *somSelf);
typedef somTP_ODDocument_somInit *somTD_ODDocument_somInit;
typedef void   SOMLINK somTP_ODDocument_somDefaultInit(ODDocument *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODDocument_somDefaultInit *somTD_ODDocument_somDefaultInit;
typedef void   SOMLINK somTP_ODDocument_somDestruct(ODDocument *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODDocument_somDestruct *somTD_ODDocument_somDestruct;
typedef void   SOMLINK somTP_ODDocument_somDefaultCopyInit(ODDocument *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDocument_somDefaultCopyInit *somTD_ODDocument_somDefaultCopyInit;
typedef ODDocument*   SOMLINK somTP_ODDocument_somDefaultAssign(ODDocument *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDocument_somDefaultAssign *somTD_ODDocument_somDefaultAssign;
typedef void   SOMLINK somTP_ODDocument_somDefaultConstCopyInit(ODDocument *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDocument_somDefaultConstCopyInit *somTD_ODDocument_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODDocument_somDefaultVCopyInit(ODDocument *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDocument_somDefaultVCopyInit *somTD_ODDocument_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODDocument_somDefaultConstVCopyInit(ODDocument *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDocument_somDefaultConstVCopyInit *somTD_ODDocument_somDefaultConstVCopyInit;
typedef ODDocument*   SOMLINK somTP_ODDocument_somDefaultConstAssign(ODDocument *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDocument_somDefaultConstAssign *somTD_ODDocument_somDefaultConstAssign;
typedef ODDocument*   SOMLINK somTP_ODDocument_somDefaultVAssign(ODDocument *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDocument_somDefaultVAssign *somTD_ODDocument_somDefaultVAssign;
typedef ODDocument*   SOMLINK somTP_ODDocument_somDefaultConstVAssign(ODDocument *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDocument_somDefaultConstVAssign *somTD_ODDocument_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODDocument_somFree(ODDocument *somSelf);
typedef somTP_ODDocument_somFree *somTD_ODDocument_somFree;
typedef SOMClass*   SOMLINK somTP_ODDocument_somGetClass(ODDocument *somSelf);
typedef somTP_ODDocument_somGetClass *somTD_ODDocument_somGetClass;
typedef string   SOMLINK somTP_ODDocument_somGetClassName(ODDocument *somSelf);
typedef somTP_ODDocument_somGetClassName *somTD_ODDocument_somGetClassName;
typedef long   SOMLINK somTP_ODDocument_somGetSize(ODDocument *somSelf);
typedef somTP_ODDocument_somGetSize *somTD_ODDocument_somGetSize;
typedef boolean   SOMLINK somTP_ODDocument_somIsA(ODDocument *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODDocument_somIsA *somTD_ODDocument_somIsA;
typedef boolean   SOMLINK somTP_ODDocument_somIsInstanceOf(ODDocument *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODDocument_somIsInstanceOf *somTD_ODDocument_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODDocument_somRespondsTo(ODDocument *somSelf,
		somId mId);
typedef somTP_ODDocument_somRespondsTo *somTD_ODDocument_somRespondsTo;
typedef boolean   SOMLINK somTP_ODDocument_somDispatch(ODDocument *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODDocument_somDispatch *somTD_ODDocument_somDispatch;
typedef boolean   SOMLINK somTP_ODDocument_somClassDispatch(ODDocument *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODDocument_somClassDispatch *somTD_ODDocument_somClassDispatch;
typedef boolean   SOMLINK somTP_ODDocument_somCastObj(ODDocument *somSelf,
		SOMClass* cls);
typedef somTP_ODDocument_somCastObj *somTD_ODDocument_somCastObj;
typedef boolean   SOMLINK somTP_ODDocument_somResetObj(ODDocument *somSelf);
typedef somTP_ODDocument_somResetObj *somTD_ODDocument_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODDocument_somPrintSelf(ODDocument *somSelf);
typedef somTP_ODDocument_somPrintSelf *somTD_ODDocument_somPrintSelf;
typedef void   SOMLINK somTP_ODDocument_somDumpSelf(ODDocument *somSelf,
		long level);
typedef somTP_ODDocument_somDumpSelf *somTD_ODDocument_somDumpSelf;
typedef void   SOMLINK somTP_ODDocument_somDumpSelfInt(ODDocument *somSelf,
		long level);
typedef somTP_ODDocument_somDumpSelfInt *somTD_ODDocument_somDumpSelfInt;
}

#endif /* ODDocument_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 ODDocument
 */
class ODDocument : public ODRefCntObject
{
public:

// ODDocument::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 (!_ODDocument) ODDocumentNewClass(ODDocument_MajorVersion,ODDocument_MinorVersion);
   return (void*)
      SOM_Resolve(_ODDocument,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODDocument));
}

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

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

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

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


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


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


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


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


/* method: CollapseDrafts */
ODDocument*   CollapseDrafts(Environment *ev,
		ODDraft* from,
		ODDraft* to)
{
#ifdef SOMCHKEXCEPT
   ODDocument* __somResult = 
      SOM_ResolveD(this,ODDocument,ODDocument,CollapseDrafts)
	(this, ev,from,to);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDocument,ODDocument,CollapseDrafts)
	(this, ev,from,to);
#endif
}


/* method: AcquireDraft */
ODDraft*   AcquireDraft(Environment *ev,
		ODDraftPermissions perms,
		ODDraftID id,
		ODDraft* draft,
		ODPositionCode posCode,
		ODBoolean release)
{
#ifdef SOMCHKEXCEPT
   ODDraft* __somResult = 
      SOM_ResolveD(this,ODDocument,ODDocument,AcquireDraft)
	(this, ev,perms,id,draft,posCode,release);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDocument,ODDocument,AcquireDraft)
	(this, ev,perms,id,draft,posCode,release);
#endif
}


/* method: Exists */
ODBoolean   Exists(Environment *ev,
		ODDraftID id,
		ODDraft* draft,
		ODPositionCode posCode)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODDocument,ODDocument,Exists)
	(this, ev,id,draft,posCode);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDocument,ODDocument,Exists)
	(this, ev,id,draft,posCode);
#endif
}


/* method: AcquireBaseDraft */
ODDraft*   AcquireBaseDraft(Environment *ev,
		ODDraftPermissions perms)
{
#ifdef SOMCHKEXCEPT
   ODDraft* __somResult = 
      SOM_ResolveD(this,ODDocument,ODDocument,AcquireBaseDraft)
	(this, ev,perms);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDocument,ODDocument,AcquireBaseDraft)
	(this, ev,perms);
#endif
}


/* method: CreateDraft */
ODDraft*   CreateDraft(Environment *ev,
		ODDraft* below,
		ODBoolean releaseBelow)
{
#ifdef SOMCHKEXCEPT
   ODDraft* __somResult = 
      SOM_ResolveD(this,ODDocument,ODDocument,CreateDraft)
	(this, ev,below,releaseBelow);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDocument,ODDocument,CreateDraft)
	(this, ev,below,releaseBelow);
#endif
}


/* method: SaveToAPrevDraft */
void   SaveToAPrevDraft(Environment *ev,
		ODDraft* from,
		ODDraft* to)
{
   SOM_ResolveD(this,ODDocument,ODDocument,SaveToAPrevDraft)
	(this, ev,from,to);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


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


/*
 * Reintroduce inherited methods
 */

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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



};   /* ODDocument */



#endif       /* SOM_ODDocument_xh */
