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

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


#ifndef SOM_ODAppleEvent_h
#define SOM_ODAppleEvent_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 ODAppleEventClassData (*resolve_ODAppleEventClassData())
#define ODAppleEventCClassData (*resolve_ODAppleEventCClassData())

/*
 * Define the class name as an object type
 */
#ifndef ODAppleEvent
#define ODAppleEvent SOMObject
#endif
#include <ODRecord.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 ODDesc
    #define ODDesc SOMObject
#endif /* ODDesc */
#ifndef ODDescList
    #define ODDescList SOMObject
#endif /* ODDescList */
#ifndef ODRecord
    #define ODRecord SOMObject
#endif /* ODRecord */
#ifndef ODAppleEvent
    #define ODAppleEvent SOMObject
#endif /* ODAppleEvent */

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

#define ODAppleEvent_MajorVersion 0
#define ODAppleEvent_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODAppleEventNewClass c
#define ODAppleEventClassData d
#define ODAppleEventCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODAppleEvent_classObj ODAppleEventClassData.classObject
#define _ODAppleEvent ODAppleEvent_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODAppleEventClassDataStructure {
	SOMClass *classObject;
	somMToken somInit;
	somMToken somUninit;
	somMToken InitODAppleEvent;
}  _ODAppleEventClassData;
SOMEXTERN struct ODAppleEventClassDataStructure * SOMLINK resolve_ODAppleEventClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODAppleEventCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODAppleEventCClassData;
SOMEXTERN struct ODAppleEventCClassDataStructure * SOMLINK resolve_ODAppleEventCClassData(void);

/*
 * New and Renew macros for ODAppleEvent
 */
#define ODAppleEventNew() \
   (_somNew(_ODAppleEvent ? _ODAppleEvent : ODAppleEventNewClass(ODAppleEvent_MajorVersion, ODAppleEvent_MinorVersion)))
#define ODAppleEventRenew(buf) \
   (_somRenew(_ODAppleEvent ? _ODAppleEvent : ODAppleEventNewClass(ODAppleEvent_MajorVersion, ODAppleEvent_MinorVersion), buf))

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

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

/*
 * New Method: InitODAppleEvent
 */
typedef void   (SOMLINK * somTD_ODAppleEvent_InitODAppleEvent)(ODAppleEvent *somSelf, Environment *ev);
#define somMD_ODAppleEvent_InitODAppleEvent "::ODAppleEvent::InitODAppleEvent"
#define ODAppleEvent_InitODAppleEvent(somSelf,ev) \
    (SOM_Resolve(somSelf, ODAppleEvent, InitODAppleEvent) \
	(somSelf,ev))
#ifndef SOMGD_InitODAppleEvent
    #if (defined(_InitODAppleEvent) || defined(__InitODAppleEvent))
        #undef _InitODAppleEvent
        #undef __InitODAppleEvent
        #define SOMGD_InitODAppleEvent 1
    #else
        #define _InitODAppleEvent ODAppleEvent_InitODAppleEvent
    #endif /* _InitODAppleEvent */
#endif /* SOMGD_InitODAppleEvent */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODAppleEvent_InitODRecord ODRecord_InitODRecord
#define ODAppleEvent_InitODDescList ODDescList_InitODDescList
#define ODAppleEvent_InitODDesc ODDesc_InitODDesc
#define ODAppleEvent_GetAEDesc ODDesc_GetAEDesc
#define ODAppleEvent_SetAEDesc ODDesc_SetAEDesc
#define ODAppleEvent_SetHadToAllocate ODDesc_SetHadToAllocate
#define ODAppleEvent_InitObject ODObject_InitObject
#define ODAppleEvent_IsInitialized ODObject_IsInitialized
#define ODAppleEvent_HasExtension ODObject_HasExtension
#define ODAppleEvent_GetExtension ODObject_GetExtension
#define ODAppleEvent_ReleaseExtension ODObject_ReleaseExtension
#define ODAppleEvent_Purge ODObject_Purge
#define ODAppleEvent_IsEqualTo ODObject_IsEqualTo
#define ODAppleEvent_SubClassResponsibility ODObject_SubClassResponsibility
#define ODAppleEvent_somDefaultInit SOMObject_somDefaultInit
#define ODAppleEvent_somDestruct SOMObject_somDestruct
#define ODAppleEvent_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODAppleEvent_somDefaultAssign SOMObject_somDefaultAssign
#define ODAppleEvent_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODAppleEvent_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODAppleEvent_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODAppleEvent_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODAppleEvent_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODAppleEvent_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODAppleEvent_somFree SOMObject_somFree
#define ODAppleEvent_somGetClass SOMObject_somGetClass
#define ODAppleEvent_somGetClassName SOMObject_somGetClassName
#define ODAppleEvent_somGetSize SOMObject_somGetSize
#define ODAppleEvent_somIsA SOMObject_somIsA
#define ODAppleEvent_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODAppleEvent_somRespondsTo SOMObject_somRespondsTo
#define ODAppleEvent_somDispatch SOMObject_somDispatch
#define ODAppleEvent_somClassDispatch SOMObject_somClassDispatch
#define ODAppleEvent_somCastObj SOMObject_somCastObj
#define ODAppleEvent_somResetObj SOMObject_somResetObj
#define ODAppleEvent_somDispatchV SOMObject_somDispatchV
#define ODAppleEvent_somDispatchL SOMObject_somDispatchL
#define ODAppleEvent_somDispatchA SOMObject_somDispatchA
#define ODAppleEvent_somDispatchD SOMObject_somDispatchD
#define ODAppleEvent_somPrintSelf SOMObject_somPrintSelf
#define ODAppleEvent_somDumpSelf SOMObject_somDumpSelf
#define ODAppleEvent_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODAppleEvent_h */
