
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\build\newproj\include.ppc\paramdef.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.3
 *     SOM Emitter emith: 2.41
 */

/*
 *   ParameterDef: CORBA Interface for parameter definitions
 *   See CORBA 7.5.7, p.136
 */


#ifndef SOM_ParameterDef_h
#define SOM_ParameterDef_h


/*
 * 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 ParameterDef
#define ParameterDef SOMObject
#endif
#include <containd.h>

/*
 * 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 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ParameterDefNewClass c
#define ParameterDefClassData d
#define ParameterDefCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ParameterDef_classObj ParameterDefClassData.classObject
#define _ParameterDef ParameterDef_classObj

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

/*
 * Declare the class data structure
 */
SOMEXTERN struct ParameterDefClassDataStructure {
	SOMClass *classObject;
	somMToken _get_type;
	somMToken _set_type;
	somMToken _get_mode;
	somMToken _set_mode;
} SOMDLINK ParameterDefClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ParameterDefCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOMDLINK ParameterDefCClassData;

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

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

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

/*
 * Override method: somDumpSelf
 */
#define ParameterDef_somDumpSelf(somSelf,level) \
	SOMObject_somDumpSelf(somSelf,level)

/*
 * Override method: somDumpSelfInt
 */
#define ParameterDef_somDumpSelfInt(somSelf,level) \
	SOMObject_somDumpSelfInt(somSelf,level)

/*
 * Override method: describe
 */
#define ParameterDef_describe(somSelf,ev) \
	Contained_describe(somSelf,ev)

/*
 * New Method: _get_type
 */
typedef TypeCode   SOMLINK somTP_ParameterDef__get_type(ParameterDef *somSelf, Environment *ev);
typedef somTP_ParameterDef__get_type *somTD_ParameterDef__get_type;
#define somMD_ParameterDef__get_type "::ParameterDef::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;
#define somMD_ParameterDef__set_type "::ParameterDef::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;
#define somMD_ParameterDef__get_mode "::ParameterDef::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;
#define somMD_ParameterDef__set_mode "::ParameterDef::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 */
#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_somDefaultInit SOMObject_somDefaultInit
#define ParameterDef_somDestruct SOMObject_somDestruct
#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_somFree SOMObject_somFree
#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 */
