
/*
 * This file was generated by the SOM Compiler.
 * FileName: \odwin\h\DISPTCHB.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.3
 *     SOM Emitter emith.dll: 2.41
 */

/*
 * 
 *  Classes defined in this interface
 * 
 */


#ifndef SOM_ODBaseDispatcher_h
#define SOM_ODBaseDispatcher_h


#include <som.h>

/*
 * -- This emitter treats Method Tokens as Thunks by default.
 * -- Use the sc modifier "nothunks" to change this default
 */
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))



/*
 * Define class data structures as resolution macros
 */
#define ODBaseDispatcherClassData (*resolve_ODBaseDispatcherClassData())
#define ODBaseDispatcherCClassData (*resolve_ODBaseDispatcherCClassData())

/*
 * Define the class name as an object type
 */
#ifndef ODBaseDispatcher
#define ODBaseDispatcher SOMObject
#endif
#include <ODObject.h>

/*
 * Start of user-defined types:
 */
#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef ODObject
    #define ODObject SOMObject
#endif /* ODObject */
#ifndef ODExtension
    #define ODExtension SOMObject
#endif /* ODExtension */
#ifndef ODBaseDispatcher
    #define ODBaseDispatcher SOMObject
#endif /* ODBaseDispatcher */
#ifndef ODDispatchModule
    #define ODDispatchModule SOMObject
#endif /* ODDispatchModule */
#ifndef ODFacet
    #define ODFacet SOMObject
#endif /* ODFacet */
#ifndef ODFrame
    #define ODFrame SOMObject
#endif /* ODFrame */
#ifndef ODPart
    #define ODPart SOMObject
#endif /* ODPart */
#ifndef ODSession
    #define ODSession SOMObject
#endif /* ODSession */

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

#define ODBaseDispatcher_MajorVersion 1
#define ODBaseDispatcher_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODBaseDispatcherNewClass c
#define ODBaseDispatcherClassData d
#define ODBaseDispatcherCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODBaseDispatcher_classObj ODBaseDispatcherClassData.classObject
#define _ODBaseDispatcher ODBaseDispatcher_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK ODBaseDispatcherNewClass(integer4 somntmajorVersion,
		integer4 somntminorVersion);

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODBaseDispatcherClassDataStructure {
	SOMClass *classObject;
	somMToken AddDispatchModule;
	somMToken GetDispatchModule;
	somMToken RemoveDispatchModule;
	somMToken AddMonitor;
	somMToken RemoveMonitor;
	somMToken Dispatch;
	somMToken Exit;
	somMToken ShouldExit;
	somMToken RegisterIdle;
	somMToken UnregisterIdle;
	somMToken SetIdleFrequency;
	somMToken ODYield;
	somMToken SetMouseRegion;
	somMToken GetMouseRegion;
	somMToken InvalidateFacetUnderMouse;
	somMToken InvalidateMouseRegion;
	somMToken GetFacetUnderMouse;
	somMToken SetFacetUnderMouse;
	somMToken HandleNullEvent;
	somMToken GetSleepTime;
	somMToken MouseRegionIsInvalid;
	somMToken ComputeMouseRegion;
	somMToken CheckFacetUnderMouse;
	somMToken InitBaseDispatcher;
}  _ODBaseDispatcherClassData;
SOMEXTERN struct ODBaseDispatcherClassDataStructure * SOMLINK resolve_ODBaseDispatcherClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODBaseDispatcherCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODBaseDispatcherCClassData;
SOMEXTERN struct ODBaseDispatcherCClassDataStructure * SOMLINK resolve_ODBaseDispatcherCClassData(void);

/*
 * New and Renew macros for ODBaseDispatcher
 */
#define ODBaseDispatcherNew() \
   (_somNew(_ODBaseDispatcher ? _ODBaseDispatcher : ODBaseDispatcherNewClass(ODBaseDispatcher_MajorVersion, ODBaseDispatcher_MinorVersion)))
