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

#ifndef SOM_OperationDef_h
#define SOM_OperationDef_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 <paramdef.h>
    #include <excptdef.h>

    #define ContextIdentifier string
    #define _IDL_SEQUENCE_ContextIdentifier _IDL_SEQUENCE_string


#include <som.h>
#ifndef SOM_IMPORTEXPORT_somir_operatdf
#ifdef SOM_DLL_somir
	/* export semantics */
	#if defined(SOM_DEFFILE_somir)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somir))\
	|| !defined(SOM_Module_operatdf_Source)
	#define SOM_IMPORTEXPORT_somir_operatdf
	#else
	#define SOM_IMPORTEXPORT_somir_operatdf SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somir_operatdf 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 OperationDef
#define OperationDef SOMObject
#endif
/*
 *  This interface is used to access information associated with
 *  operations defined in an IDL interface.
 * 
 *  See CORBA 1.1, 7.5.6, pp.135-136
 */

/*
 * 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 unsigned long OperationDef_OperationMode;
#define OperationDef_NORMAL 1UL
#define OperationDef_ONEWAY 2UL
#ifndef _IDL_SEQUENCE_string_defined
#define _IDL_SEQUENCE_string_defined
typedef struct {
    unsigned long _maximum;
    unsigned long _length;
    string *_buffer;
} _IDL_SEQUENCE_string;
#endif /* _IDL_SEQUENCE_string_defined */ 
struct ParameterDef_ParameterDescription;
#ifndef _IDL_SEQUENCE_ParameterDef_ParameterDescription_defined
#define _IDL_SEQUENCE_ParameterDef_ParameterDescription_defined
typedef struct {
    unsigned long _maximum;
    unsigned long _length;
    struct ParameterDef_ParameterDescription *_buffer;
} _IDL_SEQUENCE_ParameterDef_ParameterDescription;
#endif /* _IDL_SEQUENCE_ParameterDef_ParameterDescription_defined */ 
struct ExceptionDef_ExceptionDescription;
#ifndef _IDL_SEQUENCE_ExceptionDef_ExceptionDescription_defined
#define _IDL_SEQUENCE_ExceptionDef_ExceptionDescription_defined
typedef struct {
    unsigned long _maximum;
    unsigned long _length;
    struct ExceptionDef_ExceptionDescription *_buffer;
} _IDL_SEQUENCE_ExceptionDef_ExceptionDescription;
#endif /* _IDL_SEQUENCE_ExceptionDef_ExceptionDescription_defined */ 
typedef
struct OperationDef_OperationDescription {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
TypeCode result;
OperationDef_OperationMode mode;
_IDL_SEQUENCE_string contexts;
_IDL_SEQUENCE_ParameterDef_ParameterDescription parameter;
_IDL_SEQUENCE_ExceptionDef_ExceptionDescription exceptions;
} OperationDef_OperationDescription;
/*
 *  The inherited describe method returns an instance of this
 *  (OperationDescription) 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 an OperationDescription structure
 *  in its "value" member.
 */


#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_OperationMode
    #ifdef OperationMode
        #undef OperationMode
        #define SOMTGD_OperationMode 1
    #else
        #define OperationMode OperationDef_OperationMode
    #endif /* OperationMode */
#endif /* SOMTGD_OperationMode */
#ifndef SOMTGD__IDL_SEQUENCE_ParameterDescription
    #ifdef _IDL_SEQUENCE_ParameterDescription
        #undef _IDL_SEQUENCE_ParameterDescription
        #define SOMTGD__IDL_SEQUENCE_ParameterDescription 1
    #else
        #define _IDL_SEQUENCE_ParameterDescription _IDL_SEQUENCE_ParameterDef_ParameterDescription
    #endif /* _IDL_SEQUENCE_ParameterDescription */
#endif /* SOMTGD__IDL_SEQUENCE_ParameterDescription */
#ifndef SOMTGD__IDL_SEQUENCE_ExceptionDescription
    #ifdef _IDL_SEQUENCE_ExceptionDescription
        #undef _IDL_SEQUENCE_ExceptionDescription
        #define SOMTGD__IDL_SEQUENCE_ExceptionDescription 1
    #else
        #define _IDL_SEQUENCE_ExceptionDescription _IDL_SEQUENCE_ExceptionDef_ExceptionDescription
    #endif /* _IDL_SEQUENCE_ExceptionDescription */
#endif /* SOMTGD__IDL_SEQUENCE_ExceptionDescription */
#ifndef SOMTGD_OperationDescription
    #ifdef OperationDescription
        #undef OperationDescription
        #define SOMTGD_OperationDescription 1
    #else
        #define OperationDescription OperationDef_OperationDescription
    #endif /* OperationDescription */
