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

#ifndef SOM_ODBinding_xh
#define SOM_ODBinding_xh

class ODBinding;

#define ODBinding_MajorVersion 1
#define ODBinding_MinorVersion 0

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

/* C++ parent defs */
#ifndef SOM_ODObject_xh
#include <ODObject.xh>
#endif

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

/*
 * Start of user-defined types:
 */
class SOMClass;
class SOMObject;
class ODFrame;
class ODFacet;
class ODPlatformCanvas;
class ODObject;
class ODExtension;
class ODBinding;
class ODSession;
class ODStorageUnit;
class ODPart;

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

/* A procedure to create the ODBinding Class */
SOMEXTERN
#if (defined(SOM_Module_ODBindng_Source) || defined(ODBinding_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODBinding))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODBindingNewClass(
		integer4,
		integer4 );

/* The API to the ODBinding class object, and the methods it introduces. */
SOMEXTERN struct ODBindingClassDataStructure {
	SOMClass *classObject;
	somMToken reserved1;
	somMToken reserved2;
	somMToken ChooseEditorForPart;
	somMToken GetContainerSuite;
}
#if !(defined(SOM_Module_ODBindng_Source) || defined(ODBinding_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODBinding))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODBindingClassData;
#define _ODBinding ODBindingClassData.classObject

/* The API to parentMtabs for ODBinding, and the instance data it introduces. */
SOMEXTERN struct ODBindingCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_ODBindng_Source) || defined(ODBinding_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODBinding))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODBindingCClassData;

/*
 * -- Typedefs for ODBinding Method Procedures
 */