#define ODBaseDispatcherRenew(buf) \
   (_somRenew(_ODBaseDispatcher ? _ODBaseDispatcher : ODBaseDispatcherNewClass(ODBaseDispatcher_MajorVersion, ODBaseDispatcher_MinorVersion), buf))

/*
 * Override method: somInit
 */
#define ODBaseDispatcher_somInit(somSelf) \
	SOMObject_somInit(somSelf)

/*
 * Override method: somUninit
 */
#define ODBaseDispatcher_somUninit(somSelf) \
	SOMObject_somUninit(somSelf)

/*
 * New Method: AddDispatchModule
 */
typedef void   (SOMLINK * somTD_ODBaseDispatcher_AddDispatchModule)(ODBaseDispatcher *somSelf, Environment *ev,
		ODEventType eventType,
		ODDispatchModule* dispatchModule);
#define somMD_ODBaseDispatcher_AddDispatchModule "::ODBaseDispatcher::AddDispatchModule"
#define ODBaseDispatcher_AddDispatchModule(somSelf,ev,eventType,dispatchModule) \
    (SOM_Resolve(somSelf, ODBaseDispatcher, AddDispatchModule) \
	(somSelf,ev,eventType,dispatchModule))
#ifndef SOMGD_AddDispatchModule
    #if (defined(_AddDispatchModule) || defined(__AddDispatchModule))
        #undef _AddDispatchModule
        #undef __AddDispatchModule
        #define SOMGD_AddDispatchModule 1
    #else
        #define _AddDispatchModule ODBaseDispatcher_AddDispatchModule
    #endif /* _AddDispatchModule */
#endif /* SOMGD_AddDispatchModule */

/*
 * New Method: GetDispatchModule
 */
typedef ODDispatchModule*   (SOMLINK * somTD_ODBaseDispatcher_GetDispatchModule)(ODBaseDispatcher *somSelf, Environment *ev,
		ODEventType eventType);
#define somMD_ODBaseDispatcher_GetDispatchModule "::ODBaseDispatcher::GetDispatchModule"
#define ODBaseDispatcher_GetDispatchModule(somSelf,ev,eventType) \
    (SOM_Resolve(somSelf, ODBaseDispatcher, GetDispatchModule) \
	(somSelf,ev,eventType))
#ifndef SOMGD_GetDispatchModule
    #if (defined(_GetDispatchModule) || defined(__GetDispatchModule))
        #undef _GetDispatchModule
        #undef __GetDispatchModule
        #define SOMGD_GetDispatchModule 1
    #else
        #define _GetDispatchModule ODBaseDispatcher_GetDispatchModule
    #endif /* _GetDispatchModule */
#endif /* SOMGD_GetDispatchModule */

/*
 * New Method: RemoveDispatchModule
 */
typedef void   (SOMLINK * somTD_ODBaseDispatcher_RemoveDispatchModule)(ODBaseDispatcher *somSelf, Environment *ev,
		ODEventType eventType);
#define somMD_ODBaseDispatcher_RemoveDispatchModule "::ODBaseDispatcher::RemoveDispatchModule"
#define ODBaseDispatcher_RemoveDispatchModule(somSelf,ev,eventType) \
    (SOM_Resolve(somSelf, ODBaseDispatcher, RemoveDispatchModule) \
	(somSelf,ev,eventType))
#ifndef SOMGD_RemoveDispatchModule
    #if (defined(_RemoveDispatchModule) || defined(__RemoveDispatchModule))
        #undef _RemoveDispatchModule
        #undef __RemoveDispatchModule
        #define SOMGD_RemoveDispatchModule 1
    #else
        #define _RemoveDispatchModule ODBaseDispatcher_RemoveDispatchModule
    #endif /* _RemoveDispatchModule */
#endif /* SOMGD_RemoveDispatchModule */

/*
 * New Method: AddMonitor
 */
typedef void   (SOMLINK * somTD_ODBaseDispatcher_AddMonitor)(ODBaseDispatcher *somSelf, Environment *ev,
		ODEventType eventType,
		ODDispatchModule* dispatchModule);
