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

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


#ifndef SOM_ODTranslation_h
#define SOM_ODTranslation_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 ODTranslationClassData (*resolve_ODTranslationClassData())
#define ODTranslationCClassData (*resolve_ODTranslationCClassData())

/*
 * Define the class name as an object type
 */
#ifndef ODTranslation
#define ODTranslation SOMObject
#endif
#include <TransltB.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 ODBaseTranslation
    #define ODBaseTranslation SOMObject
#endif /* ODBaseTranslation */
#ifndef ODTypeList
    #define ODTypeList SOMObject
#endif /* ODTypeList */
#ifndef ODStorageUnitView
    #define ODStorageUnitView SOMObject
#endif /* ODStorageUnitView */
#ifndef ODTranslation
    #define ODTranslation SOMObject
#endif /* ODTranslation */

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

#define ODTranslation_MajorVersion 0
#define ODTranslation_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODTranslationNewClass c
#define ODTranslationClassData d
#define ODTranslationCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODTranslation_classObj ODTranslationClassData.classObject
#define _ODTranslation ODTranslation_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODTranslationClassDataStructure {
	SOMClass *classObject;
}  _ODTranslationClassData;
SOMEXTERN struct ODTranslationClassDataStructure * SOMLINK resolve_ODTranslationClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODTranslationCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODTranslationCClassData;
SOMEXTERN struct ODTranslationCClassDataStructure * SOMLINK resolve_ODTranslationCClassData(void);

/*
 * New and Renew macros for ODTranslation
 */
#define ODTranslationNew() \
   (_somNew(_ODTranslation ? _ODTranslation : ODTranslationNewClass(ODTranslation_MajorVersion, ODTranslation_MinorVersion)))
#define ODTranslationRenew(buf) \
   (_somRenew(_ODTranslation ? _ODTranslation : ODTranslationNewClass(ODTranslation_MajorVersion, ODTranslation_MinorVersion), buf))

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

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

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

/*
 * Override method: InitTranslation
 */
#define ODTranslation_InitTranslation(somSelf,ev) \
	ODBaseTranslation_InitTranslation(somSelf,ev)

/*
 * Override method: CanTranslate
 */
#define ODTranslation_CanTranslate(somSelf,ev,fromType) \
	ODBaseTranslation_CanTranslate(somSelf,ev,fromType)

/*
 * Override method: GetTranslationOf
 */
#define ODTranslation_GetTranslationOf(somSelf,ev,fromType) \
	ODBaseTranslation_GetTranslationOf(somSelf,ev,fromType)

/*
 * Override method: TranslateView
 */
#define ODTranslation_TranslateView(somSelf,ev,fromView,toView) \
	ODBaseTranslation_TranslateView(somSelf,ev,fromView,toView)

/*
 * Override method: Translate
 */
#define ODTranslation_Translate(somSelf,ev,fromData,fromDataSize,fromType,toType,toData,toDataSize) \
	ODBaseTranslation_Translate(somSelf,ev,fromData,fromDataSize,fromType,toType,toData,toDataSize)

/*
 * Override method: GetISOTypeFromPlatformType
 */
#define ODTranslation_GetISOTypeFromPlatformType(somSelf,ev,platformType,typeSpace) \
	ODBaseTranslation_GetISOTypeFromPlatformType(somSelf,ev,platformType,typeSpace)

/*
 * Override method: GetPlatformTypeFromISOType
 */
#define ODTranslation_GetPlatformTypeFromISOType(somSelf,ev,type) \
	ODBaseTranslation_GetPlatformTypeFromISOType(somSelf,ev,type)
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODTranslation_InitObject ODObject_InitObject
#define ODTranslation_IsInitialized ODObject_IsInitialized
#define ODTranslation_HasExtension ODObject_HasExtension
#define ODTranslation_GetExtension ODObject_GetExtension
#define ODTranslation_ReleaseExtension ODObject_ReleaseExtension
#define ODTranslation_IsEqualTo ODObject_IsEqualTo
#define ODTranslation_SubClassResponsibility ODObject_SubClassResponsibility
#define ODTranslation_somDefaultInit SOMObject_somDefaultInit
#define ODTranslation_somDestruct SOMObject_somDestruct
#define ODTranslation_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODTranslation_somDefaultAssign SOMObject_somDefaultAssign
#define ODTranslation_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODTranslation_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODTranslation_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODTranslation_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODTranslation_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODTranslation_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODTranslation_somFree SOMObject_somFree
#define ODTranslation_somGetClass SOMObject_somGetClass
#define ODTranslation_somGetClassName SOMObject_somGetClassName
#define ODTranslation_somGetSize SOMObject_somGetSize
#define ODTranslation_somIsA SOMObject_somIsA
#define ODTranslation_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODTranslation_somRespondsTo SOMObject_somRespondsTo
#define ODTranslation_somDispatch SOMObject_somDispatch
#define ODTranslation_somClassDispatch SOMObject_somClassDispatch
#define ODTranslation_somCastObj SOMObject_somCastObj
#define ODTranslation_somResetObj SOMObject_somResetObj
#define ODTranslation_somDispatchV SOMObject_somDispatchV
#define ODTranslation_somDispatchL SOMObject_somDispatchL
#define ODTranslation_somDispatchA SOMObject_somDispatchA
#define ODTranslation_somDispatchD SOMObject_somDispatchD
#define ODTranslation_somPrintSelf SOMObject_somPrintSelf
#define ODTranslation_somDumpSelf SOMObject_somDumpSelf
#define ODTranslation_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODTranslation_h */