extern "C" {
typedef ODEditor   SOMLINK somTP_ODBinding_ChooseEditorForPart(ODBinding *somSelf, Environment *ev,
		ODStorageUnit* thePartSU,
		ODType newKind);
typedef somTP_ODBinding_ChooseEditorForPart *somTD_ODBinding_ChooseEditorForPart;
typedef ODContainerSuite   SOMLINK somTP_ODBinding_GetContainerSuite(ODBinding *somSelf, Environment *ev,
		ODContainerType containerType);
typedef somTP_ODBinding_GetContainerSuite *somTD_ODBinding_GetContainerSuite;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_ODBinding_InitObject(ODBinding *somSelf, Environment *ev);
typedef somTP_ODBinding_InitObject *somTD_ODBinding_InitObject;
typedef ODBoolean   SOMLINK somTP_ODBinding_HasExtension(ODBinding *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODBinding_HasExtension *somTD_ODBinding_HasExtension;
typedef ODExtension*   SOMLINK somTP_ODBinding_AcquireExtension(ODBinding *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODBinding_AcquireExtension *somTD_ODBinding_AcquireExtension;
typedef void   SOMLINK somTP_ODBinding_ReleaseExtension(ODBinding *somSelf, Environment *ev,
		ODExtension* extension);
typedef somTP_ODBinding_ReleaseExtension *somTD_ODBinding_ReleaseExtension;
typedef ODSize   SOMLINK somTP_ODBinding_Purge(ODBinding *somSelf, Environment *ev,
		ODSize size);
typedef somTP_ODBinding_Purge *somTD_ODBinding_Purge;
typedef ODBoolean   SOMLINK somTP_ODBinding_IsEqualTo(ODBinding *somSelf, Environment *ev,
		ODObject* object);
typedef somTP_ODBinding_IsEqualTo *somTD_ODBinding_IsEqualTo;
typedef void   SOMLINK somTP_ODBinding_SubClassResponsibility(ODBinding *somSelf, Environment *ev);
typedef somTP_ODBinding_SubClassResponsibility *somTD_ODBinding_SubClassResponsibility;
typedef void   SOMLINK somTP_ODBinding_somInit(ODBinding *somSelf);
typedef somTP_ODBinding_somInit *somTD_ODBinding_somInit;
typedef void   SOMLINK somTP_ODBinding_somUninit(ODBinding *somSelf);
typedef somTP_ODBinding_somUninit *somTD_ODBinding_somUninit;
typedef void   SOMLINK somTP_ODBinding_somDefaultInit(ODBinding *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODBinding_somDefaultInit *somTD_ODBinding_somDefaultInit;
typedef void   SOMLINK somTP_ODBinding_somDestruct(ODBinding *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODBinding_somDestruct *somTD_ODBinding_somDestruct;
typedef void   SOMLINK somTP_ODBinding_somDefaultCopyInit(ODBinding *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBinding_somDefaultCopyInit *somTD_ODBinding_somDefaultCopyInit;
typedef ODBinding*   SOMLINK somTP_ODBinding_somDefaultAssign(ODBinding *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBinding_somDefaultAssign *somTD_ODBinding_somDefaultAssign;
typedef void   SOMLINK somTP_ODBinding_somDefaultConstCopyInit(ODBinding *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBinding_somDefaultConstCopyInit *somTD_ODBinding_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODBinding_somDefaultVCopyInit(ODBinding *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBinding_somDefaultVCopyInit *somTD_ODBinding_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODBinding_somDefaultConstVCopyInit(ODBinding *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBinding_somDefaultConstVCopyInit *somTD_ODBinding_somDefaultConstVCopyInit;
typedef ODBinding*   SOMLINK somTP_ODBinding_somDefaultConstAssign(ODBinding *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBinding_somDefaultConstAssign *somTD_ODBinding_somDefaultConstAssign;
typedef ODBinding*   SOMLINK somTP_ODBinding_somDefaultVAssign(ODBinding *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBinding_somDefaultVAssign *somTD_ODBinding_somDefaultVAssign;
typedef ODBinding*   SOMLINK somTP_ODBinding_somDefaultConstVAssign(ODBinding *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODBinding_somDefaultConstVAssign *somTD_ODBinding_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODBinding_somFree(ODBinding *somSelf);
typedef somTP_ODBinding_somFree *somTD_ODBinding_somFree;
typedef SOMClass*   SOMLINK somTP_ODBinding_somGetClass(ODBinding *somSelf);
typedef somTP_ODBinding_somGetClass *somTD_ODBinding_somGetClass;
typedef string   SOMLINK somTP_ODBinding_somGetClassName(ODBinding *somSelf);
typedef somTP_ODBinding_somGetClassName *somTD_ODBinding_somGetClassName;
typedef long   SOMLINK somTP_ODBinding_somGetSize(ODBinding *somSelf);
typedef somTP_ODBinding_somGetSize *somTD_ODBinding_somGetSize;
typedef boolean   SOMLINK somTP_ODBinding_somIsA(ODBinding *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODBinding_somIsA *somTD_ODBinding_somIsA;
typedef boolean   SOMLINK somTP_ODBinding_somIsInstanceOf(ODBinding *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODBinding_somIsInstanceOf *somTD_ODBinding_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODBinding_somRespondsTo(ODBinding *somSelf,
		somId mId);
typedef somTP_ODBinding_somRespondsTo *somTD_ODBinding_somRespondsTo;
typedef boolean   SOMLINK somTP_ODBinding_somDispatch(ODBinding *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODBinding_somDispatch *somTD_ODBinding_somDispatch;
typedef boolean   SOMLINK somTP_ODBinding_somClassDispatch(ODBinding *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODBinding_somClassDispatch *somTD_ODBinding_somClassDispatch;
typedef boolean   SOMLINK somTP_ODBinding_somCastObj(ODBinding *somSelf,
		SOMClass* cls);
typedef somTP_ODBinding_somCastObj *somTD_ODBinding_somCastObj;
typedef boolean   SOMLINK somTP_ODBinding_somResetObj(ODBinding *somSelf);
typedef somTP_ODBinding_somResetObj *somTD_ODBinding_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODBinding_somPrintSelf(ODBinding *somSelf);
typedef somTP_ODBinding_somPrintSelf *somTD_ODBinding_somPrintSelf;
typedef void   SOMLINK somTP_ODBinding_somDumpSelf(ODBinding *somSelf,
		long level);
typedef somTP_ODBinding_somDumpSelf *somTD_ODBinding_somDumpSelf;
typedef void   SOMLINK somTP_ODBinding_somDumpSelfInt(ODBinding *somSelf,
		long level);
typedef somTP_ODBinding_somDumpSelfInt *somTD_ODBinding_somDumpSelfInt;
}

#endif /* ODBinding_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 ODBinding
 */
class ODBinding : public ODObject
{
public:

// ODBinding::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 (!_ODBinding) ODBindingNewClass(ODBinding_MajorVersion,ODBinding_MinorVersion);
   return (void*)
      SOM_Resolve(_ODBinding,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODBinding));
}

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

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

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

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


/* method: ChooseEditorForPart */
ODEditor   ChooseEditorForPart(Environment *ev,
		ODStorageUnit* thePartSU,
		ODType newKind)
{
#ifdef SOMCHKEXCEPT
   ODEditor __somResult = 
      SOM_ResolveD(this,ODBinding,ODBinding,ChooseEditorForPart)
	(this, ev,thePartSU,newKind);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODBinding,ODBinding,ChooseEditorForPart)
	(this, ev,thePartSU,newKind);
#endif
}


/* method: GetContainerSuite */
ODContainerSuite   GetContainerSuite(Environment *ev,
		ODContainerType containerType)
{
#ifdef SOMCHKEXCEPT
   ODContainerSuite __somResult = 
      SOM_ResolveD(this,ODBinding,ODBinding,GetContainerSuite)
	(this, ev,containerType);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODBinding,ODBinding,GetContainerSuite)
	(this, ev,containerType);
#endif
}


/*
 * Reintroduce inherited methods
 */

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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



};   /* ODBinding */



#endif       /* SOM_ODBinding_xh */