#endif /* SOMTGD_OperationDescription */
#endif /* SOM_DONT_USE_SHORT_NAMES */

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

#define OperationDef_MajorVersion 2
#define OperationDef_MinorVersion 3

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

/*
 * Declare the ABI 2 ClassData structure
 */
SOMEXTERN struct OperationDefClassDataStructure {
	SOMClass classObject;
	somMToken _get_result;
	somMToken _set_result;
	somMToken _get_mode;
	somMToken _set_mode;
	somMToken _get_contexts;
	somMToken _set_contexts;
} SOM_IMPORTEXPORT_somir_operatdf SOMDLINK OperationDefClassData;

/*
 * Declare the ABI 2 CClassData structure
 */
SOMEXTERN struct OperationDefCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOM_IMPORTEXPORT_somir_operatdf SOMDLINK OperationDefCClassData;

/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_OperationDef (OperationDefClassData.classObject)
#ifndef SOMGD_OperationDef
    #if (defined(_OperationDef) || defined(__OperationDef))
        #undef _OperationDef
        #undef __OperationDef
        #define SOMGD_OperationDef 1
    #else
        #define _OperationDef _SOMCLASS_OperationDef
    #endif /* _OperationDef */
#endif /* SOMGD_OperationDef */
#define OperationDef_classObj _SOMCLASS_OperationDef
#define _SOMMTOKEN_OperationDef(method) ((somMToken)OperationDefClassData.method)

/*
 * New and Renew macros for OperationDef
 */
#define OperationDefNew() \
   ( _OperationDef ? \
	_somNew(_OperationDef) \
	: ( OperationDefNewClass(\
		OperationDef_MajorVersion, \
		OperationDef_MinorVersion),\
	   _somNew(_OperationDef)))
#define OperationDefRenew(buf) \
   ( _OperationDef ? \
	_somRenew(_OperationDef, buf) \
	: ( OperationDefNewClass(\
		OperationDef_MajorVersion, \
		OperationDef_MinorVersion),\
	   _somRenew(_OperationDef, buf)))

/*
 * New Method: _get_result
 */
typedef TypeCode   SOMLINK somTP_OperationDef__get_result(OperationDef somSelf, Environment *ev);
typedef somTP_OperationDef__get_result *somTD_OperationDef__get_result;
/*
 *  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_OperationDef__get_result "::OperationDef::_get_result"
#define OperationDef__get_result(somSelf,ev) \
    (SOM_Resolve(somSelf, OperationDef, _get_result) \
	(somSelf,ev))
#ifndef SOMGD_get_result
    #if (defined(_get_result) || defined(__get_result))
        #undef _get_result
        #undef __get_result
        #define SOMGD_get_result 1
    #else
        #define __get_result OperationDef__get_result
    #endif /* __get_result */
#endif /* SOMGD_get_result */

/*
 * New Method: _set_result
 */
typedef void   SOMLINK somTP_OperationDef__set_result(OperationDef somSelf, Environment *ev, 
		TypeCode result);
typedef somTP_OperationDef__set_result *somTD_OperationDef__set_result;
/*
 *  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_OperationDef__set_result "::OperationDef::_set_result"
#define OperationDef__set_result(somSelf,ev,result) \
    (SOM_Resolve(somSelf, OperationDef, _set_result) \
	(somSelf,ev,result))
#ifndef SOMGD_set_result
    #if (defined(_set_result) || defined(__set_result))
        #undef _set_result
        #undef __set_result
        #define SOMGD_set_result 1
    #else
        #define __set_result OperationDef__set_result
    #endif /* __set_result */
#endif /* SOMGD_set_result */

/*
 * New Method: _get_mode
 */
typedef OperationDef_OperationMode   SOMLINK somTP_OperationDef__get_mode(OperationDef somSelf, Environment *ev);
typedef somTP_OperationDef__get_mode *somTD_OperationDef__get_mode;
/*
 *  The OperationMode of the receiving object;
 */
