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

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


#ifndef SOM_ODEmbeddedContainer_h
#define SOM_ODEmbeddedContainer_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 ODEmbeddedContainerClassData (*resolve_ODEmbeddedContainerClassData())
#define ODEmbeddedContainerCClassData (*resolve_ODEmbeddedContainerCClassData())

/*
 * Define the class name as an object type
 */
#ifndef ODEmbeddedContainer
#define ODEmbeddedContainer SOMObject
#endif
#include <CMCtr.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 */
#ifndef ODEmbeddedContainer
    #define ODEmbeddedContainer SOMObject
#endif /* ODEmbeddedContainer */
typedef
struct ODEmbeddedContainer_ODEmbeddedContainerID_struct {
CMValue cmValue;
ODBoolean shouldMerge;
} ODEmbeddedContainer_ODEmbeddedContainerID_struct, ODEmbeddedContainer_ODEmbeddedContainerID;

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_ODEmbeddedContainerID
    #ifdef ODEmbeddedContainerID
        #undef ODEmbeddedContainerID
        #define SOMTGD_ODEmbeddedContainerID 1
    #else
        #define ODEmbeddedContainerID ODEmbeddedContainer_ODEmbeddedContainerID
    #endif /* ODEmbeddedContainerID */
#endif /* SOMTGD_ODEmbeddedContainerID */
#endif /* SOM_DONT_USE_SHORT_NAMES */

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

#define ODEmbeddedContainer_MajorVersion 0
#define ODEmbeddedContainer_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODEmbeddedContainerNewClass c
#define ODEmbeddedContainerClassData d
#define ODEmbeddedContainerCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODEmbeddedContainer_classObj ODEmbeddedContainerClassData.classObject
#define _ODEmbeddedContainer ODEmbeddedContainer_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODEmbeddedContainerClassDataStructure {
	SOMClass *classObject;
	somMToken Abort;
	somMToken GetUseMode;
}  _ODEmbeddedContainerClassData;
SOMEXTERN struct ODEmbeddedContainerClassDataStructure * SOMLINK resolve_ODEmbeddedContainerClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODEmbeddedContainerCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODEmbeddedContainerCClassData;
SOMEXTERN struct ODEmbeddedContainerCClassDataStructure * SOMLINK resolve_ODEmbeddedContainerCClassData(void);

/*
 * New and Renew macros for ODEmbeddedContainer
 */
#define ODEmbeddedContainerNew() \
   (_somNew(_ODEmbeddedContainer ? _ODEmbeddedContainer : ODEmbeddedContainerNewClass(ODEmbeddedContainer_MajorVersion, ODEmbeddedContainer_MinorVersion)))
#define ODEmbeddedContainerRenew(buf) \
   (_somRenew(_ODEmbeddedContainer ? _ODEmbeddedContainer : ODEmbeddedContainerNewClass(ODEmbeddedContainer_MajorVersion, ODEmbeddedContainer_MinorVersion), buf))

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

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

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

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

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

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

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

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

/*
 * Override method: GetCMContainer
 */
#define ODEmbeddedContainer_GetCMContainer(somSelf,ev) \
	ODBentoContainer_GetCMContainer(somSelf,ev)

/*
 * Override method: GetHandlers
 */
#define ODEmbeddedContainer_GetHandlers(somSelf,ev) \
	ODBentoContainer_GetHandlers(somSelf,ev)

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

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

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

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

/*
 * New Method: Abort
 */
typedef ODContainer*   (SOMLINK * somTD_ODEmbeddedContainer_Abort)(ODEmbeddedContainer *somSelf, Environment *ev);
#define somMD_ODEmbeddedContainer_Abort "::ODEmbeddedContainer::Abort"
#define ODEmbeddedContainer_Abort(somSelf,ev) \
    (SOM_Resolve(somSelf, ODEmbeddedContainer, Abort) \
	(somSelf,ev))
#ifndef SOMGD_Abort
    #if (defined(_Abort) || defined(__Abort))
        #undef _Abort
        #undef __Abort
        #define SOMGD_Abort 1
    #else
        #define _Abort ODEmbeddedContainer_Abort
    #endif /* _Abort */
#endif /* SOMGD_Abort */

