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

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


#ifndef SOM_ODBentoContainer_h
#define SOM_ODBentoContainer_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 ODBentoContainerClassData (*resolve_ODBentoContainerClassData())
#define ODBentoContainerCClassData (*resolve_ODBentoContainerCClassData())

/*
 * Define the class name as an object type
 */
#ifndef ODBentoContainer
#define ODBentoContainer SOMObject
#endif
#include <ODCtr.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 ODRefCntObject
    #define ODRefCntObject SOMObject
#endif /* ODRefCntObject */
#ifndef ODStorageSystem
    #define ODStorageSystem SOMObject
#endif /* ODStorageSystem */
#ifndef ODContainer
    #define ODContainer SOMObject
#endif /* ODContainer */
#ifndef ODDocument
    #define ODDocument SOMObject
#endif /* ODDocument */
#ifndef ODBentoContainer
    #define ODBentoContainer SOMObject
#endif /* ODBentoContainer */

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

#define ODBentoContainer_MajorVersion 0
#define ODBentoContainer_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODBentoContainerNewClass c
#define ODBentoContainerClassData d
#define ODBentoContainerCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODBentoContainer_classObj ODBentoContainerClassData.classObject
#define _ODBentoContainer ODBentoContainer_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODBentoContainerClassDataStructure {
	SOMClass *classObject;
	somMToken GetCMContainer;
	somMToken GetHandlers;
	somMToken GetDirtyFlag;
	somMToken SetDirtyFlag;
	somMToken GetHeap;
	somMToken GetCMSession;
}  _ODBentoContainerClassData;
SOMEXTERN struct ODBentoContainerClassDataStructure * SOMLINK resolve_ODBentoContainerClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODBentoContainerCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODBentoContainerCClassData;
SOMEXTERN struct ODBentoContainerCClassDataStructure * SOMLINK resolve_ODBentoContainerCClassData(void);

/*
 * New and Renew macros for ODBentoContainer
 */
#define ODBentoContainerNew() \
   (_somNew(_ODBentoContainer ? _ODBentoContainer : ODBentoContainerNewClass(ODBentoContainer_MajorVersion, ODBentoContainer_MinorVersion)))
#define ODBentoContainerRenew(buf) \
   (_somRenew(_ODBentoContainer ? _ODBentoContainer : ODBentoContainerNewClass(ODBentoContainer_MajorVersion, ODBentoContainer_MinorVersion), buf))

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

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

/*
 * Override method: IncrementRefCount
 */
#define ODBentoContainer_IncrementRefCount(somSelf,ev) \
	ODRefCntObject_IncrementRefCount(somSelf,ev)

/*
 * Override method: Release
 */
#define ODBentoContainer_Release(somSelf,ev) \
	ODRefCntObject_Release(somSelf,ev)

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

/*
 * Override method: GetStorageSystem
 */
#define ODBentoContainer_GetStorageSystem(somSelf,ev) \
	ODContainer_GetStorageSystem(somSelf,ev)

/*
 * Override method: GetID
 */
#define ODBentoContainer_GetID(somSelf,ev) \
	ODContainer_GetID(somSelf,ev)

/*
 * Override method: GetName
 */
#define ODBentoContainer_GetName(somSelf,ev) \
	ODContainer_GetName(somSelf,ev)

/*
 * Override method: SetName
 */
#define ODBentoContainer_SetName(somSelf,ev,name) \
	ODContainer_SetName(somSelf,ev,name)

/*
 * Override method: GetDocument
 */
#define ODBentoContainer_GetDocument(somSelf,ev,id) \
	ODContainer_GetDocument(somSelf,ev,id)

/*
 * Override method: InitContainer
 */
#define ODBentoContainer_InitContainer(somSelf,ev,system,id) \
	ODContainer_InitContainer(somSelf,ev,system,id)

/*
 * Override method: Create
 */
#define ODBentoContainer_Create(somSelf,ev) \
	ODContainer_Create(somSelf,ev)

/*
 * Override method: Open
 */
#define ODBentoContainer_Open(somSelf,ev) \
	ODContainer_Open(somSelf,ev)

