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

/*
 * 
 *  Classes used by this interface
 * 
 */


#ifndef SOM_ODContainer_h
#define SOM_ODContainer_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 ODContainerClassData (*resolve_ODContainerClassData())
#define ODContainerCClassData (*resolve_ODContainerCClassData())

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

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

#define ODContainer_MajorVersion 0
#define ODContainer_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODContainerNewClass c
#define ODContainerClassData d
#define ODContainerCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODContainer_classObj ODContainerClassData.classObject
#define _ODContainer ODContainer_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODContainerClassDataStructure {
	SOMClass *classObject;
	somMToken GetStorageSystem;
	somMToken GetID;
	somMToken GetName;
	somMToken SetName;
	somMToken GetDocument;
	somMToken InitContainer;
	somMToken Create;
	somMToken Open;
	somMToken Close;
	somMToken ReleaseDocument;
}  _ODContainerClassData;
SOMEXTERN struct ODContainerClassDataStructure * SOMLINK resolve_ODContainerClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODContainerCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODContainerCClassData;
SOMEXTERN struct ODContainerCClassDataStructure * SOMLINK resolve_ODContainerCClassData(void);

/*
 * New and Renew macros for ODContainer
 */
#define ODContainerNew() \
   (_somNew(_ODContainer ? _ODContainer : ODContainerNewClass(ODContainer_MajorVersion, ODContainer_MinorVersion)))
#define ODContainerRenew(buf) \
   (_somRenew(_ODContainer ? _ODContainer : ODContainerNewClass(ODContainer_MajorVersion, ODContainer_MinorVersion), buf))

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

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

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

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

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

/*
 * New Method: GetStorageSystem
 */
typedef ODStorageSystem*   (SOMLINK * somTD_ODContainer_GetStorageSystem)(ODContainer *somSelf, Environment *ev);
#define somMD_ODContainer_GetStorageSystem "::ODContainer::GetStorageSystem"
#define ODContainer_GetStorageSystem(somSelf,ev) \
    (SOM_Resolve(somSelf, ODContainer, GetStorageSystem) \
	(somSelf,ev))
#ifndef SOMGD_GetStorageSystem
    #if (defined(_GetStorageSystem) || defined(__GetStorageSystem))
        #undef _GetStorageSystem
        #undef __GetStorageSystem
        #define SOMGD_GetStorageSystem 1
    #else
        #define _GetStorageSystem ODContainer_GetStorageSystem
    #endif /* _GetStorageSystem */
#endif /* SOMGD_GetStorageSystem */

/*
 * New Method: GetID
 */
typedef ODContainerID   (SOMLINK * somTD_ODContainer_GetID)(ODContainer *somSelf, Environment *ev);
#define somMD_ODContainer_GetID "::ODContainer::GetID"
#define ODContainer_GetID(somSelf,ev) \
    (SOM_Resolve(somSelf, ODContainer, GetID) \
	(somSelf,ev))
#ifndef SOMGD_GetID
    #if (defined(_GetID) || defined(__GetID))
        #undef _GetID
        #undef __GetID
        #define SOMGD_GetID 1
    #else
        #define _GetID ODContainer_GetID
    #endif /* _GetID */
#endif /* SOMGD_GetID */

/*
 * New Method: GetName
 */
typedef ODContainerName   (SOMLINK * somTD_ODContainer_GetName)(ODContainer *somSelf, Environment *ev);
#define somMD_ODContainer_GetName "::ODContainer::GetName"
#define ODContainer_GetName(somSelf,ev) \
    (SOM_Resolve(somSelf, ODContainer, GetName) \
	(somSelf,ev))
#ifndef SOMGD_GetName
    #if (defined(_GetName) || defined(__GetName))
        #undef _GetName
        #undef __GetName
        #define SOMGD_GetName 1
    #else
        #define _GetName ODContainer_GetName
    #endif /* _GetName */
#endif /* SOMGD_GetName */

/*
 * New Method: SetName
 */
typedef void   (SOMLINK * somTD_ODContainer_SetName)(ODContainer *somSelf, Environment *ev,
		ODContainerName* name);
#define somMD_ODContainer_SetName "::ODContainer::SetName"
#define ODContainer_SetName(somSelf,ev,name) \
    (SOM_Resolve(somSelf, ODContainer, SetName) \
	(somSelf,ev,name))
#ifndef SOMGD_SetName
    #if (defined(_SetName) || defined(__SetName))
        #undef _SetName
        #undef __SetName
        #define SOMGD_SetName 1
    #else
        #define _SetName ODContainer_SetName
    #endif /* _SetName */
#endif /* SOMGD_SetName */

/*
 * New Method: GetDocument
 */
typedef ODDocument*   (SOMLINK * somTD_ODContainer_GetDocument)(ODContainer *somSelf, Environment *ev,
		ODDocumentID id);
#define somMD_ODContainer_GetDocument "::ODContainer::GetDocument"
#define ODContainer_GetDocument(somSelf,ev,id) \
    (SOM_Resolve(somSelf, ODContainer, GetDocument) \
	(somSelf,ev,id))
#ifndef SOMGD_GetDocument
    #if (defined(_GetDocument) || defined(__GetDocument))
        #undef _GetDocument
        #undef __GetDocument
        #define SOMGD_GetDocument 1
    #else
        #define _GetDocument ODContainer_GetDocument
    #endif /* _GetDocument */
#endif /* SOMGD_GetDocument */

/*
 * New Method: InitContainer
 */
typedef void   (SOMLINK * somTD_ODContainer_InitContainer)(ODContainer *somSelf, Environment *ev,
		ODStorageSystem* system,
		ODContainerID* id);
