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

#ifndef SOM_ODDSPartEventSource_xh
#define SOM_ODDSPartEventSource_xh

class ODDSPartEventSource;

#define ODDSPartEventSource_MajorVersion 0
#define ODDSPartEventSource_MinorVersion 0

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

/* C++ parent defs */
#ifndef SOM_ODDSPartEventInterface_xh
#include <oddsevni.xh>
#endif
#ifndef SOM_ODDSEventMgr_xh
#include <oddsemgr.xh>
#endif

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

/*
 * Start of user-defined types:
 */
class SOMClass;
class SOMObject;
class ODDSConnection;
class ODDSSinkEnum;
class ODDSSink;

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

/* A procedure to create the ODDSPartEventSource Class */
SOMEXTERN
#if (defined(SOM_Module_oddsesrc_Source) || defined(ODDSPartEventSource_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODDSPartEventSource))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODDSPartEventSourceNewClass(
		integer4,
		integer4 );

/* The API to the ODDSPartEventSource class object, and the methods it introduces. */
SOMEXTERN struct ODDSPartEventSourceClassDataStructure {
	SOMClass *classObject;
}
#if !(defined(SOM_Module_oddsesrc_Source) || defined(ODDSPartEventSource_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODDSPartEventSource))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODDSPartEventSourceClassData;
#define _ODDSPartEventSource ODDSPartEventSourceClassData.classObject

/* The API to parentMtabs for ODDSPartEventSource, and the instance data it introduces. */
SOMEXTERN struct ODDSPartEventSourceCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_oddsesrc_Source) || defined(ODDSPartEventSource_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODDSPartEventSource))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODDSPartEventSourceCClassData;

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

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_ODDSPartEventSource_Click(ODDSPartEventSource *somSelf, Environment *ev);
typedef somTP_ODDSPartEventSource_Click *somTD_ODDSPartEventSource_Click;
typedef void   SOMLINK somTP_ODDSPartEventSource_DblClick(ODDSPartEventSource *somSelf, Environment *ev);
typedef somTP_ODDSPartEventSource_DblClick *somTD_ODDSPartEventSource_DblClick;
typedef void   SOMLINK somTP_ODDSPartEventSource_KeyDown(ODDSPartEventSource *somSelf, Environment *ev,
		short* KeyCode,
		short Shift);
typedef somTP_ODDSPartEventSource_KeyDown *somTD_ODDSPartEventSource_KeyDown;
typedef void   SOMLINK somTP_ODDSPartEventSource_KeyPress(ODDSPartEventSource *somSelf, Environment *ev,
		short* KeyAscii);
typedef somTP_ODDSPartEventSource_KeyPress *somTD_ODDSPartEventSource_KeyPress;
typedef void   SOMLINK somTP_ODDSPartEventSource_KeyUp(ODDSPartEventSource *somSelf, Environment *ev,
		short* KeyCode,
		short Shift);
typedef somTP_ODDSPartEventSource_KeyUp *somTD_ODDSPartEventSource_KeyUp;
typedef void   SOMLINK somTP_ODDSPartEventSource_MouseDown(ODDSPartEventSource *somSelf, Environment *ev,
		short Button,
		short Shift,
		long X,
		long Y);
typedef somTP_ODDSPartEventSource_MouseDown *somTD_ODDSPartEventSource_MouseDown;
typedef void   SOMLINK somTP_ODDSPartEventSource_MouseMove(ODDSPartEventSource *somSelf, Environment *ev,
		short Button,
		short Shift,
		long X,
		long Y);
typedef somTP_ODDSPartEventSource_MouseMove *somTD_ODDSPartEventSource_MouseMove;
typedef void   SOMLINK somTP_ODDSPartEventSource_MouseUp(ODDSPartEventSource *somSelf, Environment *ev,
		short Button,
		short Shift,
		long X,
		long Y);