/*
 * Override method: Close
 */
#define ODBentoContainer_Close(somSelf,ev) \
	ODContainer_Close(somSelf,ev)

/*
 * Override method: ReleaseDocument
 */
#define ODBentoContainer_ReleaseDocument(somSelf,ev,document) \
	ODContainer_ReleaseDocument(somSelf,ev,document)

/*
 * New Method: GetCMContainer
 */
typedef CMContainer   (SOMLINK * somTD_ODBentoContainer_GetCMContainer)(ODBentoContainer *somSelf, Environment *ev);
#define somMD_ODBentoContainer_GetCMContainer "::ODBentoContainer::GetCMContainer"
#define ODBentoContainer_GetCMContainer(somSelf,ev) \
    (SOM_Resolve(somSelf, ODBentoContainer, GetCMContainer) \
	(somSelf,ev))
#ifndef SOMGD_GetCMContainer
    #if (defined(_GetCMContainer) || defined(__GetCMContainer))
        #undef _GetCMContainer
        #undef __GetCMContainer
        #define SOMGD_GetCMContainer 1
    #else
        #define _GetCMContainer ODBentoContainer_GetCMContainer
    #endif /* _GetCMContainer */
#endif /* SOMGD_GetCMContainer */

/*
 * New Method: GetHandlers
 */
typedef ODBentoHandlers*   (SOMLINK * somTD_ODBentoContainer_GetHandlers)(ODBentoContainer *somSelf, Environment *ev);
#define somMD_ODBentoContainer_GetHandlers "::ODBentoContainer::GetHandlers"
#define ODBentoContainer_GetHandlers(somSelf,ev) \
    (SOM_Resolve(somSelf, ODBentoContainer, GetHandlers) \
	(somSelf,ev))
#ifndef SOMGD_GetHandlers
    #if (defined(_GetHandlers) || defined(__GetHandlers))
        #undef _GetHandlers
        #undef __GetHandlers
        #define SOMGD_GetHandlers 1
    #else
        #define _GetHandlers ODBentoContainer_GetHandlers
    #endif /* _GetHandlers */
#endif /* SOMGD_GetHandlers */

/*
 * New Method: GetDirtyFlag
 */
typedef ODBoolean   (SOMLINK * somTD_ODBentoContainer_GetDirtyFlag)(ODBentoContainer *somSelf, Environment *ev);
#define somMD_ODBentoContainer_GetDirtyFlag "::ODBentoContainer::GetDirtyFlag"
#define ODBentoContainer_GetDirtyFlag(somSelf,ev) \
    (SOM_Resolve(somSelf, ODBentoContainer, GetDirtyFlag) \
	(somSelf,ev))
#ifndef SOMGD_GetDirtyFlag
    #if (defined(_GetDirtyFlag) || defined(__GetDirtyFlag))
        #undef _GetDirtyFlag
        #undef __GetDirtyFlag
        #define SOMGD_GetDirtyFlag 1
    #else
        #define _GetDirtyFlag ODBentoContainer_GetDirtyFlag
    #endif /* _GetDirtyFlag */
#endif /* SOMGD_GetDirtyFlag */

/*
 * New Method: SetDirtyFlag
 */
typedef void   (SOMLINK * somTD_ODBentoContainer_SetDirtyFlag)(ODBentoContainer *somSelf, Environment *ev);
#define somMD_ODBentoContainer_SetDirtyFlag "::ODBentoContainer::SetDirtyFlag"
#define ODBentoContainer_SetDirtyFlag(somSelf,ev) \
    (SOM_Resolve(somSelf, ODBentoContainer, SetDirtyFlag) \
	(somSelf,ev))
#ifndef SOMGD_SetDirtyFlag
    #if (defined(_SetDirtyFlag) || defined(__SetDirtyFlag))
        #undef _SetDirtyFlag
        #undef __SetDirtyFlag
        #define SOMGD_SetDirtyFlag 1
    #else
        #define _SetDirtyFlag ODBentoContainer_SetDirtyFlag
    #endif /* _SetDirtyFlag */
#endif /* SOMGD_SetDirtyFlag */