#define somMD_ODContainer_InitContainer "::ODContainer::InitContainer"
#define ODContainer_InitContainer(somSelf,ev,system,id) \
    (SOM_Resolve(somSelf, ODContainer, InitContainer) \
	(somSelf,ev,system,id))
#ifndef SOMGD_InitContainer
    #if (defined(_InitContainer) || defined(__InitContainer))
        #undef _InitContainer
        #undef __InitContainer
        #define SOMGD_InitContainer 1
    #else
        #define _InitContainer ODContainer_InitContainer
    #endif /* _InitContainer */
#endif /* SOMGD_InitContainer */

/*
 * New Method: Create
 */
typedef ODContainer*   (SOMLINK * somTD_ODContainer_Create)(ODContainer *somSelf, Environment *ev);
#define somMD_ODContainer_Create "::ODContainer::Create"
#define ODContainer_Create(somSelf,ev) \
    (SOM_Resolve(somSelf, ODContainer, Create) \
	(somSelf,ev))
#ifndef SOMGD_Create
    #if (defined(_Create) || defined(__Create))
        #undef _Create
        #undef __Create
        #define SOMGD_Create 1
    #else
        #define _Create ODContainer_Create
    #endif /* _Create */
#endif /* SOMGD_Create */

/*
 * New Method: Open
 */
typedef ODContainer*   (SOMLINK * somTD_ODContainer_Open)(ODContainer *somSelf, Environment *ev);
#define somMD_ODContainer_Open "::ODContainer::Open"
#define ODContainer_Open(somSelf,ev) \
    (SOM_Resolve(somSelf, ODContainer, Open) \
	(somSelf,ev))
#ifndef SOMGD_Open
    #if (defined(_Open) || defined(__Open))
        #undef _Open
        #undef __Open
        #define SOMGD_Open 1
    #else
        #define _Open ODContainer_Open
    #endif /* _Open */
#endif /* SOMGD_Open */

/*
 * New Method: Close
 */
typedef ODContainer*   (SOMLINK * somTD_ODContainer_Close)(ODContainer *somSelf, Environment *ev);
#define somMD_ODContainer_Close "::ODContainer::Close"
#define ODContainer_Close(somSelf,ev) \
    (SOM_Resolve(somSelf, ODContainer, Close) \
	(somSelf,ev))
#ifndef SOMGD_Close
    #if (defined(_Close) || defined(__Close))
        #undef _Close
        #undef __Close
        #define SOMGD_Close 1
    #else
        #define _Close ODContainer_Close
    #endif /* _Close */
#endif /* SOMGD_Close */

/*
 * New Method: ReleaseDocument
 */
typedef ODContainer*   (SOMLINK * somTD_ODContainer_ReleaseDocument)(ODContainer *somSelf, Environment *ev,
		ODDocument* document);
#define somMD_ODContainer_ReleaseDocument "::ODContainer::ReleaseDocument"
#define ODContainer_ReleaseDocument(somSelf,ev,document) \
    (SOM_Resolve(somSelf, ODContainer, ReleaseDocument) \
	(somSelf,ev,document))
#ifndef SOMGD_ReleaseDocument
    #if (defined(_ReleaseDocument) || defined(__ReleaseDocument))
        #undef _ReleaseDocument
        #undef __ReleaseDocument
        #define SOMGD_ReleaseDocument 1
    #else
        #define _ReleaseDocument ODContainer_ReleaseDocument
    #endif /* _ReleaseDocument */
#endif /* SOMGD_ReleaseDocument */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODContainer_InitRefCntObject ODRefCntObject_InitRefCntObject
#define ODContainer_GetRefCount ODRefCntObject_GetRefCount
#define ODContainer_InitObject ODObject_InitObject
#define ODContainer_IsInitialized ODObject_IsInitialized
#define ODContainer_HasExtension ODObject_HasExtension
#define ODContainer_GetExtension ODObject_GetExtension
#define ODContainer_ReleaseExtension ODObject_ReleaseExtension
#define ODContainer_IsEqualTo ODObject_IsEqualTo
#define ODContainer_SubClassResponsibility ODObject_SubClassResponsibility
#define ODContainer_somDefaultInit SOMObject_somDefaultInit
#define ODContainer_somDestruct SOMObject_somDestruct
#define ODContainer_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODContainer_somDefaultAssign SOMObject_somDefaultAssign
#define ODContainer_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODContainer_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODContainer_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODContainer_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODContainer_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODContainer_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODContainer_somFree SOMObject_somFree
#define ODContainer_somGetClass SOMObject_somGetClass
#define ODContainer_somGetClassName SOMObject_somGetClassName
#define ODContainer_somGetSize SOMObject_somGetSize
#define ODContainer_somIsA SOMObject_somIsA
#define ODContainer_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODContainer_somRespondsTo SOMObject_somRespondsTo
#define ODContainer_somDispatch SOMObject_somDispatch
#define ODContainer_somClassDispatch SOMObject_somClassDispatch
#define ODContainer_somCastObj SOMObject_somCastObj
#define ODContainer_somResetObj SOMObject_somResetObj
#define ODContainer_somDispatchV SOMObject_somDispatchV
#define ODContainer_somDispatchL SOMObject_somDispatchL
#define ODContainer_somDispatchA SOMObject_somDispatchA
#define ODContainer_somDispatchD SOMObject_somDispatchD
#define ODContainer_somPrintSelf SOMObject_somPrintSelf
#define ODContainer_somDumpSelf SOMObject_somDumpSelf
#define ODContainer_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODContainer_h */