typedef somTP_ODDSPartEventSource_MouseUp *somTD_ODDSPartEventSource_MouseUp;
typedef void   SOMLINK somTP_ODDSPartEventSource_somDefaultInit(ODDSPartEventSource *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODDSPartEventSource_somDefaultInit *somTD_ODDSPartEventSource_somDefaultInit;
typedef void   SOMLINK somTP_ODDSPartEventSource_somDestruct(ODDSPartEventSource *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODDSPartEventSource_somDestruct *somTD_ODDSPartEventSource_somDestruct;
typedef void   SOMLINK somTP_ODDSPartEventSource_somDefaultCopyInit(ODDSPartEventSource *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDSPartEventSource_somDefaultCopyInit *somTD_ODDSPartEventSource_somDefaultCopyInit;
typedef ODDSPartEventSource*   SOMLINK somTP_ODDSPartEventSource_somDefaultAssign(ODDSPartEventSource *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDSPartEventSource_somDefaultAssign *somTD_ODDSPartEventSource_somDefaultAssign;
typedef void   SOMLINK somTP_ODDSPartEventSource_somDefaultConstCopyInit(ODDSPartEventSource *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDSPartEventSource_somDefaultConstCopyInit *somTD_ODDSPartEventSource_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODDSPartEventSource_somDefaultVCopyInit(ODDSPartEventSource *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDSPartEventSource_somDefaultVCopyInit *somTD_ODDSPartEventSource_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODDSPartEventSource_somDefaultConstVCopyInit(ODDSPartEventSource *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDSPartEventSource_somDefaultConstVCopyInit *somTD_ODDSPartEventSource_somDefaultConstVCopyInit;
typedef ODDSPartEventSource*   SOMLINK somTP_ODDSPartEventSource_somDefaultConstAssign(ODDSPartEventSource *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDSPartEventSource_somDefaultConstAssign *somTD_ODDSPartEventSource_somDefaultConstAssign;
typedef ODDSPartEventSource*   SOMLINK somTP_ODDSPartEventSource_somDefaultVAssign(ODDSPartEventSource *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDSPartEventSource_somDefaultVAssign *somTD_ODDSPartEventSource_somDefaultVAssign;
typedef ODDSPartEventSource*   SOMLINK somTP_ODDSPartEventSource_somDefaultConstVAssign(ODDSPartEventSource *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODDSPartEventSource_somDefaultConstVAssign *somTD_ODDSPartEventSource_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODDSPartEventSource_somInit(ODDSPartEventSource *somSelf);
typedef somTP_ODDSPartEventSource_somInit *somTD_ODDSPartEventSource_somInit;
typedef void   SOMLINK somTP_ODDSPartEventSource_somFree(ODDSPartEventSource *somSelf);
typedef somTP_ODDSPartEventSource_somFree *somTD_ODDSPartEventSource_somFree;
typedef void   SOMLINK somTP_ODDSPartEventSource_somUninit(ODDSPartEventSource *somSelf);
typedef somTP_ODDSPartEventSource_somUninit *somTD_ODDSPartEventSource_somUninit;
typedef SOMClass*   SOMLINK somTP_ODDSPartEventSource_somGetClass(ODDSPartEventSource *somSelf);
typedef somTP_ODDSPartEventSource_somGetClass *somTD_ODDSPartEventSource_somGetClass;
typedef string   SOMLINK somTP_ODDSPartEventSource_somGetClassName(ODDSPartEventSource *somSelf);
typedef somTP_ODDSPartEventSource_somGetClassName *somTD_ODDSPartEventSource_somGetClassName;
typedef long   SOMLINK somTP_ODDSPartEventSource_somGetSize(ODDSPartEventSource *somSelf);
typedef somTP_ODDSPartEventSource_somGetSize *somTD_ODDSPartEventSource_somGetSize;
typedef boolean   SOMLINK somTP_ODDSPartEventSource_somIsA(ODDSPartEventSource *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODDSPartEventSource_somIsA *somTD_ODDSPartEventSource_somIsA;
typedef boolean   SOMLINK somTP_ODDSPartEventSource_somIsInstanceOf(ODDSPartEventSource *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODDSPartEventSource_somIsInstanceOf *somTD_ODDSPartEventSource_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODDSPartEventSource_somRespondsTo(ODDSPartEventSource *somSelf,
		somId mId);
typedef somTP_ODDSPartEventSource_somRespondsTo *somTD_ODDSPartEventSource_somRespondsTo;
typedef boolean   SOMLINK somTP_ODDSPartEventSource_somDispatch(ODDSPartEventSource *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODDSPartEventSource_somDispatch *somTD_ODDSPartEventSource_somDispatch;
typedef boolean   SOMLINK somTP_ODDSPartEventSource_somClassDispatch(ODDSPartEventSource *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODDSPartEventSource_somClassDispatch *somTD_ODDSPartEventSource_somClassDispatch;
typedef boolean   SOMLINK somTP_ODDSPartEventSource_somCastObj(ODDSPartEventSource *somSelf,
		SOMClass* cls);
typedef somTP_ODDSPartEventSource_somCastObj *somTD_ODDSPartEventSource_somCastObj;
typedef boolean   SOMLINK somTP_ODDSPartEventSource_somResetObj(ODDSPartEventSource *somSelf);
typedef somTP_ODDSPartEventSource_somResetObj *somTD_ODDSPartEventSource_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODDSPartEventSource_somPrintSelf(ODDSPartEventSource *somSelf);
typedef somTP_ODDSPartEventSource_somPrintSelf *somTD_ODDSPartEventSource_somPrintSelf;
typedef void   SOMLINK somTP_ODDSPartEventSource_somDumpSelf(ODDSPartEventSource *somSelf,
		long level);
typedef somTP_ODDSPartEventSource_somDumpSelf *somTD_ODDSPartEventSource_somDumpSelf;
typedef void   SOMLINK somTP_ODDSPartEventSource_somDumpSelfInt(ODDSPartEventSource *somSelf,
		long level);
typedef somTP_ODDSPartEventSource_somDumpSelfInt *somTD_ODDSPartEventSource_somDumpSelfInt;
typedef ODDSConnection*   SOMLINK somTP_ODDSPartEventSource__get_connection(ODDSPartEventSource *somSelf, Environment *ev);
typedef somTP_ODDSPartEventSource__get_connection *somTD_ODDSPartEventSource__get_connection;
typedef void   SOMLINK somTP_ODDSPartEventSource__set_connection(ODDSPartEventSource *somSelf, Environment *ev,
		ODDSConnection* connection);
typedef somTP_ODDSPartEventSource__set_connection *somTD_ODDSPartEventSource__set_connection;
typedef unsigned long   SOMLINK somTP_ODDSPartEventSource__get_languageId(ODDSPartEventSource *somSelf, Environment *ev);
typedef somTP_ODDSPartEventSource__get_languageId *somTD_ODDSPartEventSource__get_languageId;
typedef void   SOMLINK somTP_ODDSPartEventSource__set_languageId(ODDSPartEventSource *somSelf, Environment *ev,
		unsigned long languageId);
typedef somTP_ODDSPartEventSource__set_languageId *somTD_ODDSPartEventSource__set_languageId;
typedef LPODGUID   SOMLINK somTP_ODDSPartEventSource__get_guid(ODDSPartEventSource *somSelf, Environment *ev);
typedef somTP_ODDSPartEventSource__get_guid *somTD_ODDSPartEventSource__get_guid;
typedef long   SOMLINK somTP_ODDSPartEventSource_AddSink(ODDSPartEventSource *somSelf, Environment *ev,
		ODDSSink* sink);
typedef somTP_ODDSPartEventSource_AddSink *somTD_ODDSPartEventSource_AddSink;
typedef long   SOMLINK somTP_ODDSPartEventSource_RemoveSink(ODDSPartEventSource *somSelf, Environment *ev,
		ODDSSink* sink);
typedef somTP_ODDSPartEventSource_RemoveSink *somTD_ODDSPartEventSource_RemoveSink;
typedef boolean   SOMLINK somTP_ODDSPartEventSource_SinkIsConnnected(ODDSPartEventSource *somSelf, Environment *ev,
		ODDSSink* sink);
typedef somTP_ODDSPartEventSource_SinkIsConnnected *somTD_ODDSPartEventSource_SinkIsConnnected;
typedef long   SOMLINK somTP_ODDSPartEventSource_PrepareEventFiring(ODDSPartEventSource *somSelf, Environment *ev,
		long* numberOfSinks,
		ODDSSinkEnum** sinks);
typedef somTP_ODDSPartEventSource_PrepareEventFiring *somTD_ODDSPartEventSource_PrepareEventFiring;
typedef long   SOMLINK somTP_ODDSPartEventSource_FireEvent(ODDSPartEventSource *somSelf, Environment *ev,
		ODDSSinkEnum* sinks,
		string eventName,
		_IDL_SEQUENCE_any* inputParms,
		ODDSRESULT* result);
typedef somTP_ODDSPartEventSource_FireEvent *somTD_ODDSPartEventSource_FireEvent;
typedef long   SOMLINK somTP_ODDSPartEventSource_StopEventFiring(ODDSPartEventSource *somSelf, Environment *ev,
		ODDSSinkEnum* sinks);
typedef somTP_ODDSPartEventSource_StopEventFiring *somTD_ODDSPartEventSource_StopEventFiring;
typedef long   SOMLINK somTP_ODDSPartEventSource_CreateSinkEnum(ODDSPartEventSource *somSelf, Environment *ev,
		ODDSSinkEnum** sinks);
typedef somTP_ODDSPartEventSource_CreateSinkEnum *somTD_ODDSPartEventSource_CreateSinkEnum;
typedef void   SOMLINK somTP_ODDSPartEventSource_EventMgrWithGUID(ODDSPartEventSource *somSelf, Environment *ev,
		somInitCtrl* ctrl,
		ODGUID guid);
typedef somTP_ODDSPartEventSource_EventMgrWithGUID *somTD_ODDSPartEventSource_EventMgrWithGUID;
}

#endif /* ODDSPartEventSource_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 ODDSPartEventSource
 */
class ODDSPartEventSource : public ODDSPartEventInterface, public ODDSEventMgr
{
public:

// ODDSPartEventSource::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 (!_ODDSPartEventSource) ODDSPartEventSourceNewClass(ODDSPartEventSource_MajorVersion,ODDSPartEventSource_MinorVersion);
   return (void*)
      SOM_Resolve(_ODDSPartEventSource,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODDSPartEventSource));
}

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

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

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

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


/*
 * Reintroduce inherited methods
 */

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


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


/* method: KeyDown */
void   KeyDown(Environment *ev,
		short* KeyCode,
		short Shift)
{
   SOM_ResolveD(this,ODDSPartEventSource,ODDSPartEventInterface,KeyDown)
	(this, ev,KeyCode,Shift);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: KeyPress */
void   KeyPress(Environment *ev,
		short* KeyAscii)
{
   SOM_ResolveD(this,ODDSPartEventSource,ODDSPartEventInterface,KeyPress)
	(this, ev,KeyAscii);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: KeyUp */
void   KeyUp(Environment *ev,
		short* KeyCode,
		short Shift)
{
   SOM_ResolveD(this,ODDSPartEventSource,ODDSPartEventInterface,KeyUp)
	(this, ev,KeyCode,Shift);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: MouseDown */
void   MouseDown(Environment *ev,
		short Button,
		short Shift,
		long X,
		long Y)
{
   SOM_ResolveD(this,ODDSPartEventSource,ODDSPartEventInterface,MouseDown)
	(this, ev,Button,Shift,X,Y);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: MouseMove */
void   MouseMove(Environment *ev,
		short Button,
		short Shift,
		long X,
		long Y)
{
   SOM_ResolveD(this,ODDSPartEventSource,ODDSPartEventInterface,MouseMove)
	(this, ev,Button,Shift,X,Y);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: MouseUp */
void   MouseUp(Environment *ev,
		short Button,
		short Shift,
		long X,
		long Y)
{
   SOM_ResolveD(this,ODDSPartEventSource,ODDSPartEventInterface,MouseUp)
	(this, ev,Button,Shift,X,Y);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


/* method: _set_connection */
void   _set_connection(Environment *ev,
		ODDSConnection* connection)
{
   SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,_set_connection)
	(this, ev,connection);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: _get_languageId */
unsigned long   _get_languageId(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   unsigned long __somResult = 
      SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,_get_languageId)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,_get_languageId)
	(this, ev);
#endif
}


/* method: _set_languageId */
void   _set_languageId(Environment *ev,
		unsigned long languageId)
{
   SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,_set_languageId)
	(this, ev,languageId);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


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


/* method: AddSink */
long   AddSink(Environment *ev,
		ODDSSink* sink)
{
#ifdef SOMCHKEXCEPT
   long __somResult = 
      SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,AddSink)
	(this, ev,sink);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,AddSink)
	(this, ev,sink);
#endif
}


/* method: RemoveSink */
long   RemoveSink(Environment *ev,
		ODDSSink* sink)
{
#ifdef SOMCHKEXCEPT
   long __somResult = 
      SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,RemoveSink)
	(this, ev,sink);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,RemoveSink)
	(this, ev,sink);
#endif
}


/* method: SinkIsConnnected */
boolean   SinkIsConnnected(Environment *ev,
		ODDSSink* sink)
{
#ifdef SOMCHKEXCEPT
   boolean __somResult = 
      SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,SinkIsConnnected)
	(this, ev,sink);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,SinkIsConnnected)
	(this, ev,sink);
#endif
}


/* method: PrepareEventFiring */
long   PrepareEventFiring(Environment *ev,
		long* numberOfSinks,
		ODDSSinkEnum** sinks)
{
#ifdef SOMCHKEXCEPT
   long __somResult = 
      SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,PrepareEventFiring)
	(this, ev,numberOfSinks,sinks);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,PrepareEventFiring)
	(this, ev,numberOfSinks,sinks);
#endif
}


/* method: FireEvent */
long   FireEvent(Environment *ev,
		ODDSSinkEnum* sinks,
		string eventName,
		_IDL_SEQUENCE_any* inputParms,
		ODDSRESULT* result)
{
#ifdef SOMCHKEXCEPT
   long __somResult = 
      SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,FireEvent)
	(this, ev,sinks,eventName,inputParms,result);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,FireEvent)
	(this, ev,sinks,eventName,inputParms,result);
#endif
}


/* method: StopEventFiring */
long   StopEventFiring(Environment *ev,
		ODDSSinkEnum* sinks)
{
#ifdef SOMCHKEXCEPT
   long __somResult = 
      SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,StopEventFiring)
	(this, ev,sinks);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,StopEventFiring)
	(this, ev,sinks);
#endif
}


/* method: CreateSinkEnum */
long   CreateSinkEnum(Environment *ev,
		ODDSSinkEnum** sinks)
{
#ifdef SOMCHKEXCEPT
   long __somResult = 
      SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,CreateSinkEnum)
	(this, ev,sinks);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,CreateSinkEnum)
	(this, ev,sinks);
#endif
}


/* initializer method: EventMgrWithGUID */
void   EventMgrWithGUID(Environment *ev,
		somInitCtrl* ctrl,
		ODGUID guid)
{
   SOM_ResolveD(this,ODDSPartEventSource,ODDSEventMgr,EventMgrWithGUID)
	(this, ev,ctrl,guid);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}



};   /* ODDSPartEventSource */



#endif       /* SOM_ODDSPartEventSource_xh */
