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

#ifndef SOM_ODDispatcher_xh
#define SOM_ODDispatcher_xh

class ODDispatcher;

#define ODDispatcher_MajorVersion 1
#define ODDispatcher_MinorVersion 0

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

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

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

/*
 * Start of user-defined types:
 */
class SOMClass;
class SOMObject;
class ODFrame;
class ODFacet;
class ODPlatformCanvas;
class ODObject;
class ODExtension;
class ODDispatcher;
class ODDispatchModule;
class ODPart;

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

/* A procedure to create the ODDispatcher Class */
SOMEXTERN
#if (defined(SOM_Module_Disptch_Source) || defined(ODDispatcher_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODDispatcher))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODDispatcherNewClass(
		integer4,
		integer4 );

/* The API to the ODDispatcher class object, and the methods it introduces. */
SOMEXTERN struct ODDispatcherClassDataStructure {
	SOMClass *classObject;
	somMToken AddDispatchModule;
	somMToken GetDispatchModule;
	somMToken RemoveDispatchModule;
	somMToken AddMonitor;
	somMToken RemoveMonitor;
	somMToken Dispatch;
	somMToken Redispatch;
	somMToken Exit;
	somMToken ShouldExit;
	somMToken reserved1;
	somMToken reserved_end;
}
#if !(defined(SOM_Module_Disptch_Source) || defined(ODDispatcher_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODDispatcher))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODDispatcherClassData;
#define _ODDispatcher ODDispatcherClassData.classObject

/* The API to parentMtabs for ODDispatcher, and the instance data it introduces. */
SOMEXTERN struct ODDispatcherCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_Disptch_Source) || defined(ODDispatcher_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODDispatcher))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODDispatcherCClassData;

/*
 * -- Typedefs for ODDispatcher Method Procedures
 */
