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

/*
 * 
 *  Scalar Types
 * 
 * 
 *  Classes defined in this interface
 * 
 */


#ifndef SOM_ODObjectNameSpace_h
#define SOM_ODObjectNameSpace_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 ODObjectNameSpaceClassData (*resolve_ODObjectNameSpaceClassData())
#define ODObjectNameSpaceCClassData (*resolve_ODObjectNameSpaceCClassData())

/*
 * Define the class name as an object type
 */
#ifndef ODObjectNameSpace
#define ODObjectNameSpace SOMObject
#endif
#include <NamSpac.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 ODNameSpace
    #define ODNameSpace SOMObject
#endif /* ODNameSpace */
#ifndef ODNameSpaceManager
    #define ODNameSpaceManager SOMObject
#endif /* ODNameSpaceManager */
#ifndef ODSession
    #define ODSession SOMObject
#endif /* ODSession */
#ifndef ODStorageUnitView
    #define ODStorageUnitView SOMObject
#endif /* ODStorageUnitView */
#ifndef PlatformFile
    #define PlatformFile SOMObject
#endif /* PlatformFile */
#ifndef ODObjectNameSpace
    #define ODObjectNameSpace SOMObject
#endif /* ODObjectNameSpace */
#ifndef ODObjectIterator
    #define ODObjectIterator SOMObject
#endif /* ODObjectIterator */

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

#define ODObjectNameSpace_MajorVersion 1
#define ODObjectNameSpace_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODObjectNameSpaceNewClass c
#define ODObjectNameSpaceClassData d
#define ODObjectNameSpaceCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODObjectNameSpace_classObj ODObjectNameSpaceClassData.classObject
#define _ODObjectNameSpace ODObjectNameSpace_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODObjectNameSpaceClassDataStructure {
	SOMClass *classObject;
	somMToken InitObjectNameSpace;
	somMToken Register;
	somMToken GetEntry;
	somMToken CreateIterator;
}  _ODObjectNameSpaceClassData;
SOMEXTERN struct ODObjectNameSpaceClassDataStructure * SOMLINK resolve_ODObjectNameSpaceClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODObjectNameSpaceCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODObjectNameSpaceCClassData;
SOMEXTERN struct ODObjectNameSpaceCClassDataStructure * SOMLINK resolve_ODObjectNameSpaceCClassData(void);

/*
 * New and Renew macros for ODObjectNameSpace
 */
#define ODObjectNameSpaceNew() \
   (_somNew(_ODObjectNameSpace ? _ODObjectNameSpace : ODObjectNameSpaceNewClass(ODObjectNameSpace_MajorVersion, ODObjectNameSpace_MinorVersion)))
#define ODObjectNameSpaceRenew(buf) \
   (_somRenew(_ODObjectNameSpace ? _ODObjectNameSpace : ODObjectNameSpaceNewClass(ODObjectNameSpace_MajorVersion, ODObjectNameSpace_MinorVersion), buf))

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

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

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

/*
 * New Method: InitObjectNameSpace
 */
typedef void   (SOMLINK * somTD_ODObjectNameSpace_InitObjectNameSpace)(ODObjectNameSpace *somSelf, Environment *ev,
		ODNameSpaceManager* mgr,
		ODNameSpace* parent,
		ODULong numExpectedEntries,
		ODISOStr name);
#define somMD_ODObjectNameSpace_InitObjectNameSpace "::ODObjectNameSpace::InitObjectNameSpace"
#define ODObjectNameSpace_InitObjectNameSpace(somSelf,ev,mgr,parent,numExpectedEntries,name) \
    (SOM_Resolve(somSelf, ODObjectNameSpace, InitObjectNameSpace) \
	(somSelf,ev,mgr,parent,numExpectedEntries,name))
#ifndef SOMGD_InitObjectNameSpace
    #if (defined(_InitObjectNameSpace) || defined(__InitObjectNameSpace))
        #undef _InitObjectNameSpace
        #undef __InitObjectNameSpace
        #define SOMGD_InitObjectNameSpace 1
    #else
        #define _InitObjectNameSpace ODObjectNameSpace_InitObjectNameSpace
    #endif /* _InitObjectNameSpace */
#endif /* SOMGD_InitObjectNameSpace */

/*
 * New Method: Register
 */
typedef void   (SOMLINK * somTD_ODObjectNameSpace_Register)(ODObjectNameSpace *somSelf, Environment *ev,
		ODISOStr key,
		ODObject* object);
#define somMD_ODObjectNameSpace_Register "::ODObjectNameSpace::Register"
#define ODObjectNameSpace_Register(somSelf,ev,key,object) \
    (SOM_Resolve(somSelf, ODObjectNameSpace, Register) \
	(somSelf,ev,key,object))
#ifndef SOMGD_Register
    #if (defined(_Register) || defined(__Register))
        #undef _Register
        #undef __Register
        #define SOMGD_Register 1
    #else
        #define _Register ODObjectNameSpace_Register
    #endif /* _Register */
#endif /* SOMGD_Register */

/*
 * New Method: GetEntry
 */
typedef ODBoolean   (SOMLINK * somTD_ODObjectNameSpace_GetEntry)(ODObjectNameSpace *somSelf, Environment *ev,
		ODISOStr key,
		ODObject** object);
