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

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


#ifndef SOM_ODDesc_h
#define SOM_ODDesc_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 ODDescClassData (*resolve_ODDescClassData())
#define ODDescCClassData (*resolve_ODDescCClassData())

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

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

#define ODDesc_MajorVersion 0
#define ODDesc_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODDescNewClass c
#define ODDescClassData d
#define ODDescCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODDesc_classObj ODDescClassData.classObject
#define _ODDesc ODDesc_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODDescClassDataStructure {
	SOMClass *classObject;
	somMToken somInit;
	somMToken somUninit;
	somMToken InitODDesc;
	somMToken GetAEDesc;
	somMToken SetAEDesc;
	somMToken SetHadToAllocate;
}  _ODDescClassData;
SOMEXTERN struct ODDescClassDataStructure * SOMLINK resolve_ODDescClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODDescCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODDescCClassData;
SOMEXTERN struct ODDescCClassDataStructure * SOMLINK resolve_ODDescCClassData(void);

/*
 * New and Renew macros for ODDesc
 */
#define ODDescNew() \
   (_somNew(_ODDesc ? _ODDesc : ODDescNewClass(ODDesc_MajorVersion, ODDesc_MinorVersion)))
#define ODDescRenew(buf) \
   (_somRenew(_ODDesc ? _ODDesc : ODDescNewClass(ODDesc_MajorVersion, ODDesc_MinorVersion), buf))

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

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

/*
 * New Method: InitODDesc
 */
typedef void   (SOMLINK * somTD_ODDesc_InitODDesc)(ODDesc *somSelf, Environment *ev);
#define somMD_ODDesc_InitODDesc "::ODDesc::InitODDesc"
#define ODDesc_InitODDesc(somSelf,ev) \
    (SOM_Resolve(somSelf, ODDesc, InitODDesc) \
	(somSelf,ev))
#ifndef SOMGD_InitODDesc
    #if (defined(_InitODDesc) || defined(__InitODDesc))
        #undef _InitODDesc
        #undef __InitODDesc
        #define SOMGD_InitODDesc 1
    #else
        #define _InitODDesc ODDesc_InitODDesc
    #endif /* _InitODDesc */
#endif /* SOMGD_InitODDesc */

/*
 * New Method: GetAEDesc
 */
typedef AEDesc*   (SOMLINK * somTD_ODDesc_GetAEDesc)(ODDesc *somSelf, Environment *ev);
#define somMD_ODDesc_GetAEDesc "::ODDesc::GetAEDesc"
#define ODDesc_GetAEDesc(somSelf,ev) \
    (SOM_Resolve(somSelf, ODDesc, GetAEDesc) \
	(somSelf,ev))
#ifndef SOMGD_GetAEDesc
    #if (defined(_GetAEDesc) || defined(__GetAEDesc))
        #undef _GetAEDesc
        #undef __GetAEDesc
        #define SOMGD_GetAEDesc 1
    #else
        #define _GetAEDesc ODDesc_GetAEDesc
    #endif /* _GetAEDesc */
#endif /* SOMGD_GetAEDesc */

/*
 * New Method: SetAEDesc
 */
typedef void   (SOMLINK * somTD_ODDesc_SetAEDesc)(ODDesc *somSelf, Environment *ev,
		AEDesc* desc);
#define somMD_ODDesc_SetAEDesc "::ODDesc::SetAEDesc"
#define ODDesc_SetAEDesc(somSelf,ev,desc) \
    (SOM_Resolve(somSelf, ODDesc, SetAEDesc) \
	(somSelf,ev,desc))
#ifndef SOMGD_SetAEDesc
    #if (defined(_SetAEDesc) || defined(__SetAEDesc))
        #undef _SetAEDesc
        #undef __SetAEDesc
        #define SOMGD_SetAEDesc 1
    #else
        #define _SetAEDesc ODDesc_SetAEDesc
    #endif /* _SetAEDesc */
#endif /* SOMGD_SetAEDesc */

/*
 * New Method: SetHadToAllocate
 */
typedef void   (SOMLINK * somTD_ODDesc_SetHadToAllocate)(ODDesc *somSelf, Environment *ev);
#define somMD_ODDesc_SetHadToAllocate "::ODDesc::SetHadToAllocate"
#define ODDesc_SetHadToAllocate(somSelf,ev) \
    (SOM_Resolve(somSelf, ODDesc, SetHadToAllocate) \
	(somSelf,ev))
#ifndef SOMGD_SetHadToAllocate
    #if (defined(_SetHadToAllocate) || defined(__SetHadToAllocate))
        #undef _SetHadToAllocate
        #undef __SetHadToAllocate
        #define SOMGD_SetHadToAllocate 1
    #else
        #define _SetHadToAllocate ODDesc_SetHadToAllocate
    #endif /* _SetHadToAllocate */
#endif /* SOMGD_SetHadToAllocate */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODDesc_InitObject ODObject_InitObject
#define ODDesc_IsInitialized ODObject_IsInitialized
#define ODDesc_HasExtension ODObject_HasExtension
#define ODDesc_GetExtension ODObject_GetExtension
#define ODDesc_ReleaseExtension ODObject_ReleaseExtension
#define ODDesc_Purge ODObject_Purge
#define ODDesc_IsEqualTo ODObject_IsEqualTo
#define ODDesc_SubClassResponsibility ODObject_SubClassResponsibility
#define ODDesc_somDefaultInit SOMObject_somDefaultInit
#define ODDesc_somDestruct SOMObject_somDestruct
#define ODDesc_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODDesc_somDefaultAssign SOMObject_somDefaultAssign
#define ODDesc_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODDesc_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODDesc_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODDesc_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODDesc_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODDesc_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODDesc_somFree SOMObject_somFree
#define ODDesc_somGetClass SOMObject_somGetClass
#define ODDesc_somGetClassName SOMObject_somGetClassName
#define ODDesc_somGetSize SOMObject_somGetSize
#define ODDesc_somIsA SOMObject_somIsA
#define ODDesc_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODDesc_somRespondsTo SOMObject_somRespondsTo
#define ODDesc_somDispatch SOMObject_somDispatch
#define ODDesc_somClassDispatch SOMObject_somClassDispatch
#define ODDesc_somCastObj SOMObject_somCastObj
#define ODDesc_somResetObj SOMObject_somResetObj
#define ODDesc_somDispatchV SOMObject_somDispatchV
#define ODDesc_somDispatchL SOMObject_somDispatchL
#define ODDesc_somDispatchA SOMObject_somDispatchA
#define ODDesc_somDispatchD SOMObject_somDispatchD
#define ODDesc_somPrintSelf SOMObject_somPrintSelf
#define ODDesc_somDumpSelf SOMObject_somDumpSelf
#define ODDesc_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODDesc_h */