/*
 * New Method: GetHeap
 */
typedef ODMemoryHeapID   (SOMLINK * somTD_ODBentoContainer_GetHeap)(ODBentoContainer *somSelf, Environment *ev);
#define somMD_ODBentoContainer_GetHeap "::ODBentoContainer::GetHeap"
#define ODBentoContainer_GetHeap(somSelf,ev) \
    (SOM_Resolve(somSelf, ODBentoContainer, GetHeap) \
	(somSelf,ev))
#ifndef SOMGD_GetHeap
    #if (defined(_GetHeap) || defined(__GetHeap))
        #undef _GetHeap
        #undef __GetHeap
        #define SOMGD_GetHeap 1
    #else
        #define _GetHeap ODBentoContainer_GetHeap
    #endif /* _GetHeap */
#endif /* SOMGD_GetHeap */

/*
 * New Method: GetCMSession
 */
typedef CMSession   (SOMLINK * somTD_ODBentoContainer_GetCMSession)(ODBentoContainer *somSelf, Environment *ev);
#define somMD_ODBentoContainer_GetCMSession "::ODBentoContainer::GetCMSession"
#define ODBentoContainer_GetCMSession(somSelf,ev) \
    (SOM_Resolve(somSelf, ODBentoContainer, GetCMSession) \
	(somSelf,ev))
#ifndef SOMGD_GetCMSession
    #if (defined(_GetCMSession) || defined(__GetCMSession))
        #undef _GetCMSession
        #undef __GetCMSession
        #define SOMGD_GetCMSession 1
    #else
        #define _GetCMSession ODBentoContainer_GetCMSession
    #endif /* _GetCMSession */
#endif /* SOMGD_GetCMSession */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODBentoContainer_InitRefCntObject ODRefCntObject_InitRefCntObject
#define ODBentoContainer_GetRefCount ODRefCntObject_GetRefCount
#define ODBentoContainer_InitObject ODObject_InitObject
#define ODBentoContainer_IsInitialized ODObject_IsInitialized
#define ODBentoContainer_HasExtension ODObject_HasExtension
#define ODBentoContainer_GetExtension ODObject_GetExtension
#define ODBentoContainer_ReleaseExtension ODObject_ReleaseExtension
#define ODBentoContainer_IsEqualTo ODObject_IsEqualTo
#define ODBentoContainer_SubClassResponsibility ODObject_SubClassResponsibility
#define ODBentoContainer_somDefaultInit SOMObject_somDefaultInit
#define ODBentoContainer_somDestruct SOMObject_somDestruct
#define ODBentoContainer_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODBentoContainer_somDefaultAssign SOMObject_somDefaultAssign
#define ODBentoContainer_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODBentoContainer_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODBentoContainer_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODBentoContainer_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODBentoContainer_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODBentoContainer_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODBentoContainer_somFree SOMObject_somFree
#define ODBentoContainer_somGetClass SOMObject_somGetClass
#define ODBentoContainer_somGetClassName SOMObject_somGetClassName
#define ODBentoContainer_somGetSize SOMObject_somGetSize
#define ODBentoContainer_somIsA SOMObject_somIsA
#define ODBentoContainer_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODBentoContainer_somRespondsTo SOMObject_somRespondsTo
#define ODBentoContainer_somDispatch SOMObject_somDispatch
#define ODBentoContainer_somClassDispatch SOMObject_somClassDispatch
#define ODBentoContainer_somCastObj SOMObject_somCastObj
#define ODBentoContainer_somResetObj SOMObject_somResetObj
#define ODBentoContainer_somDispatchV SOMObject_somDispatchV
#define ODBentoContainer_somDispatchL SOMObject_somDispatchL
#define ODBentoContainer_somDispatchA SOMObject_somDispatchA
#define ODBentoContainer_somDispatchD SOMObject_somDispatchD
#define ODBentoContainer_somPrintSelf SOMObject_somPrintSelf
#define ODBentoContainer_somDumpSelf SOMObject_somDumpSelf
#define ODBentoContainer_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODBentoContainer_h */
