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

/*
 * 
 *  Theory of Operation
 * 
 * 
 *  Classes defined in this interface
 * 
 */


#ifndef SOM_ODBaseLinkSpec_h
#define SOM_ODBaseLinkSpec_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 ODBaseLinkSpecClassData (*resolve_ODBaseLinkSpecClassData())
#define ODBaseLinkSpecCClassData (*resolve_ODBaseLinkSpecCClassData())

/*
 * Define the class name as an object type
 */
#ifndef ODBaseLinkSpec
#define ODBaseLinkSpec SOMObject
#endif
#include <ODObject.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 ODBaseLinkSpec
    #define ODBaseLinkSpec SOMObject
#endif /* ODBaseLinkSpec */
#ifndef ODStorageUnit
    #define ODStorageUnit SOMObject
#endif /* ODStorageUnit */
#ifndef ODDraft
    #define ODDraft SOMObject
#endif /* ODDraft */
#ifndef ODPart
    #define ODPart SOMObject
#endif /* ODPart */

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

#define ODBaseLinkSpec_MajorVersion 1
#define ODBaseLinkSpec_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODBaseLinkSpecNewClass c
#define ODBaseLinkSpecClassData d
#define ODBaseLinkSpecCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODBaseLinkSpec_classObj ODBaseLinkSpecClassData.classObject
#define _ODBaseLinkSpec ODBaseLinkSpec_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODBaseLinkSpecClassDataStructure {
	SOMClass *classObject;
	somMToken WriteLinkSpec;
	somMToken ReadLinkSpec;
}  _ODBaseLinkSpecClassData;
SOMEXTERN struct ODBaseLinkSpecClassDataStructure * SOMLINK resolve_ODBaseLinkSpecClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODBaseLinkSpecCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODBaseLinkSpecCClassData;
SOMEXTERN struct ODBaseLinkSpecCClassDataStructure * SOMLINK resolve_ODBaseLinkSpecCClassData(void);

/*
 * New and Renew macros for ODBaseLinkSpec
 */
#define ODBaseLinkSpecNew() \
   (_somNew(_ODBaseLinkSpec ? _ODBaseLinkSpec : ODBaseLinkSpecNewClass(ODBaseLinkSpec_MajorVersion, ODBaseLinkSpec_MinorVersion)))
#define ODBaseLinkSpecRenew(buf) \
   (_somRenew(_ODBaseLinkSpec ? _ODBaseLinkSpec : ODBaseLinkSpecNewClass(ODBaseLinkSpec_MajorVersion, ODBaseLinkSpec_MinorVersion), buf))

/*
 * New Method: WriteLinkSpec
 */
typedef void   (SOMLINK * somTD_ODBaseLinkSpec_WriteLinkSpec)(ODBaseLinkSpec *somSelf, Environment *ev,
		ODStorageUnit* su);
#define somMD_ODBaseLinkSpec_WriteLinkSpec "::ODBaseLinkSpec::WriteLinkSpec"
#define ODBaseLinkSpec_WriteLinkSpec(somSelf,ev,su) \
    (SOM_Resolve(somSelf, ODBaseLinkSpec, WriteLinkSpec) \
	(somSelf,ev,su))
#ifndef SOMGD_WriteLinkSpec
    #if (defined(_WriteLinkSpec) || defined(__WriteLinkSpec))
        #undef _WriteLinkSpec
        #undef __WriteLinkSpec
        #define SOMGD_WriteLinkSpec 1
    #else
        #define _WriteLinkSpec ODBaseLinkSpec_WriteLinkSpec
    #endif /* _WriteLinkSpec */
#endif /* SOMGD_WriteLinkSpec */

/*
 * New Method: ReadLinkSpec
 */
typedef void   (SOMLINK * somTD_ODBaseLinkSpec_ReadLinkSpec)(ODBaseLinkSpec *somSelf, Environment *ev,
		ODStorageUnit* su);
#define somMD_ODBaseLinkSpec_ReadLinkSpec "::ODBaseLinkSpec::ReadLinkSpec"
#define ODBaseLinkSpec_ReadLinkSpec(somSelf,ev,su) \
    (SOM_Resolve(somSelf, ODBaseLinkSpec, ReadLinkSpec) \
	(somSelf,ev,su))
#ifndef SOMGD_ReadLinkSpec
    #if (defined(_ReadLinkSpec) || defined(__ReadLinkSpec))
        #undef _ReadLinkSpec
        #undef __ReadLinkSpec
        #define SOMGD_ReadLinkSpec 1
    #else
        #define _ReadLinkSpec ODBaseLinkSpec_ReadLinkSpec
    #endif /* _ReadLinkSpec */
#endif /* SOMGD_ReadLinkSpec */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODBaseLinkSpec_InitObject ODObject_InitObject
#define ODBaseLinkSpec_IsInitialized ODObject_IsInitialized
#define ODBaseLinkSpec_HasExtension ODObject_HasExtension
#define ODBaseLinkSpec_GetExtension ODObject_GetExtension
#define ODBaseLinkSpec_ReleaseExtension ODObject_ReleaseExtension
#define ODBaseLinkSpec_Purge ODObject_Purge
#define ODBaseLinkSpec_IsEqualTo ODObject_IsEqualTo
#define ODBaseLinkSpec_SubClassResponsibility ODObject_SubClassResponsibility
#define ODBaseLinkSpec_somDefaultInit SOMObject_somDefaultInit
#define ODBaseLinkSpec_somDestruct SOMObject_somDestruct
#define ODBaseLinkSpec_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODBaseLinkSpec_somDefaultAssign SOMObject_somDefaultAssign
#define ODBaseLinkSpec_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODBaseLinkSpec_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODBaseLinkSpec_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODBaseLinkSpec_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODBaseLinkSpec_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODBaseLinkSpec_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODBaseLinkSpec_somInit SOMObject_somInit
#define ODBaseLinkSpec_somFree SOMObject_somFree
#define ODBaseLinkSpec_somUninit SOMObject_somUninit
#define ODBaseLinkSpec_somGetClass SOMObject_somGetClass
#define ODBaseLinkSpec_somGetClassName SOMObject_somGetClassName
#define ODBaseLinkSpec_somGetSize SOMObject_somGetSize
#define ODBaseLinkSpec_somIsA SOMObject_somIsA
#define ODBaseLinkSpec_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODBaseLinkSpec_somRespondsTo SOMObject_somRespondsTo
#define ODBaseLinkSpec_somDispatch SOMObject_somDispatch
#define ODBaseLinkSpec_somClassDispatch SOMObject_somClassDispatch
#define ODBaseLinkSpec_somCastObj SOMObject_somCastObj
#define ODBaseLinkSpec_somResetObj SOMObject_somResetObj
#define ODBaseLinkSpec_somDispatchV SOMObject_somDispatchV
#define ODBaseLinkSpec_somDispatchL SOMObject_somDispatchL
#define ODBaseLinkSpec_somDispatchA SOMObject_somDispatchA
#define ODBaseLinkSpec_somDispatchD SOMObject_somDispatchD
#define ODBaseLinkSpec_somPrintSelf SOMObject_somPrintSelf
#define ODBaseLinkSpec_somDumpSelf SOMObject_somDumpSelf
#define ODBaseLinkSpec_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODBaseLinkSpec_h */