#define somMD_ODBaseDispatcher_AddMonitor "::ODBaseDispatcher::AddMonitor"
#define ODBaseDispatcher_AddMonitor(somSelf,ev,eventType,dispatchModule) \
    (SOM_Resolve(somSelf, ODBaseDispatcher, AddMonitor) \
	(somSelf,ev,eventType,dispatchModule))
#ifndef SOMGD_AddMonitor
    #if (defined(_AddMonitor) || defined(__AddMonitor))
        #undef _AddMonitor
        #undef __AddMonitor
        #define SOMGD_AddMonitor 1
    #else
        #define _AddMonitor ODBaseDispatcher_AddMonitor
    #endif /* _AddMonitor */
#endif /* SOMGD_AddMonitor */

/*
 * New Method: RemoveMonitor
 */
typedef void   (SOMLINK * somTD_ODBaseDispatcher_RemoveMonitor)(ODBaseDispatcher *somSelf, Environment *ev,
		ODEventType eventType,
		ODDispatchModule* dispatchModule);
#define somMD_ODBaseDispatcher_RemoveMonitor "::ODBaseDispatcher::RemoveMonitor"
#define ODBaseDispatcher_RemoveMonitor(somSelf,ev,eventType,dispatchModule) \
    (SOM_Resolve(somSelf, ODBaseDispatcher, RemoveMonitor) \
	(somSelf,ev,eventType,dispatchModule))
#ifndef SOMGD_RemoveMonitor
    #if (defined(_RemoveMonitor) || defined(__RemoveMonitor))
        #undef _RemoveMonitor
        #undef __RemoveMonitor
        #define SOMGD_RemoveMonitor 1
    #else
        #define _RemoveMonitor ODBaseDispatcher_RemoveMonitor
    #endif /* _RemoveMonitor */
#endif /* SOMGD_RemoveMonitor */

/*
 * New Method: Dispatch
 */
typedef ODBoolean   (SOMLINK * somTD_ODBaseDispatcher_Dispatch)(ODBaseDispatcher *somSelf, Environment *ev,
		ODEventData* eventData);
#define somMD_ODBaseDispatcher_Dispatch "::ODBaseDispatcher::Dispatch"
#define ODBaseDispatcher_Dispatch(somSelf,ev,eventData) \
    (SOM_Resolve(somSelf, ODBaseDispatcher, Dispatch) \
	(somSelf,ev,eventData))
#ifndef SOMGD_Dispatch
    #if (defined(_Dispatch) || defined(__Dispatch))
        #undef _Dispatch
        #undef __Dispatch
        #define SOMGD_Dispatch 1
    #else
        #define _Dispatch ODBaseDispatcher_Dispatch
    #endif /* _Dispatch */
#endif /* SOMGD_Dispatch */

/*
 * New Method: Exit
 */
typedef void   (SOMLINK * somTD_ODBaseDispatcher_Exit)(ODBaseDispatcher *somSelf, Environment *ev);
#define somMD_ODBaseDispatcher_Exit "::ODBaseDispatcher::Exit"
#define ODBaseDispatcher_Exit(somSelf,ev) \
    (SOM_Resolve(somSelf, ODBaseDispatcher, Exit) \
	(somSelf,ev))
#ifndef SOMGD_Exit
    #if (defined(_Exit) || defined(__Exit))
        #undef _Exit
        #undef __Exit
        #define SOMGD_Exit 1
    #else
        #define _Exit ODBaseDispatcher_Exit
    #endif /* _Exit */
#endif /* SOMGD_Exit */

/*
 * New Method: ShouldExit
 */
typedef ODBoolean   (SOMLINK * somTD_ODBaseDispatcher_ShouldExit)(ODBaseDispatcher *somSelf, Environment *ev);
#define somMD_ODBaseDispatcher_ShouldExit "::ODBaseDispatcher::ShouldExit"
#define ODBaseDispatcher_ShouldExit(somSelf,ev) \
    (SOM_Resolve(somSelf, ODBaseDispatcher, ShouldExit) \
	(somSelf,ev))