#define somMD_ODObjectNameSpace_GetEntry "::ODObjectNameSpace::GetEntry"
#define ODObjectNameSpace_GetEntry(somSelf,ev,key,object) \
    (SOM_Resolve(somSelf, ODObjectNameSpace, GetEntry) \
	(somSelf,ev,key,object))
#ifndef SOMGD_GetEntry
    #if (defined(_GetEntry) || defined(__GetEntry))
        #undef _GetEntry
        #undef __GetEntry
        #define SOMGD_GetEntry 1
    #else
        #define _GetEntry ODObjectNameSpace_GetEntry
    #endif /* _GetEntry */
#endif /* SOMGD_GetEntry */

/*
 * New Method: CreateIterator
 */
typedef ODObjectIterator*   (SOMLINK * somTD_ODObjectNameSpace_CreateIterator)(ODObjectNameSpace *somSelf, Environment *ev);
#define somMD_ODObjectNameSpace_CreateIterator "::ODObjectNameSpace::CreateIterator"
#define ODObjectNameSpace_CreateIterator(somSelf,ev) \
    (SOM_Resolve(somSelf, ODObjectNameSpace, CreateIterator) \
	(somSelf,ev))
#ifndef SOMGD_CreateIterator
    #if (defined(_CreateIterator) || defined(__CreateIterator))
        #undef _CreateIterator
        #undef __CreateIterator
        #define SOMGD_CreateIterator 1
    #else
        #define _CreateIterator ODObjectNameSpace_CreateIterator
    #endif /* _CreateIterator */
#endif /* SOMGD_CreateIterator */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODObjectNameSpace_GetName ODNameSpace_GetName
#define ODObjectNameSpace_GetType ODNameSpace_GetType
#define ODObjectNameSpace_GetParent ODNameSpace_GetParent
#define ODObjectNameSpace_SetType ODNameSpace_SetType
#define ODObjectNameSpace_Unregister ODNameSpace_Unregister
#define ODObjectNameSpace_Exists ODNameSpace_Exists
#define ODObjectNameSpace_WriteToFile ODNameSpace_WriteToFile
#define ODObjectNameSpace_ReadFromFile ODNameSpace_ReadFromFile
#define ODObjectNameSpace_WriteToStorage ODNameSpace_WriteToStorage
#define ODObjectNameSpace_ReadFromStorage ODNameSpace_ReadFromStorage
#define ODObjectNameSpace_InitNameSpace ODNameSpace_InitNameSpace
#define ODObjectNameSpace_GetHashTable ODNameSpace_GetHashTable
#define ODObjectNameSpace_GetNumEntries ODNameSpace_GetNumEntries
#define ODObjectNameSpace_NotifyDying ODNameSpace_NotifyDying
#define ODObjectNameSpace_InitObject ODObject_InitObject
#define ODObjectNameSpace_IsInitialized ODObject_IsInitialized
#define ODObjectNameSpace_HasExtension ODObject_HasExtension
#define ODObjectNameSpace_GetExtension ODObject_GetExtension
#define ODObjectNameSpace_ReleaseExtension ODObject_ReleaseExtension
#define ODObjectNameSpace_IsEqualTo ODObject_IsEqualTo
#define ODObjectNameSpace_SubClassResponsibility ODObject_SubClassResponsibility
#define ODObjectNameSpace_somDefaultInit SOMObject_somDefaultInit
#define ODObjectNameSpace_somDestruct SOMObject_somDestruct
#define ODObjectNameSpace_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODObjectNameSpace_somDefaultAssign SOMObject_somDefaultAssign
#define ODObjectNameSpace_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODObjectNameSpace_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODObjectNameSpace_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODObjectNameSpace_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODObjectNameSpace_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODObjectNameSpace_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODObjectNameSpace_somFree SOMObject_somFree
#define ODObjectNameSpace_somGetClass SOMObject_somGetClass
#define ODObjectNameSpace_somGetClassName SOMObject_somGetClassName
#define ODObjectNameSpace_somGetSize SOMObject_somGetSize
#define ODObjectNameSpace_somIsA SOMObject_somIsA
#define ODObjectNameSpace_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODObjectNameSpace_somRespondsTo SOMObject_somRespondsTo
#define ODObjectNameSpace_somDispatch SOMObject_somDispatch
#define ODObjectNameSpace_somClassDispatch SOMObject_somClassDispatch
#define ODObjectNameSpace_somCastObj SOMObject_somCastObj
#define ODObjectNameSpace_somResetObj SOMObject_somResetObj
#define ODObjectNameSpace_somDispatchV SOMObject_somDispatchV
#define ODObjectNameSpace_somDispatchL SOMObject_somDispatchL
#define ODObjectNameSpace_somDispatchA SOMObject_somDispatchA
#define ODObjectNameSpace_somDispatchD SOMObject_somDispatchD
#define ODObjectNameSpace_somPrintSelf SOMObject_somPrintSelf
#define ODObjectNameSpace_somDumpSelf SOMObject_somDumpSelf
#define ODObjectNameSpace_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODObjectNameSpace_h */
