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

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


#ifndef SOM_ODObjectSpec_h
#define SOM_ODObjectSpec_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 ODObjectSpecClassData (*resolve_ODObjectSpecClassData())
#define ODObjectSpecCClassData (*resolve_ODObjectSpecCClassData())

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

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

#define ODObjectSpec_MajorVersion 0
#define ODObjectSpec_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODObjectSpecNewClass c
#define ODObjectSpecClassData d
#define ODObjectSpecCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODObjectSpec_classObj ODObjectSpecClassData.classObject
#define _ODObjectSpec ODObjectSpec_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODObjectSpecClassDataStructure {
	SOMClass *classObject;
	somMToken somInit;
	somMToken somUninit;
	somMToken InitODObjectSpec;
}  _ODObjectSpecClassData;
SOMEXTERN struct ODObjectSpecClassDataStructure * SOMLINK resolve_ODObjectSpecClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODObjectSpecCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODObjectSpecCClassData;
SOMEXTERN struct ODObjectSpecCClassDataStructure * SOMLINK resolve_ODObjectSpecCClassData(void);

/*
 * New and Renew macros for ODObjectSpec
 */
#define ODObjectSpecNew() \
   (_somNew(_ODObjectSpec ? _ODObjectSpec : ODObjectSpecNewClass(ODObjectSpec_MajorVersion, ODObjectSpec_MinorVersion)))
#define ODObjectSpecRenew(buf) \
   (_somRenew(_ODObjectSpec ? _ODObjectSpec : ODObjectSpecNewClass(ODObjectSpec_MajorVersion, ODObjectSpec_MinorVersion), buf))

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

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

/*
 * New Method: InitODObjectSpec
 */
typedef void   (SOMLINK * somTD_ODObjectSpec_InitODObjectSpec)(ODObjectSpec *somSelf, Environment *ev);
#define somMD_ODObjectSpec_InitODObjectSpec "::ODObjectSpec::InitODObjectSpec"
#define ODObjectSpec_InitODObjectSpec(somSelf,ev) \
    (SOM_Resolve(somSelf, ODObjectSpec, InitODObjectSpec) \
	(somSelf,ev))
#ifndef SOMGD_InitODObjectSpec
    #if (defined(_InitODObjectSpec) || defined(__InitODObjectSpec))
        #undef _InitODObjectSpec
        #undef __InitODObjectSpec
        #define SOMGD_InitODObjectSpec 1
    #else
        #define _InitODObjectSpec ODObjectSpec_InitODObjectSpec
    #endif /* _InitODObjectSpec */
#endif /* SOMGD_InitODObjectSpec */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODObjectSpec_InitODDesc ODDesc_InitODDesc
#define ODObjectSpec_GetAEDesc ODDesc_GetAEDesc
#define ODObjectSpec_SetAEDesc ODDesc_SetAEDesc
#define ODObjectSpec_SetHadToAllocate ODDesc_SetHadToAllocate
#define ODObjectSpec_InitObject ODObject_InitObject
#define ODObjectSpec_IsInitialized ODObject_IsInitialized
#define ODObjectSpec_HasExtension ODObject_HasExtension
#define ODObjectSpec_GetExtension ODObject_GetExtension
#define ODObjectSpec_ReleaseExtension ODObject_ReleaseExtension
#define ODObjectSpec_Purge ODObject_Purge
#define ODObjectSpec_IsEqualTo ODObject_IsEqualTo
#define ODObjectSpec_SubClassResponsibility ODObject_SubClassResponsibility
#define ODObjectSpec_somDefaultInit SOMObject_somDefaultInit
#define ODObjectSpec_somDestruct SOMObject_somDestruct
#define ODObjectSpec_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODObjectSpec_somDefaultAssign SOMObject_somDefaultAssign
#define ODObjectSpec_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODObjectSpec_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODObjectSpec_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODObjectSpec_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODObjectSpec_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODObjectSpec_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODObjectSpec_somFree SOMObject_somFree
#define ODObjectSpec_somGetClass SOMObject_somGetClass
#define ODObjectSpec_somGetClassName SOMObject_somGetClassName
#define ODObjectSpec_somGetSize SOMObject_somGetSize
#define ODObjectSpec_somIsA SOMObject_somIsA
#define ODObjectSpec_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODObjectSpec_somRespondsTo SOMObject_somRespondsTo
#define ODObjectSpec_somDispatch SOMObject_somDispatch
#define ODObjectSpec_somClassDispatch SOMObject_somClassDispatch
#define ODObjectSpec_somCastObj SOMObject_somCastObj
#define ODObjectSpec_somResetObj SOMObject_somResetObj
#define ODObjectSpec_somDispatchV SOMObject_somDispatchV
#define ODObjectSpec_somDispatchL SOMObject_somDispatchL
#define ODObjectSpec_somDispatchA SOMObject_somDispatchA
#define ODObjectSpec_somDispatchD SOMObject_somDispatchD
#define ODObjectSpec_somPrintSelf SOMObject_somPrintSelf
#define ODObjectSpec_somDumpSelf SOMObject_somDumpSelf
#define ODObjectSpec_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODObjectSpec_h */
