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

#ifndef SOM_TypeDef_h
#define SOM_TypeDef_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>
#ifndef SOM_IMPORTEXPORT_somir_typedef
#ifdef SOM_DLL_somir
	/* export semantics */
	#if defined(SOM_DEFFILE_somir)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somir))\
	|| !defined(SOM_Module_typedef_Source)
	#define SOM_IMPORTEXPORT_somir_typedef
	#else
	#define SOM_IMPORTEXPORT_somir_typedef SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somir_typedef SOMDLLIMPORT
#endif
#endif

/*
 * -- 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 TypeDef
#define TypeDef SOMObject
#endif
/*
 *  This interface is used to access information associated with
 *  typedefs, unions, enums, & structs defined in an IDL file.
 * 
 *  See CORBA 1.1, 7.5.8, p.137
 */

/*
 * Include Parent Bindings
 */
#ifndef SOM_Contained_h
#ifdef SOMLOCALINCLUDES
#include "containd.h"
#else
#include <containd.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 TypeDef_TypeDescription {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
TypeCode type;
} TypeDef_TypeDescription;
/*
 *  The inherited describe method returns an instance of this
 *  (TypeDescription) structure in the "value" member of the
 *  Description structure defined in the Contained interface.
 */


#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_TypeDescription
    #ifdef TypeDescription
        #undef TypeDescription
        #define SOMTGD_TypeDescription 1
    #else
        #define TypeDescription TypeDef_TypeDescription
    #endif /* TypeDescription */
#endif /* SOMTGD_TypeDescription */
#endif /* SOM_DONT_USE_SHORT_NAMES */

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

#define TypeDef_MajorVersion 2
#define TypeDef_MinorVersion 3

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOM_IMPORTEXPORT_somir_typedef SOMClass  SOMLINK TypeDefNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct TypeDefClassDataStructure {
	SOMClass classObject;
	somMToken _get_type;
	somMToken _set_type;
} SOM_IMPORTEXPORT_somir_typedef SOMDLINK TypeDefClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct TypeDefCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOM_IMPORTEXPORT_somir_typedef SOMDLINK TypeDefCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_TypeDef (TypeDefClassData.classObject)
#ifndef SOMGD_TypeDef
    #if (defined(_TypeDef) || defined(__TypeDef))
        #undef _TypeDef
        #undef __TypeDef
        #define SOMGD_TypeDef 1
    #else
        #define _TypeDef _SOMCLASS_TypeDef
    #endif /* _TypeDef */
#endif /* SOMGD_TypeDef */
#define TypeDef_classObj _SOMCLASS_TypeDef
#define _SOMMTOKEN_TypeDef(method) ((somMToken)TypeDefClassData.method)

/*
 * New and Renew macros for TypeDef
 */
#define TypeDefNew() \
   ( _TypeDef ? \
	_somNew(_TypeDef) \
	: ( TypeDefNewClass(\
		TypeDef_MajorVersion, \
		TypeDef_MinorVersion),\
	   _somNew(_TypeDef)))
#define TypeDefRenew(buf) \
   ( _TypeDef ? \
	_somRenew(_TypeDef, buf) \
	: ( TypeDefNewClass(\
		TypeDef_MajorVersion, \
		TypeDef_MinorVersion),\
	   _somRenew(_TypeDef, buf)))

/*
 * New Method: _get_type
 */
typedef TypeCode   SOMLINK somTP_TypeDef__get_type(TypeDef somSelf, Environment *ev);
typedef somTP_TypeDef__get_type *somTD_TypeDef__get_type;
/*
 *  The TypeCode of the receiving object.  The memory used to hold
 *  the TypeCode is contained in the receiving object, which retains
 *  ownership.  Hence, do not free the returned TypeCode.  If you want
 *  to obtain a separate copy, use the TypeCode_copy operation.
 */
#define somMD_TypeDef__get_type "::TypeDef::_get_type"
#define TypeDef__get_type(somSelf,ev) \
    (SOM_Resolve(somSelf, TypeDef, _get_type) \
	(somSelf,ev))
#ifndef SOMGD_get_type
    #if (defined(_get_type) || defined(__get_type))
        #undef _get_type
        #undef __get_type
        #define SOMGD_get_type 1
    #else
        #define __get_type TypeDef__get_type
    #endif /* __get_type */
#endif /* SOMGD_get_type */

/*
 * New Method: _set_type
 */
typedef void   SOMLINK somTP_TypeDef__set_type(TypeDef somSelf, Environment *ev, 
		TypeCode type);
typedef somTP_TypeDef__set_type *somTD_TypeDef__set_type;
/*
 *  The TypeCode of the receiving object.  The memory used to hold
 *  the TypeCode is contained in the receiving object, which retains
 *  ownership.  Hence, do not free the returned TypeCode.  If you want
 *  to obtain a separate copy, use the TypeCode_copy operation.
 */
#define somMD_TypeDef__set_type "::TypeDef::_set_type"
#define TypeDef__set_type(somSelf,ev,type) \
    (SOM_Resolve(somSelf, TypeDef, _set_type) \
	(somSelf,ev,type))
#ifndef SOMGD_set_type
    #if (defined(_set_type) || defined(__set_type))
        #undef _set_type
        #undef __set_type
        #define SOMGD_set_type 1
    #else
        #define __set_type TypeDef__set_type
    #endif /* __set_type */
#endif /* SOMGD_set_type */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define TypeDef_describe Contained_describe
#define TypeDef_somDefaultInit SOMObject_somDefaultInit
#define TypeDef_somDestruct SOMObject_somDestruct
#define TypeDef_somDumpSelf SOMObject_somDumpSelf
#define TypeDef_somDumpSelfInt SOMObject_somDumpSelfInt

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define TypeDef__get_name Contained__get_name
#define TypeDef__set_name Contained__set_name
#define TypeDef__get_id Contained__get_id
#define TypeDef__set_id Contained__set_id
#define TypeDef__get_defined_in Contained__get_defined_in
#define TypeDef__set_defined_in Contained__set_defined_in
#define TypeDef__get_somModifiers Contained__get_somModifiers
#define TypeDef__set_somModifiers Contained__set_somModifiers
#define TypeDef_within Contained_within
#define TypeDef_somFree SOMObject_somFree
#define TypeDef_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define TypeDef_somDefaultAssign SOMObject_somDefaultAssign
#define TypeDef_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define TypeDef_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define TypeDef_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define TypeDef_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define TypeDef_somDefaultVAssign SOMObject_somDefaultVAssign
#define TypeDef_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define TypeDef_somInit SOMObject_somInit
#define TypeDef_somUninit SOMObject_somUninit
#define TypeDef_somGetClass SOMObject_somGetClass
#define TypeDef_somGetClassName SOMObject_somGetClassName
#define TypeDef_somGetSize SOMObject_somGetSize
#define TypeDef_somIsA SOMObject_somIsA
#define TypeDef_somIsInstanceOf SOMObject_somIsInstanceOf
#define TypeDef_somRespondsTo SOMObject_somRespondsTo
#define TypeDef_somDispatch SOMObject_somDispatch
#define TypeDef_somClassDispatch SOMObject_somClassDispatch
#define TypeDef_somCastObj SOMObject_somCastObj
#define TypeDef_somResetObj SOMObject_somResetObj
#define TypeDef_somPrintSelf SOMObject_somPrintSelf
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_TypeDef_h */
