
/*
 * This file was generated by the SOM Compiler.
 * FileName: moduledf.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.19
 *     SOM Emitter emith.dll: 2.31.1.64
 */

#ifndef SOM_ModuleDef_h
#define SOM_ModuleDef_h


/*
 * The SOM_STRICT_IDL macro means that we can ignore stars
 * in our declarations of objects.
 */
#define SOM_STRICT_IDL 1


/*
 * Passthru lines: File: "C.h", "before"
 */

    #include <somtcnst.h>
    #include <somir.h>
    #include <containd.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 the class name as an object type
 */
#ifndef ModuleDef
#define ModuleDef SOMObject
#endif
/*
 *  This interface is used to access information associated with
 *  modules defined in an IDL file.
 * 
 *  See CORBA 1.1, 7.5.3, p.133
 */

/*
 * Include Parent Bindings
 */
#ifndef SOM_Contained_h
#ifdef SOMLOCALINCLUDES
#include "containd.h"
#else
#include <containd.h>
#endif
#endif
#ifndef SOM_Container_h
#ifdef SOMLOCALINCLUDES
#include "containr.h"
#else
#include <containr.h>
#endif
#endif

/*
 * Start of bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef Container
    #define Container SOMObject
#endif /* Container */
typedef
struct ModuleDef_ModuleDescription {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
} ModuleDef_ModuleDescription;
/*
 *  The inherited describe method returns an instance of this
 *  (ModuleDescription) structure in the "value" member of the
 *  Description structure defined in the Contained interface.
 *  The inherited describe_contents method in the Container
 *  interface returns a sequence of these Description structures
 *  each carrying a reference to a ModuleDescription structure
 *  in its "value" member.
 */


#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_ModuleDescription
    #ifdef ModuleDescription
        #undef ModuleDescription
        #define SOMTGD_ModuleDescription 1
    #else
        #define ModuleDescription ModuleDef_ModuleDescription
    #endif /* ModuleDescription */
#endif /* SOMTGD_ModuleDescription */
#endif /* SOM_DONT_USE_SHORT_NAMES */

/*
 * End of bindings for IDL types.
 */

#define ModuleDef_MajorVersion 2
#define ModuleDef_MinorVersion 3

/*
 * Declare the class creation procedure
 */
SOMEXTERN 
#if defined(SOM_Module_moduledf_Source)
        SOMDLLEXPORT
#else
    SOMDLLIMPORT
#endif
 SOMClass  SOMLINK ModuleDefNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct ModuleDefClassDataStructure {
	SOMClass classObject;
} 
#if defined(SOM_Module_moduledf_Source)
        SOMDLLEXPORT
#else
    SOMDLLIMPORT
#endif
 SOMDLINK ModuleDefClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct ModuleDefCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} 
#if defined(SOM_Module_moduledf_Source)
        SOMDLLEXPORT
#else
    SOMDLLIMPORT
#endif
 SOMDLINK ModuleDefCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_ModuleDef (ModuleDefClassData.classObject)
#ifndef SOMGD_ModuleDef
    #if (defined(_ModuleDef) || defined(__ModuleDef))
        #undef _ModuleDef
        #undef __ModuleDef
        #define SOMGD_ModuleDef 1
    #else
        #define _ModuleDef _SOMCLASS_ModuleDef
    #endif /* _ModuleDef */
#endif /* SOMGD_ModuleDef */
#define ModuleDef_classObj _SOMCLASS_ModuleDef
#define _SOMMTOKEN_ModuleDef(method) ((somMToken)ModuleDefClassData.method)

/*
 * New and Renew macros for ModuleDef
 */
#define ModuleDefNew() \
   ( _ModuleDef ? \
	_somNew(_ModuleDef) \
	: ( ModuleDefNewClass(\
		ModuleDef_MajorVersion, \
		ModuleDef_MinorVersion),\
	   _somNew(_ModuleDef)))
#define ModuleDefRenew(buf) \
   ( _ModuleDef ? \
	_somRenew(_ModuleDef, buf) \
	: ( ModuleDefNewClass(\
		ModuleDef_MajorVersion, \
		ModuleDef_MinorVersion),\
	   _somRenew(_ModuleDef, buf)))

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define ModuleDef_within Contained_within
#define ModuleDef_describe Contained_describe
#define ModuleDef_somDefaultInit SOMObject_somDefaultInit
#define ModuleDef_somDestruct SOMObject_somDestruct
#define ModuleDef_somDumpSelf SOMObject_somDumpSelf
#define ModuleDef_somDumpSelfInt SOMObject_somDumpSelfInt

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ModuleDef__get_name Contained__get_name
#define ModuleDef__set_name Contained__set_name
#define ModuleDef__get_id Contained__get_id
#define ModuleDef__set_id Contained__set_id
#define ModuleDef__get_defined_in Contained__get_defined_in
#define ModuleDef__set_defined_in Contained__set_defined_in
#define ModuleDef__get_somModifiers Contained__get_somModifiers
#define ModuleDef__set_somModifiers Contained__set_somModifiers
#define ModuleDef_somFree SOMObject_somFree
#define ModuleDef_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ModuleDef_somDefaultAssign SOMObject_somDefaultAssign
#define ModuleDef_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ModuleDef_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ModuleDef_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ModuleDef_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ModuleDef_somDefaultVAssign SOMObject_somDefaultVAssign
#define ModuleDef_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ModuleDef_somInit SOMObject_somInit
#define ModuleDef_somUninit SOMObject_somUninit
#define ModuleDef_somGetClass SOMObject_somGetClass
#define ModuleDef_somGetClassName SOMObject_somGetClassName
#define ModuleDef_somGetSize SOMObject_somGetSize
#define ModuleDef_somIsA SOMObject_somIsA
#define ModuleDef_somIsInstanceOf SOMObject_somIsInstanceOf
#define ModuleDef_somRespondsTo SOMObject_somRespondsTo
#define ModuleDef_somDispatch SOMObject_somDispatch
#define ModuleDef_somClassDispatch SOMObject_somClassDispatch
#define ModuleDef_somCastObj SOMObject_somCastObj
#define ModuleDef_somResetObj SOMObject_somResetObj
#define ModuleDef_somPrintSelf SOMObject_somPrintSelf
#define ModuleDef_contents Container_contents
#define ModuleDef_lookup_name Container_lookup_name
#define ModuleDef_describe_contents Container_describe_contents
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ModuleDef_h */
