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

#ifndef SOM_ParameterDef_h
#define SOM_ParameterDef_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_paramdef
#ifdef SOM_DLL_somir
	/* export semantics */
	#if defined(SOM_DEFFILE_somir)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somir))\
	|| !defined(SOM_Module_paramdef_Source)
	#define SOM_IMPORTEXPORT_somir_paramdef
	#else
	#define SOM_IMPORTEXPORT_somir_paramdef SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somir_paramdef 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 ParameterDef
#define ParameterDef SOMObject
#endif
/*
 *  This interface is used to access information associated with
 *  parameters used with an IDL operation.
 * 
 *  See CORBA 1.1, 7.5.7, p.136
 */

/*
 * 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 unsigned long ParameterDef_ParameterMode;
#define ParameterDef_IN 1UL
#define ParameterDef_OUT 2UL
#define ParameterDef_INOUT 3UL
typedef
struct ParameterDef_ParameterDescription {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
TypeCode type;
ParameterDef_ParameterMode mode;
} ParameterDef_ParameterDescription;
/*
 *  The inherited describe method returns an instance of this
 *  (ParameterDescription) structure in the "value" member of the
 *  Description structure defined in the Contained interface.
 */


#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_ParameterMode
    #ifdef ParameterMode
        #undef ParameterMode
        #define SOMTGD_ParameterMode 1
    #else
        #define ParameterMode ParameterDef_ParameterMode
    #endif /* ParameterMode */
#endif /* SOMTGD_ParameterMode */
#ifndef SOMTGD_ParameterDescription
    #ifdef ParameterDescription
        #undef ParameterDescription
        #define SOMTGD_ParameterDescription 1
    #else
        #define ParameterDescription ParameterDef_ParameterDescription
    #endif /* ParameterDescription */
#endif /* SOMTGD_ParameterDescription */
#endif /* SOM_DONT_USE_SHORT_NAMES */

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

#define ParameterDef_MajorVersion 2
#define ParameterDef_MinorVersion 3

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

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct ParameterDefClassDataStructure {
	SOMClass classObject;
	somMToken _get_type;
	somMToken _set_type;
	somMToken _get_mode;
	somMToken _set_mode;
} SOM_IMPORTEXPORT_somir_paramdef SOMDLINK ParameterDefClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct ParameterDefCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOM_IMPORTEXPORT_somir_paramdef SOMDLINK ParameterDefCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_ParameterDef (ParameterDefClassData.classObject)
#ifndef SOMGD_ParameterDef
    #if (defined(_ParameterDef) || defined(__ParameterDef))
        #undef _ParameterDef
        #undef __ParameterDef
        #define SOMGD_ParameterDef 1
    #else
        #define _ParameterDef _SOMCLASS_ParameterDef
    #endif /* _ParameterDef */
#endif /* SOMGD_ParameterDef */
#define ParameterDef_classObj _SOMCLASS_ParameterDef
#define _SOMMTOKEN_ParameterDef(method) ((somMToken)ParameterDefClassData.method)

/*
 * New and Renew macros for ParameterDef
 */
#define ParameterDefNew() \
   ( _ParameterDef ? \
	_somNew(_ParameterDef) \
	: ( ParameterDefNewClass(\
		ParameterDef_MajorVersion, \
		ParameterDef_MinorVersion),\
	   _somNew(_ParameterDef)))
#define ParameterDefRenew(buf) \
   ( _ParameterDef ? \
	_somRenew(_ParameterDef, buf) \
	: ( ParameterDefNewClass(\
		ParameterDef_MajorVersion, \
		ParameterDef_MinorVersion),\
	   _somRenew(_ParameterDef, buf)))

/*
 * New Method: _get_type
 */
