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

/*
 * 
 *  Theory of Operation
 * 
 * 
 * 
 *  Classes defined in this interface
 * 
 */


#ifndef SOM_ScriptingObject_h
#define SOM_ScriptingObject_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 ScriptingObjectClassData (*resolve_ScriptingObjectClassData())
#define ScriptingObjectCClassData (*resolve_ScriptingObjectCClassData())

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

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

#define ScriptingObject_MajorVersion 0
#define ScriptingObject_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ScriptingObjectNewClass c
#define ScriptingObjectClassData d
#define ScriptingObjectCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ScriptingObject_classObj ScriptingObjectClassData.classObject
#define _ScriptingObject ScriptingObject_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct ScriptingObjectClassDataStructure {
	SOMClass *classObject;
	somMToken InitScriptingObject;
}  _ScriptingObjectClassData;
SOMEXTERN struct ScriptingObjectClassDataStructure * SOMLINK resolve_ScriptingObjectClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ScriptingObjectCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ScriptingObjectCClassData;
SOMEXTERN struct ScriptingObjectCClassDataStructure * SOMLINK resolve_ScriptingObjectCClassData(void);

/*
 * New and Renew macros for ScriptingObject
 */
#define ScriptingObjectNew() \
   (_somNew(_ScriptingObject ? _ScriptingObject : ScriptingObjectNewClass(ScriptingObject_MajorVersion, ScriptingObject_MinorVersion)))
#define ScriptingObjectRenew(buf) \
   (_somRenew(_ScriptingObject ? _ScriptingObject : ScriptingObjectNewClass(ScriptingObject_MajorVersion, ScriptingObject_MinorVersion), buf))

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

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

/*
 * New Method: InitScriptingObject
 */
typedef void   (SOMLINK * somTD_ScriptingObject_InitScriptingObject)(ScriptingObject *somSelf, Environment *ev);
#define somMD_ScriptingObject_InitScriptingObject "::ScriptingObject::InitScriptingObject"
#define ScriptingObject_InitScriptingObject(somSelf,ev) \
    (SOM_Resolve(somSelf, ScriptingObject, InitScriptingObject) \
	(somSelf,ev))
#ifndef SOMGD_InitScriptingObject
    #if (defined(_InitScriptingObject) || defined(__InitScriptingObject))
        #undef _InitScriptingObject
        #undef __InitScriptingObject
        #define SOMGD_InitScriptingObject 1
    #else
        #define _InitScriptingObject ScriptingObject_InitScriptingObject
    #endif /* _InitScriptingObject */
#endif /* SOMGD_InitScriptingObject */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ScriptingObject_InitObject ODObject_InitObject
#define ScriptingObject_IsInitialized ODObject_IsInitialized
#define ScriptingObject_HasExtension ODObject_HasExtension
#define ScriptingObject_GetExtension ODObject_GetExtension
#define ScriptingObject_ReleaseExtension ODObject_ReleaseExtension
#define ScriptingObject_Purge ODObject_Purge
#define ScriptingObject_IsEqualTo ODObject_IsEqualTo
#define ScriptingObject_SubClassResponsibility ODObject_SubClassResponsibility
#define ScriptingObject_somDefaultInit SOMObject_somDefaultInit
#define ScriptingObject_somDestruct SOMObject_somDestruct
#define ScriptingObject_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ScriptingObject_somDefaultAssign SOMObject_somDefaultAssign
#define ScriptingObject_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ScriptingObject_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ScriptingObject_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ScriptingObject_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ScriptingObject_somDefaultVAssign SOMObject_somDefaultVAssign
#define ScriptingObject_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ScriptingObject_somFree SOMObject_somFree
#define ScriptingObject_somGetClass SOMObject_somGetClass
#define ScriptingObject_somGetClassName SOMObject_somGetClassName
#define ScriptingObject_somGetSize SOMObject_somGetSize
#define ScriptingObject_somIsA SOMObject_somIsA
#define ScriptingObject_somIsInstanceOf SOMObject_somIsInstanceOf
#define ScriptingObject_somRespondsTo SOMObject_somRespondsTo
#define ScriptingObject_somDispatch SOMObject_somDispatch
#define ScriptingObject_somClassDispatch SOMObject_somClassDispatch
#define ScriptingObject_somCastObj SOMObject_somCastObj
#define ScriptingObject_somResetObj SOMObject_somResetObj
#define ScriptingObject_somDispatchV SOMObject_somDispatchV
#define ScriptingObject_somDispatchL SOMObject_somDispatchL
#define ScriptingObject_somDispatchA SOMObject_somDispatchA
#define ScriptingObject_somDispatchD SOMObject_somDispatchD
#define ScriptingObject_somPrintSelf SOMObject_somPrintSelf
#define ScriptingObject_somDumpSelf SOMObject_somDumpSelf
#define ScriptingObject_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ScriptingObject_h */