#ifndef SOMGD_ShouldExit
    #if (defined(_ShouldExit) || defined(__ShouldExit))
        #undef _ShouldExit
        #undef __ShouldExit
        #define SOMGD_ShouldExit 1
    #else
        #define _ShouldExit ODBaseDispatcher_ShouldExit
    #endif /* _ShouldExit */
#endif /* SOMGD_ShouldExit */

/*
 * New Method: InitBaseDispatcher
 */
typedef void   (SOMLINK * somTD_ODBaseDispatcher_InitBaseDispatcher)(ODBaseDispatcher *somSelf, Environment *ev,
		ODSession* session);
#define somMD_ODBaseDispatcher_InitBaseDispatcher "::ODBaseDispatcher::InitBaseDispatcher"
#define ODBaseDispatcher_InitBaseDispatcher(somSelf,ev,session) \
    (SOM_Resolve(somSelf, ODBaseDispatcher, InitBaseDispatcher) \
	(somSelf,ev,session))
#ifndef SOMGD_InitBaseDispatcher
    #if (defined(_InitBaseDispatcher) || defined(__InitBaseDispatcher))
        #undef _InitBaseDispatcher
        #undef __InitBaseDispatcher
        #define SOMGD_InitBaseDispatcher 1
    #else
        #define _InitBaseDispatcher ODBaseDispatcher_InitBaseDispatcher
    #endif /* _InitBaseDispatcher */
#endif /* SOMGD_InitBaseDispatcher */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODBaseDispatcher_InitObject ODObject_InitObject
#define ODBaseDispatcher_IsInitialized ODObject_IsInitialized
#define ODBaseDispatcher_HasExtension ODObject_HasExtension
#define ODBaseDispatcher_GetExtension ODObject_GetExtension
#define ODBaseDispatcher_ReleaseExtension ODObject_ReleaseExtension
#define ODBaseDispatcher_Purge ODObject_Purge
#define ODBaseDispatcher_IsEqualTo ODObject_IsEqualTo
#define ODBaseDispatcher_SubClassResponsibility ODObject_SubClassResponsibility
#define ODBaseDispatcher_somDefaultInit SOMObject_somDefaultInit
#define ODBaseDispatcher_somDestruct SOMObject_somDestruct
#define ODBaseDispatcher_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODBaseDispatcher_somDefaultAssign SOMObject_somDefaultAssign
#define ODBaseDispatcher_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODBaseDispatcher_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODBaseDispatcher_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODBaseDispatcher_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODBaseDispatcher_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODBaseDispatcher_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODBaseDispatcher_somFree SOMObject_somFree
#define ODBaseDispatcher_somGetClass SOMObject_somGetClass
#define ODBaseDispatcher_somGetClassName SOMObject_somGetClassName
#define ODBaseDispatcher_somGetSize SOMObject_somGetSize
#define ODBaseDispatcher_somIsA SOMObject_somIsA
#define ODBaseDispatcher_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODBaseDispatcher_somRespondsTo SOMObject_somRespondsTo
#define ODBaseDispatcher_somDispatch SOMObject_somDispatch
#define ODBaseDispatcher_somClassDispatch SOMObject_somClassDispatch
#define ODBaseDispatcher_somCastObj SOMObject_somCastObj
#define ODBaseDispatcher_somResetObj SOMObject_somResetObj
#define ODBaseDispatcher_somDispatchV SOMObject_somDispatchV
#define ODBaseDispatcher_somDispatchL SOMObject_somDispatchL
#define ODBaseDispatcher_somDispatchA SOMObject_somDispatchA
#define ODBaseDispatcher_somDispatchD SOMObject_somDispatchD
#define ODBaseDispatcher_somPrintSelf SOMObject_somPrintSelf
#define ODBaseDispatcher_somDumpSelf SOMObject_somDumpSelf
#define ODBaseDispatcher_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODBaseDispatcher_h */