typedef TypeCode   SOMLINK somTP_ParameterDef__get_type(ParameterDef somSelf, Environment *ev);
typedef somTP_ParameterDef__get_type *somTD_ParameterDef__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_ParameterDef__get_type "::ParameterDef::_get_type"
#define ParameterDef__get_type(somSelf,ev) \
    (SOM_Resolve(somSelf, ParameterDef, _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 ParameterDef__get_type
    #endif /* __get_type */
#endif /* SOMGD_get_type */

/*
 * New Method: _set_type
 */
typedef void   SOMLINK somTP_ParameterDef__set_type(ParameterDef somSelf, Environment *ev, 
		TypeCode type);
typedef somTP_ParameterDef__set_type *somTD_ParameterDef__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_ParameterDef__set_type "::ParameterDef::_set_type"
#define ParameterDef__set_type(somSelf,ev,type) \
    (SOM_Resolve(somSelf, ParameterDef, _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 ParameterDef__set_type
    #endif /* __set_type */
#endif /* SOMGD_set_type */

/*
 * New Method: _get_mode
 */
typedef ParameterDef_ParameterMode   SOMLINK somTP_ParameterDef__get_mode(ParameterDef somSelf, Environment *ev);
typedef somTP_ParameterDef__get_mode *somTD_ParameterDef__get_mode;
/*
 *  The ParameterMode of the receiving object;
 */
#define somMD_ParameterDef__get_mode "::ParameterDef::_get_mode"
#define ParameterDef__get_mode(somSelf,ev) \
    (SOM_Resolve(somSelf, ParameterDef, _get_mode) \
	(somSelf,ev))
#ifndef SOMGD_get_mode
    #if (defined(_get_mode) || defined(__get_mode))
        #undef _get_mode
        #undef __get_mode
        #define SOMGD_get_mode 1
    #else
        #define __get_mode ParameterDef__get_mode
    #endif /* __get_mode */
#endif /* SOMGD_get_mode */

/*
 * New Method: _set_mode
 */
typedef void   SOMLINK somTP_ParameterDef__set_mode(ParameterDef somSelf, Environment *ev, 
		ParameterDef_ParameterMode mode);
typedef somTP_ParameterDef__set_mode *somTD_ParameterDef__set_mode;
/*
 *  The ParameterMode of the receiving object;
 */
#define somMD_ParameterDef__set_mode "::ParameterDef::_set_mode"
#define ParameterDef__set_mode(somSelf,ev,mode) \
    (SOM_Resolve(somSelf, ParameterDef, _set_mode) \
	(somSelf,ev,mode))
#ifndef SOMGD_set_mode
    #if (defined(_set_mode) || defined(__set_mode))
        #undef _set_mode
        #undef __set_mode
        #define SOMGD_set_mode 1
    #else
        #define __set_mode ParameterDef__set_mode
    #endif /* __set_mode */
#endif /* SOMGD_set_mode */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define ParameterDef_describe Contained_describe
#define ParameterDef_somDefaultInit SOMObject_somDefaultInit
#define ParameterDef_somDestruct SOMObject_somDestruct
#define ParameterDef_somDumpSelf SOMObject_somDumpSelf
#define ParameterDef_somDumpSelfInt SOMObject_somDumpSelfInt

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ParameterDef__get_name Contained__get_name
#define ParameterDef__set_name Contained__set_name
#define ParameterDef__get_id Contained__get_id
#define ParameterDef__set_id Contained__set_id
#define ParameterDef__get_defined_in Contained__get_defined_in
#define ParameterDef__set_defined_in Contained__set_defined_in
#define ParameterDef__get_somModifiers Contained__get_somModifiers
#define ParameterDef__set_somModifiers Contained__set_somModifiers
#define ParameterDef_within Contained_within
#define ParameterDef_somFree SOMObject_somFree
#define ParameterDef_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ParameterDef_somDefaultAssign SOMObject_somDefaultAssign
#define ParameterDef_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ParameterDef_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ParameterDef_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ParameterDef_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ParameterDef_somDefaultVAssign SOMObject_somDefaultVAssign
#define ParameterDef_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ParameterDef_somInit SOMObject_somInit
#define ParameterDef_somUninit SOMObject_somUninit
#define ParameterDef_somGetClass SOMObject_somGetClass
#define ParameterDef_somGetClassName SOMObject_somGetClassName
#define ParameterDef_somGetSize SOMObject_somGetSize
#define ParameterDef_somIsA SOMObject_somIsA
#define ParameterDef_somIsInstanceOf SOMObject_somIsInstanceOf
#define ParameterDef_somRespondsTo SOMObject_somRespondsTo
#define ParameterDef_somDispatch SOMObject_somDispatch
#define ParameterDef_somClassDispatch SOMObject_somClassDispatch
#define ParameterDef_somCastObj SOMObject_somCastObj
#define ParameterDef_somResetObj SOMObject_somResetObj
#define ParameterDef_somPrintSelf SOMObject_somPrintSelf
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ParameterDef_h */