/*
 * New Method: GetUseMode
 */
typedef CMContainerUseMode   (SOMLINK * somTD_ODEmbeddedContainer_GetUseMode)(ODEmbeddedContainer *somSelf, Environment *ev);
#define somMD_ODEmbeddedContainer_GetUseMode "::ODEmbeddedContainer::GetUseMode"
#define ODEmbeddedContainer_GetUseMode(somSelf,ev) \
    (SOM_Resolve(somSelf, ODEmbeddedContainer, GetUseMode) \
	(somSelf,ev))
#ifndef SOMGD_GetUseMode
    #if (defined(_GetUseMode) || defined(__GetUseMode))
        #undef _GetUseMode
        #undef __GetUseMode
        #define SOMGD_GetUseMode 1
    #else
        #define _GetUseMode ODEmbeddedContainer_GetUseMode
    #endif /* _GetUseMode */
#endif /* SOMGD_GetUseMode */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODEmbeddedContainer_GetDirtyFlag ODBentoContainer_GetDirtyFlag
#define ODEmbeddedContainer_SetDirtyFlag ODBentoContainer_SetDirtyFlag
#define ODEmbeddedContainer_GetHeap ODBentoContainer_GetHeap
#define ODEmbeddedContainer_GetCMSession ODBentoContainer_GetCMSession
#define ODEmbeddedContainer_GetStorageSystem ODContainer_GetStorageSystem
#define ODEmbeddedContainer_GetID ODContainer_GetID
#define ODEmbeddedContainer_InitRefCntObject ODRefCntObject_InitRefCntObject
#define ODEmbeddedContainer_IncrementRefCount ODRefCntObject_IncrementRefCount
#define ODEmbeddedContainer_GetRefCount ODRefCntObject_GetRefCount
#define ODEmbeddedContainer_InitObject ODObject_InitObject
#define ODEmbeddedContainer_IsInitialized ODObject_IsInitialized
#define ODEmbeddedContainer_HasExtension ODObject_HasExtension
#define ODEmbeddedContainer_GetExtension ODObject_GetExtension
#define ODEmbeddedContainer_ReleaseExtension ODObject_ReleaseExtension
#define ODEmbeddedContainer_IsEqualTo ODObject_IsEqualTo
#define ODEmbeddedContainer_SubClassResponsibility ODObject_SubClassResponsibility
#define ODEmbeddedContainer_somDefaultInit SOMObject_somDefaultInit
#define ODEmbeddedContainer_somDestruct SOMObject_somDestruct
#define ODEmbeddedContainer_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODEmbeddedContainer_somDefaultAssign SOMObject_somDefaultAssign
#define ODEmbeddedContainer_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODEmbeddedContainer_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODEmbeddedContainer_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODEmbeddedContainer_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODEmbeddedContainer_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODEmbeddedContainer_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODEmbeddedContainer_somFree SOMObject_somFree
#define ODEmbeddedContainer_somGetClass SOMObject_somGetClass
#define ODEmbeddedContainer_somGetClassName SOMObject_somGetClassName
#define ODEmbeddedContainer_somGetSize SOMObject_somGetSize
#define ODEmbeddedContainer_somIsA SOMObject_somIsA
#define ODEmbeddedContainer_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODEmbeddedContainer_somRespondsTo SOMObject_somRespondsTo
#define ODEmbeddedContainer_somDispatch SOMObject_somDispatch
#define ODEmbeddedContainer_somClassDispatch SOMObject_somClassDispatch
#define ODEmbeddedContainer_somCastObj SOMObject_somCastObj
#define ODEmbeddedContainer_somResetObj SOMObject_somResetObj
#define ODEmbeddedContainer_somDispatchV SOMObject_somDispatchV
#define ODEmbeddedContainer_somDispatchL SOMObject_somDispatchL
#define ODEmbeddedContainer_somDispatchA SOMObject_somDispatchA
#define ODEmbeddedContainer_somDispatchD SOMObject_somDispatchD
#define ODEmbeddedContainer_somPrintSelf SOMObject_somPrintSelf
#define ODEmbeddedContainer_somDumpSelf SOMObject_somDumpSelf
#define ODEmbeddedContainer_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODEmbeddedContainer_h */
