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

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


#ifndef SOM_ODDispatchModule_h
#define SOM_ODDispatchModule_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 ODDispatchModuleClassData (*resolve_ODDispatchModuleClassData())
#define ODDispatchModuleCClassData (*resolve_ODDispatchModuleCClassData())

/*
 * Define the class name as an object type
 */
#ifndef ODDispatchModule
#define ODDispatchModule 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 ODDispatchModule
    #define ODDispatchModule SOMObject
#endif /* ODDispatchModule */
#ifndef ODSession
    #define ODSession SOMObject
#endif /* ODSession */

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

#define ODDispatchModule_MajorVersion 0
#define ODDispatchModule_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODDispatchModuleNewClass c
#define ODDispatchModuleClassData d
#define ODDispatchModuleCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODDispatchModule_classObj ODDispatchModuleClassData.classObject
#define _ODDispatchModule ODDispatchModule_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODDispatchModuleClassDataStructure {
	SOMClass *classObject;
	somMToken InitDispatchModule;
	somMToken Dispatch;
}  _ODDispatchModuleClassData;
SOMEXTERN struct ODDispatchModuleClassDataStructure * SOMLINK resolve_ODDispatchModuleClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODDispatchModuleCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODDispatchModuleCClassData;
SOMEXTERN struct ODDispatchModuleCClassDataStructure * SOMLINK resolve_ODDispatchModuleCClassData(void);

/*
 * New and Renew macros for ODDispatchModule
 */
#define ODDispatchModuleNew() \
   (_somNew(_ODDispatchModule ? _ODDispatchModule : ODDispatchModuleNewClass(ODDispatchModule_MajorVersion, ODDispatchModule_MinorVersion)))
#define ODDispatchModuleRenew(buf) \
   (_somRenew(_ODDispatchModule ? _ODDispatchModule : ODDispatchModuleNewClass(ODDispatchModule_MajorVersion, ODDispatchModule_MinorVersion), buf))

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

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

/*
 * Override method: Purge
 */
#define ODDispatchModule_Purge(somSelf,ev,size) \
	ODObject_Purge(somSelf,ev,size)

/*
 * New Method: InitDispatchModule
 */
typedef void   (SOMLINK * somTD_ODDispatchModule_InitDispatchModule)(ODDispatchModule *somSelf, Environment *ev,
		ODSession* session);
#define somMD_ODDispatchModule_InitDispatchModule "::ODDispatchModule::InitDispatchModule"
#define ODDispatchModule_InitDispatchModule(somSelf,ev,session) \
    (SOM_Resolve(somSelf, ODDispatchModule, InitDispatchModule) \
	(somSelf,ev,session))
#ifndef SOMGD_InitDispatchModule
    #if (defined(_InitDispatchModule) || defined(__InitDispatchModule))
        #undef _InitDispatchModule
        #undef __InitDispatchModule
        #define SOMGD_InitDispatchModule 1
    #else
        #define _InitDispatchModule ODDispatchModule_InitDispatchModule
    #endif /* _InitDispatchModule */
#endif /* SOMGD_InitDispatchModule */

/*
 * New Method: Dispatch
 */
typedef ODBoolean   (SOMLINK * somTD_ODDispatchModule_Dispatch)(ODDispatchModule *somSelf, Environment *ev,
		ODEventData* event);
#define somMD_ODDispatchModule_Dispatch "::ODDispatchModule::Dispatch"
#define ODDispatchModule_Dispatch(somSelf,ev,event) \
    (SOM_Resolve(somSelf, ODDispatchModule, Dispatch) \
	(somSelf,ev,event))
#ifndef SOMGD_Dispatch
    #if (defined(_Dispatch) || defined(__Dispatch))
        #undef _Dispatch
        #undef __Dispatch
        #define SOMGD_Dispatch 1
    #else
        #define _Dispatch ODDispatchModule_Dispatch
    #endif /* _Dispatch */
#endif /* SOMGD_Dispatch */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODDispatchModule_InitObject ODObject_InitObject
#define ODDispatchModule_IsInitialized ODObject_IsInitialized
#define ODDispatchModule_HasExtension ODObject_HasExtension
#define ODDispatchModule_GetExtension ODObject_GetExtension
#define ODDispatchModule_ReleaseExtension ODObject_ReleaseExtension
#define ODDispatchModule_IsEqualTo ODObject_IsEqualTo
#define ODDispatchModule_SubClassResponsibility ODObject_SubClassResponsibility
#define ODDispatchModule_somDefaultInit SOMObject_somDefaultInit
#define ODDispatchModule_somDestruct SOMObject_somDestruct
#define ODDispatchModule_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODDispatchModule_somDefaultAssign SOMObject_somDefaultAssign
#define ODDispatchModule_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODDispatchModule_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODDispatchModule_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODDispatchModule_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODDispatchModule_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODDispatchModule_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODDispatchModule_somFree SOMObject_somFree
#define ODDispatchModule_somGetClass SOMObject_somGetClass
#define ODDispatchModule_somGetClassName SOMObject_somGetClassName
#define ODDispatchModule_somGetSize SOMObject_somGetSize
#define ODDispatchModule_somIsA SOMObject_somIsA
#define ODDispatchModule_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODDispatchModule_somRespondsTo SOMObject_somRespondsTo
#define ODDispatchModule_somDispatch SOMObject_somDispatch
#define ODDispatchModule_somClassDispatch SOMObject_somClassDispatch
#define ODDispatchModule_somCastObj SOMObject_somCastObj
#define ODDispatchModule_somResetObj SOMObject_somResetObj
#define ODDispatchModule_somDispatchV SOMObject_somDispatchV
#define ODDispatchModule_somDispatchL SOMObject_somDispatchL
#define ODDispatchModule_somDispatchA SOMObject_somDispatchA
#define ODDispatchModule_somDispatchD SOMObject_somDispatchD
#define ODDispatchModule_somPrintSelf SOMObject_somPrintSelf
#define ODDispatchModule_somDumpSelf SOMObject_somDumpSelf
#define ODDispatchModule_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODDispatchModule_h */