#define somMD_OperationDef__get_mode "::OperationDef::_get_mode"
#define OperationDef__get_mode(somSelf,ev) \
    (SOM_Resolve(somSelf, OperationDef, _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 OperationDef__get_mode
    #endif /* __get_mode */
#endif /* SOMGD_get_mode */

/*
 * New Method: _set_mode
 */
typedef void   SOMLINK somTP_OperationDef__set_mode(OperationDef somSelf, Environment *ev, 
		OperationDef_OperationMode mode);
typedef somTP_OperationDef__set_mode *somTD_OperationDef__set_mode;
/*
 *  The OperationMode of the receiving object;
 */
#define somMD_OperationDef__set_mode "::OperationDef::_set_mode"
#define OperationDef__set_mode(somSelf,ev,mode) \
    (SOM_Resolve(somSelf, OperationDef, _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 OperationDef__set_mode
    #endif /* __set_mode */
#endif /* SOMGD_set_mode */

/*
 * New Method: _get_contexts
 */
typedef _IDL_SEQUENCE_string   SOMLINK somTP_OperationDef__get_contexts(OperationDef somSelf, Environment *ev);
typedef somTP_OperationDef__get_contexts *somTD_OperationDef__get_contexts;
/*
 *  The list of ContextIdentifiers associated with the
 *  receiving object.
 */
#define somMD_OperationDef__get_contexts "::OperationDef::_get_contexts"
#define OperationDef__get_contexts(somSelf,ev) \
    (SOM_Resolve(somSelf, OperationDef, _get_contexts) \
	(somSelf,ev))
#ifndef SOMGD_get_contexts
    #if (defined(_get_contexts) || defined(__get_contexts))
        #undef _get_contexts
        #undef __get_contexts
        #define SOMGD_get_contexts 1
    #else
        #define __get_contexts OperationDef__get_contexts
    #endif /* __get_contexts */
#endif /* SOMGD_get_contexts */

/*
 * New Method: _set_contexts
 */
typedef void   SOMLINK somTP_OperationDef__set_contexts(OperationDef somSelf, Environment *ev, 
		_IDL_SEQUENCE_string* contexts);
typedef somTP_OperationDef__set_contexts *somTD_OperationDef__set_contexts;
/*
 *  The list of ContextIdentifiers associated with the
 *  receiving object.
 */
#define somMD_OperationDef__set_contexts "::OperationDef::_set_contexts"
#define OperationDef__set_contexts(somSelf,ev,contexts) \
    (SOM_Resolve(somSelf, OperationDef, _set_contexts) \
	(somSelf,ev,contexts))
#ifndef SOMGD_set_contexts
    #if (defined(_set_contexts) || defined(__set_contexts))
        #undef _set_contexts
        #undef __set_contexts
        #define SOMGD_set_contexts 1
    #else
        #define __set_contexts OperationDef__set_contexts
    #endif /* __set_contexts */
#endif /* SOMGD_set_contexts */

/*
 * Full Names for Inherited Methods
 */
/* overridden methods */
#define OperationDef_describe Contained_describe
#define OperationDef_somDefaultInit SOMObject_somDefaultInit
#define OperationDef_somDestruct SOMObject_somDestruct
#define OperationDef_somDumpSelf SOMObject_somDumpSelf
#define OperationDef_somDumpSelfInt SOMObject_somDumpSelfInt

#ifndef SOM_DONT_USE_INHERITED_MACROS
#define OperationDef__get_name Contained__get_name
#define OperationDef__set_name Contained__set_name
#define OperationDef__get_id Contained__get_id
#define OperationDef__set_id Contained__set_id
#define OperationDef__get_defined_in Contained__get_defined_in
#define OperationDef__set_defined_in Contained__set_defined_in
#define OperationDef__get_somModifiers Contained__get_somModifiers
#define OperationDef__set_somModifiers Contained__set_somModifiers
#define OperationDef_within Contained_within
#define OperationDef_somFree SOMObject_somFree
#define OperationDef_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define OperationDef_somDefaultAssign SOMObject_somDefaultAssign
#define OperationDef_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define OperationDef_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define OperationDef_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define OperationDef_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define OperationDef_somDefaultVAssign SOMObject_somDefaultVAssign
#define OperationDef_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define OperationDef_somInit SOMObject_somInit
#define OperationDef_somUninit SOMObject_somUninit
#define OperationDef_somGetClass SOMObject_somGetClass
#define OperationDef_somGetClassName SOMObject_somGetClassName
#define OperationDef_somGetSize SOMObject_somGetSize
#define OperationDef_somIsA SOMObject_somIsA
#define OperationDef_somIsInstanceOf SOMObject_somIsInstanceOf
#define OperationDef_somRespondsTo SOMObject_somRespondsTo
#define OperationDef_somDispatch SOMObject_somDispatch
#define OperationDef_somClassDispatch SOMObject_somClassDispatch
#define OperationDef_somCastObj SOMObject_somCastObj
#define OperationDef_somResetObj SOMObject_somResetObj
#define OperationDef_somPrintSelf SOMObject_somPrintSelf
#define OperationDef_contents Container_contents
#define OperationDef_lookup_name Container_lookup_name
#define OperationDef_describe_contents Container_describe_contents
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_OperationDef_h */