extern "C" {
typedef void   SOMLINK somTP_ODDispatcher_AddDispatchModule(ODDispatcher *somSelf, Environment *ev,
		ODEventType eventType,
		ODDispatchModule* dispatchModule);
typedef somTP_ODDispatcher_AddDispatchModule *somTD_ODDispatcher_AddDispatchModule;
typedef ODDispatchModule*   SOMLINK somTP_ODDispatcher_GetDispatchModule(ODDispatcher *somSelf, Environment *ev,
		ODEventType eventType);
typedef somTP_ODDispatcher_GetDispatchModule *somTD_ODDispatcher_GetDispatchModule;
typedef void   SOMLINK somTP_ODDispatcher_RemoveDispatchModule(ODDispatcher *somSelf, Environment *ev,
		ODEventType eventType);
typedef somTP_ODDispatcher_RemoveDispatchModule *somTD_ODDispatcher_RemoveDispatchModule;
typedef void   SOMLINK somTP_ODDispatcher_AddMonitor(ODDispatcher *somSelf, Environment *ev,
		ODEventType eventType,
		ODDispatchModule* dispatchModule);
typedef somTP_ODDispatcher_AddMonitor *somTD_ODDispatcher_AddMonitor;
typedef void   SOMLINK somTP_ODDispatcher_RemoveMonitor(ODDispatcher *somSelf, Environment *ev,
		ODEventType eventType,
		ODDispatchModule* dispatchModule);
typedef somTP_ODDispatcher_RemoveMonitor *somTD_ODDispatcher_RemoveMonitor;
typedef ODBoolean   SOMLINK somTP_ODDispatcher_Dispatch(ODDispatcher *somSelf, Environment *ev,
		ODEventData* eventData);
typedef somTP_ODDispatcher_Dispatch *somTD_ODDispatcher_Dispatch;
typedef ODBoolean   SOMLINK somTP_ODDispatcher_Redispatch(ODDispatcher *somSelf, Environment *ev,
		ODEventData* eventData,
		ODEventInfo* eventInfo);
typedef somTP_ODDispatcher_Redispatch *somTD_ODDispatcher_Redispatch;
typedef void   SOMLINK somTP_ODDispatcher_Exit(ODDispatcher *somSelf, Environment *ev);
typedef somTP_ODDispatcher_Exit *somTD_ODDispatcher_Exit;
typedef ODBoolean   SOMLINK somTP_ODDispatcher_ShouldExit(ODDispatcher *somSelf, Environment *ev);
typedef somTP_ODDispatcher_ShouldExit *somTD_ODDispatcher_ShouldExit;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_ODDispatcher_InitObject(ODDispatcher *somSelf, Environment *ev);
typedef somTP_ODDispatcher_InitObject *somTD_ODDispatcher_InitObject;
typedef ODBoolean   SOMLINK somTP_ODDispatcher_HasExtension(ODDispatcher *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODDispatcher_HasExtension *somTD_ODDispatcher_HasExtension;
typedef ODExtension*   SOMLINK somTP_ODDispatcher_AcquireExtension(ODDispatcher *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODDispatcher_AcquireExtension *somTD_ODDispatcher_AcquireExtension;
typedef void   SOMLINK somTP_ODDispatcher_ReleaseExtension(ODDispatcher *somSelf, Environment *ev,
		ODExtension* extension);
typedef somTP_ODDispatcher_ReleaseExtension *somTD_ODDispatcher_ReleaseExtension;
typedef ODSize   SOMLINK somTP_ODDispatcher_Purge(ODDispatcher *somSelf, Environment *ev,
		ODSize size);
typedef somTP_ODDispatcher_Purge *somTD_ODDispatcher_Purge;
typedef ODBoolean   SOMLINK somTP_ODDispatcher_IsEqualTo(ODDispatcher *somSelf, Environment *ev,
		ODObject* object);
typedef somTP_ODDispatcher_IsEqualTo *somTD_ODDispatcher_IsEqualTo;
typedef void   SOMLINK somTP_ODDispatcher_SubClassResponsibility(ODDispatcher *somSelf, Environment *ev);
typedef somTP_ODDispatcher_SubClassResponsibility *somTD_ODDispatcher_SubClassResponsibility;
typedef void   SOMLINK somTP_ODDispatcher_somInit(ODDispatcher *somSelf);
typedef somTP_ODDispatcher_somInit *somTD_ODDispatcher_somInit;
typedef void   SOMLINK somTP_ODDispatcher_somUninit(ODDispatcher *somSelf);
typedef somTP_ODDispatcher_somUninit *somTD_ODDispatcher_somUninit;
typedef void   SOMLINK somTP_ODDispatcher_somDefaultInit(ODDispatcher *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODDispatcher_somDefaultInit *somTD_ODDispatcher_somDefaultInit;
typedef void   SOMLINK somTP_ODDispatcher_somDestruct(ODDispatcher *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODDispatcher_somDestruct *somTD_ODDispatcher_somDestruct;
typedef void   SOMLINK somTP_ODDispatcher_somDefaultCopyInit(ODDispatcher *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDispatcher_somDefaultCopyInit *somTD_ODDispatcher_somDefaultCopyInit;
typedef ODDispatcher*   SOMLINK somTP_ODDispatcher_somDefaultAssign(ODDispatcher *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDispatcher_somDefaultAssign *somTD_ODDispatcher_somDefaultAssign;
typedef void   SOMLINK somTP_ODDispatcher_somDefaultConstCopyInit(ODDispatcher *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDispatcher_somDefaultConstCopyInit *somTD_ODDispatcher_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODDispatcher_somDefaultVCopyInit(ODDispatcher *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDispatcher_somDefaultVCopyInit *somTD_ODDispatcher_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODDispatcher_somDefaultConstVCopyInit(ODDispatcher *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDispatcher_somDefaultConstVCopyInit *somTD_ODDispatcher_somDefaultConstVCopyInit;
typedef ODDispatcher*   SOMLINK somTP_ODDispatcher_somDefaultConstAssign(ODDispatcher *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDispatcher_somDefaultConstAssign *somTD_ODDispatcher_somDefaultConstAssign;
typedef ODDispatcher*   SOMLINK somTP_ODDispatcher_somDefaultVAssign(ODDispatcher *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDispatcher_somDefaultVAssign *somTD_ODDispatcher_somDefaultVAssign;
typedef ODDispatcher*   SOMLINK somTP_ODDispatcher_somDefaultConstVAssign(ODDispatcher *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDispatcher_somDefaultConstVAssign *somTD_ODDispatcher_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODDispatcher_somFree(ODDispatcher *somSelf);
typedef somTP_ODDispatcher_somFree *somTD_ODDispatcher_somFree;
typedef SOMClass*   SOMLINK somTP_ODDispatcher_somGetClass(ODDispatcher *somSelf);
typedef somTP_ODDispatcher_somGetClass *somTD_ODDispatcher_somGetClass;
typedef string   SOMLINK somTP_ODDispatcher_somGetClassName(ODDispatcher *somSelf);
typedef somTP_ODDispatcher_somGetClassName *somTD_ODDispatcher_somGetClassName;
typedef long   SOMLINK somTP_ODDispatcher_somGetSize(ODDispatcher *somSelf);
typedef somTP_ODDispatcher_somGetSize *somTD_ODDispatcher_somGetSize;
typedef boolean   SOMLINK somTP_ODDispatcher_somIsA(ODDispatcher *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODDispatcher_somIsA *somTD_ODDispatcher_somIsA;
typedef boolean   SOMLINK somTP_ODDispatcher_somIsInstanceOf(ODDispatcher *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODDispatcher_somIsInstanceOf *somTD_ODDispatcher_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODDispatcher_somRespondsTo(ODDispatcher *somSelf,
		somId mId);
typedef somTP_ODDispatcher_somRespondsTo *somTD_ODDispatcher_somRespondsTo;
typedef boolean   SOMLINK somTP_ODDispatcher_somDispatch(ODDispatcher *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODDispatcher_somDispatch *somTD_ODDispatcher_somDispatch;
typedef boolean   SOMLINK somTP_ODDispatcher_somClassDispatch(ODDispatcher *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODDispatcher_somClassDispatch *somTD_ODDispatcher_somClassDispatch;
typedef boolean   SOMLINK somTP_ODDispatcher_somCastObj(ODDispatcher *somSelf,
		SOMClass* cls);
typedef somTP_ODDispatcher_somCastObj *somTD_ODDispatcher_somCastObj;
typedef boolean   SOMLINK somTP_ODDispatcher_somResetObj(ODDispatcher *somSelf);
typedef somTP_ODDispatcher_somResetObj *somTD_ODDispatcher_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODDispatcher_somPrintSelf(ODDispatcher *somSelf);
typedef somTP_ODDispatcher_somPrintSelf *somTD_ODDispatcher_somPrintSelf;
typedef void   SOMLINK somTP_ODDispatcher_somDumpSelf(ODDispatcher *somSelf,
		long level);
typedef somTP_ODDispatcher_somDumpSelf *somTD_ODDispatcher_somDumpSelf;
typedef void   SOMLINK somTP_ODDispatcher_somDumpSelfInt(ODDispatcher *somSelf,
		long level);
typedef somTP_ODDispatcher_somDumpSelfInt *somTD_ODDispatcher_somDumpSelfInt;
}

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

// ODDispatcher::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 (!_ODDispatcher) ODDispatcherNewClass(ODDispatcher_MajorVersion,ODDispatcher_MinorVersion);
   return (void*)
      SOM_Resolve(_ODDispatcher,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODDispatcher));
}

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

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

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

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


/* method: AddDispatchModule */
void   AddDispatchModule(Environment *ev,
		ODEventType eventType,
		ODDispatchModule* dispatchModule)
{
   SOM_ResolveD(this,ODDispatcher,ODDispatcher,AddDispatchModule)
	(this, ev,eventType,dispatchModule);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: GetDispatchModule */
ODDispatchModule*   GetDispatchModule(Environment *ev,
		ODEventType eventType)
{
#ifdef SOMCHKEXCEPT
   ODDispatchModule* __somResult = 
      SOM_ResolveD(this,ODDispatcher,ODDispatcher,GetDispatchModule)
	(this, ev,eventType);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDispatcher,ODDispatcher,GetDispatchModule)
	(this, ev,eventType);
#endif
}


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


/* method: AddMonitor */
void   AddMonitor(Environment *ev,
		ODEventType eventType,
		ODDispatchModule* dispatchModule)
{
   SOM_ResolveD(this,ODDispatcher,ODDispatcher,AddMonitor)
	(this, ev,eventType,dispatchModule);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: RemoveMonitor */
void   RemoveMonitor(Environment *ev,
		ODEventType eventType,
		ODDispatchModule* dispatchModule)
{
   SOM_ResolveD(this,ODDispatcher,ODDispatcher,RemoveMonitor)
	(this, ev,eventType,dispatchModule);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: Dispatch */
ODBoolean   Dispatch(Environment *ev,
		ODEventData* eventData)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODDispatcher,ODDispatcher,Dispatch)
	(this, ev,eventData);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDispatcher,ODDispatcher,Dispatch)
	(this, ev,eventData);
#endif
}


/* method: Redispatch */
ODBoolean   Redispatch(Environment *ev,
		ODEventData* eventData,
		ODEventInfo* eventInfo)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODDispatcher,ODDispatcher,Redispatch)
	(this, ev,eventData,eventInfo);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDispatcher,ODDispatcher,Redispatch)
	(this, ev,eventData,eventInfo);
#endif
}


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


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


/*
 * Reintroduce inherited methods
 */

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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



};   /* ODDispatcher */



#endif       /* SOM_ODDispatcher_xh */
