
/*
 * This file was generated by the SOM Compiler.
 * FileName: intfacdf.xh.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.19
 *     SOM Emitter emitxh.dll: 2.108
 */

#ifndef SOM_InterfaceDef_xh
#define SOM_InterfaceDef_xh


/*
 *  This interface is used to access information associated with
 *  interfaces defined in an IDL file.
 * 
 *  See CORBA 1.1, 7.5.4, p.134
 */

#define InterfaceDef_MajorVersion 2
#define InterfaceDef_MinorVersion 3
class InterfaceDef;

/*
 *  This interface is used to access information associated with
 *  interfaces defined in an IDL file.
 * 
 *  See CORBA 1.1, 7.5.4, p.134
 */

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

    #include <somtcnst.xh>
    #include <somir.xh>
    #include <operatdf.xh>
    #include <attribdf.xh>


/* Parents */
#ifndef SOM_Contained_xh
#ifdef SOMLOCALINCLUDES
#include "containd.xh"
#else
#include <containd.xh>
#endif
#endif
#ifndef SOM_Container_xh
#ifdef SOMLOCALINCLUDES
#include "containr.xh"
#else
#include <containr.xh>
#endif
#endif

/* Useful C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>

#ifndef InterfaceDef_API
#define InterfaceDef_API
/*
 * -- The Class API
 */
#ifndef SOM_IMPORTEXPORT_somir_intfacdf
#ifdef SOM_DLL_somir
	/* export semantics */
	#if defined(SOM_DEFFILE_somir)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somir))\
	|| !defined(SOM_Module_intfacdf_Source)
	#define SOM_IMPORTEXPORT_somir_intfacdf
	#else
	#define SOM_IMPORTEXPORT_somir_intfacdf SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somir_intfacdf SOMDLLIMPORT
#endif
#endif

/*
 * Start of bindings for IDL types
 */

class SOMClass;
class SOMObject;
class Container;
struct OperationDef_OperationDescription;
#ifndef _IDL_SEQUENCE_OperationDef_OperationDescription_defined
#define _IDL_SEQUENCE_OperationDef_OperationDescription_defined
typedef struct {
    unsigned long _maximum;
    unsigned long _length;
    struct OperationDef_OperationDescription *_buffer;
} _IDL_SEQUENCE_OperationDef_OperationDescription;
#endif /* _IDL_SEQUENCE_OperationDef_OperationDescription_defined */ 
struct AttributeDef_AttributeDescription;
#ifndef _IDL_SEQUENCE_AttributeDef_AttributeDescription_defined
#define _IDL_SEQUENCE_AttributeDef_AttributeDescription_defined
typedef struct {
    unsigned long _maximum;
    unsigned long _length;
    struct AttributeDef_AttributeDescription *_buffer;
} _IDL_SEQUENCE_AttributeDef_AttributeDescription;
#endif /* _IDL_SEQUENCE_AttributeDef_AttributeDescription_defined */ 
typedef
struct InterfaceDef_FullInterfaceDescription {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
_IDL_SEQUENCE_OperationDef_OperationDescription operation;
_IDL_SEQUENCE_AttributeDef_AttributeDescription attributes;
} InterfaceDef_FullInterfaceDescription;
typedef
struct InterfaceDef_InterfaceDescription {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
} InterfaceDef_InterfaceDescription;
/*
 *  The inherited describe method returns an instance of this
 *  (InterfaceDescription) 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 InterfaceDescription structure
 *  in its "value" member.
 */

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

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD__IDL_SEQUENCE_OperationDescription
    #ifdef _IDL_SEQUENCE_OperationDescription
        #undef _IDL_SEQUENCE_OperationDescription
        #define SOMTGD__IDL_SEQUENCE_OperationDescription 1
    #else
        #define _IDL_SEQUENCE_OperationDescription _IDL_SEQUENCE_OperationDef_OperationDescription
    #endif /* _IDL_SEQUENCE_OperationDescription */
#endif /* SOMTGD__IDL_SEQUENCE_OperationDescription */
#ifndef SOMTGD__IDL_SEQUENCE_AttributeDescription
    #ifdef _IDL_SEQUENCE_AttributeDescription
        #undef _IDL_SEQUENCE_AttributeDescription
        #define SOMTGD__IDL_SEQUENCE_AttributeDescription 1
    #else
        #define _IDL_SEQUENCE_AttributeDescription _IDL_SEQUENCE_AttributeDef_AttributeDescription
    #endif /* _IDL_SEQUENCE_AttributeDescription */
#endif /* SOMTGD__IDL_SEQUENCE_AttributeDescription */
#ifndef SOMTGD_FullInterfaceDescription
    #ifdef FullInterfaceDescription
        #undef FullInterfaceDescription
        #define SOMTGD_FullInterfaceDescription 1
    #else
        #define FullInterfaceDescription InterfaceDef_FullInterfaceDescription
    #endif /* FullInterfaceDescription */
#endif /* SOMTGD_FullInterfaceDescription */
#ifndef SOMTGD_InterfaceDescription
    #ifdef InterfaceDescription
        #undef InterfaceDescription
        #define SOMTGD_InterfaceDescription 1
    #else
        #define InterfaceDescription InterfaceDef_InterfaceDescription
    #endif /* InterfaceDescription */
#endif /* SOMTGD_InterfaceDescription */
#endif /* SOM_DONT_USE_SHORT_NAMES */

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

/*
 * A function to create the InterfaceDef class object...
 */
SOMEXTERN SOM_IMPORTEXPORT_somir_intfacdf SOMClass * SOMLINK InterfaceDefNewClass(
		integer4 majorVersion,
		integer4 minorVersion);


/*
 * The API 2 ClassData Structures...
 */
SOMEXTERN struct InterfaceDefClassDataStructure {
	SOMClass *classObject;
	somMToken describe_interface;
	somMToken _get_base_interfaces;
	somMToken _set_base_interfaces;
	somMToken _get_instanceData;
	somMToken _set_instanceData;
} SOMDLINK SOM_IMPORTEXPORT_somir_intfacdf InterfaceDefClassData;
SOMEXTERN struct InterfaceDefCClassDataStructure {
	som3ClassDetailsPtr    parentMtab;
	somDToken              instanceDataToken;
} SOMDLINK SOM_IMPORTEXPORT_somir_intfacdf InterfaceDefCClassData;


/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_InterfaceDef (InterfaceDefClassData.classObject)
#ifndef SOMGD_InterfaceDef
    #if (defined(_InterfaceDef) || defined(__InterfaceDef))
        #undef _InterfaceDef
        #undef __InterfaceDef
        #define SOMGD_InterfaceDef 1
    #else
        #define _InterfaceDef _SOMCLASS_InterfaceDef
    #endif /* _InterfaceDef */
#endif /* SOMGD_InterfaceDef */
#define InterfaceDef_classObj _SOMCLASS_InterfaceDef
#define _SOMMTOKEN_InterfaceDef(method) ((somMToken)InterfaceDefClassData.method)

/*
 * -- Typedefs for InterfaceDef Method Procedures
 */
SOMEXTERN {
typedef _IDL_SEQUENCE_string   SOMLINK somTP_InterfaceDef__get_base_interfaces(InterfaceDef *somSelf, Environment *ev);
typedef somTP_InterfaceDef__get_base_interfaces *somTD_InterfaceDef__get_base_interfaces;
typedef void   SOMLINK somTP_InterfaceDef__set_base_interfaces(InterfaceDef *somSelf, Environment *ev, 
		_IDL_SEQUENCE_string* base_interfaces);
typedef somTP_InterfaceDef__set_base_interfaces *somTD_InterfaceDef__set_base_interfaces;
typedef InterfaceDef_FullInterfaceDescription   SOMLINK somTP_InterfaceDef_describe_interface(InterfaceDef *somSelf, Environment *ev);
typedef somTP_InterfaceDef_describe_interface *somTD_InterfaceDef_describe_interface;
typedef TypeCode   SOMLINK somTP_InterfaceDef__get_instanceData(InterfaceDef *somSelf, Environment *ev);
typedef somTP_InterfaceDef__get_instanceData *somTD_InterfaceDef__get_instanceData;
typedef void   SOMLINK somTP_InterfaceDef__set_instanceData(InterfaceDef *somSelf, Environment *ev, 
		TypeCode instanceData);
typedef somTP_InterfaceDef__set_instanceData *somTD_InterfaceDef__set_instanceData;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef Identifier   SOMLINK somTP_InterfaceDef__get_name(InterfaceDef *somSelf, Environment *ev);
typedef somTP_InterfaceDef__get_name *somTD_InterfaceDef__get_name;
typedef void   SOMLINK somTP_InterfaceDef__set_name(InterfaceDef *somSelf, Environment *ev, 
		Identifier name);
typedef somTP_InterfaceDef__set_name *somTD_InterfaceDef__set_name;
typedef RepositoryId   SOMLINK somTP_InterfaceDef__get_id(InterfaceDef *somSelf, Environment *ev);
typedef somTP_InterfaceDef__get_id *somTD_InterfaceDef__get_id;
typedef void   SOMLINK somTP_InterfaceDef__set_id(InterfaceDef *somSelf, Environment *ev, 
		RepositoryId id);
typedef somTP_InterfaceDef__set_id *somTD_InterfaceDef__set_id;
typedef RepositoryId   SOMLINK somTP_InterfaceDef__get_defined_in(InterfaceDef *somSelf, Environment *ev);
typedef somTP_InterfaceDef__get_defined_in *somTD_InterfaceDef__get_defined_in;
typedef void   SOMLINK somTP_InterfaceDef__set_defined_in(InterfaceDef *somSelf, Environment *ev, 
		RepositoryId defined_in);
typedef somTP_InterfaceDef__set_defined_in *somTD_InterfaceDef__set_defined_in;
typedef _IDL_SEQUENCE_somModifier   SOMLINK somTP_InterfaceDef__get_somModifiers(InterfaceDef *somSelf, Environment *ev);
typedef somTP_InterfaceDef__get_somModifiers *somTD_InterfaceDef__get_somModifiers;
typedef void   SOMLINK somTP_InterfaceDef__set_somModifiers(InterfaceDef *somSelf, Environment *ev, 
		_IDL_SEQUENCE_somModifier* somModifiers);
typedef somTP_InterfaceDef__set_somModifiers *somTD_InterfaceDef__set_somModifiers;
typedef _IDL_SEQUENCE_Container   SOMLINK somTP_InterfaceDef_within(InterfaceDef *somSelf, Environment *ev);
typedef somTP_InterfaceDef_within *somTD_InterfaceDef_within;
typedef Contained_Description   SOMLINK somTP_InterfaceDef_describe(InterfaceDef *somSelf, Environment *ev);
typedef somTP_InterfaceDef_describe *somTD_InterfaceDef_describe;
typedef void   SOMLINK somTP_InterfaceDef_somFree(InterfaceDef *somSelf);
typedef somTP_InterfaceDef_somFree *somTD_InterfaceDef_somFree;
typedef void   SOMLINK somTP_InterfaceDef_somDefaultInit(InterfaceDef *somSelf, 
		som3InitCtrl* ctrl);
typedef somTP_InterfaceDef_somDefaultInit *somTD_InterfaceDef_somDefaultInit;
typedef void   SOMLINK somTP_InterfaceDef_somDestruct(InterfaceDef *somSelf, 
		octet doFree, 
		som3DestructCtrl* ctrl);
typedef somTP_InterfaceDef_somDestruct *somTD_InterfaceDef_somDestruct;
typedef void   SOMLINK somTP_InterfaceDef_somDumpSelf(InterfaceDef *somSelf, 
		long level);
typedef somTP_InterfaceDef_somDumpSelf *somTD_InterfaceDef_somDumpSelf;
typedef void   SOMLINK somTP_InterfaceDef_somDumpSelfInt(InterfaceDef *somSelf, 
		long level);
typedef somTP_InterfaceDef_somDumpSelfInt *somTD_InterfaceDef_somDumpSelfInt;
typedef void   SOMLINK somTP_InterfaceDef_somDefaultCopyInit(InterfaceDef *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_InterfaceDef_somDefaultCopyInit *somTD_InterfaceDef_somDefaultCopyInit;
typedef InterfaceDef*   SOMLINK somTP_InterfaceDef_somDefaultAssign(InterfaceDef *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_InterfaceDef_somDefaultAssign *somTD_InterfaceDef_somDefaultAssign;
typedef void   SOMLINK somTP_InterfaceDef_somDefaultConstCopyInit(InterfaceDef *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_InterfaceDef_somDefaultConstCopyInit *somTD_InterfaceDef_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_InterfaceDef_somDefaultVCopyInit(InterfaceDef *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_InterfaceDef_somDefaultVCopyInit *somTD_InterfaceDef_somDefaultVCopyInit;
typedef void   SOMLINK somTP_InterfaceDef_somDefaultConstVCopyInit(InterfaceDef *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_InterfaceDef_somDefaultConstVCopyInit *somTD_InterfaceDef_somDefaultConstVCopyInit;
typedef InterfaceDef*   SOMLINK somTP_InterfaceDef_somDefaultConstAssign(InterfaceDef *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_InterfaceDef_somDefaultConstAssign *somTD_InterfaceDef_somDefaultConstAssign;
typedef InterfaceDef*   SOMLINK somTP_InterfaceDef_somDefaultVAssign(InterfaceDef *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_InterfaceDef_somDefaultVAssign *somTD_InterfaceDef_somDefaultVAssign;
typedef InterfaceDef*   SOMLINK somTP_InterfaceDef_somDefaultConstVAssign(InterfaceDef *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_InterfaceDef_somDefaultConstVAssign *somTD_InterfaceDef_somDefaultConstVAssign;
typedef void   SOMLINK somTP_InterfaceDef_somInit(InterfaceDef *somSelf);
typedef somTP_InterfaceDef_somInit *somTD_InterfaceDef_somInit;
typedef void   SOMLINK somTP_InterfaceDef_somUninit(InterfaceDef *somSelf);
typedef somTP_InterfaceDef_somUninit *somTD_InterfaceDef_somUninit;
typedef SOMClass*   SOMLINK somTP_InterfaceDef_somGetClass(InterfaceDef *somSelf);
typedef somTP_InterfaceDef_somGetClass *somTD_InterfaceDef_somGetClass;
typedef string   SOMLINK somTP_InterfaceDef_somGetClassName(InterfaceDef *somSelf);
typedef somTP_InterfaceDef_somGetClassName *somTD_InterfaceDef_somGetClassName;
typedef long   SOMLINK somTP_InterfaceDef_somGetSize(InterfaceDef *somSelf);
typedef somTP_InterfaceDef_somGetSize *somTD_InterfaceDef_somGetSize;
typedef boolean   SOMLINK somTP_InterfaceDef_somIsA(InterfaceDef *somSelf, 
		SOMClass* aClassObj);
typedef somTP_InterfaceDef_somIsA *somTD_InterfaceDef_somIsA;
typedef boolean   SOMLINK somTP_InterfaceDef_somIsInstanceOf(InterfaceDef *somSelf, 
		SOMClass* aClassObj);
typedef somTP_InterfaceDef_somIsInstanceOf *somTD_InterfaceDef_somIsInstanceOf;
typedef boolean   SOMLINK somTP_InterfaceDef_somRespondsTo(InterfaceDef *somSelf, 
		somId mId);
typedef somTP_InterfaceDef_somRespondsTo *somTD_InterfaceDef_somRespondsTo;
typedef boolean   SOMLINK somTP_InterfaceDef_somDispatch(InterfaceDef *somSelf, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_InterfaceDef_somDispatch *somTD_InterfaceDef_somDispatch;
typedef boolean   SOMLINK somTP_InterfaceDef_somClassDispatch(InterfaceDef *somSelf, 
		SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_InterfaceDef_somClassDispatch *somTD_InterfaceDef_somClassDispatch;
typedef boolean   SOMLINK somTP_InterfaceDef_somCastObj(InterfaceDef *somSelf, 
		SOMClass* castedCls);
typedef somTP_InterfaceDef_somCastObj *somTD_InterfaceDef_somCastObj;
typedef boolean   SOMLINK somTP_InterfaceDef_somResetObj(InterfaceDef *somSelf);
typedef somTP_InterfaceDef_somResetObj *somTD_InterfaceDef_somResetObj;
typedef InterfaceDef*   SOMLINK somTP_InterfaceDef_somPrintSelf(InterfaceDef *somSelf);
typedef somTP_InterfaceDef_somPrintSelf *somTD_InterfaceDef_somPrintSelf;
typedef _IDL_SEQUENCE_Contained   SOMLINK somTP_InterfaceDef_contents(InterfaceDef *somSelf, Environment *ev, 
		Container_InterfaceName limit_type, 
		boolean exclude_inherited);
typedef somTP_InterfaceDef_contents *somTD_InterfaceDef_contents;
typedef _IDL_SEQUENCE_Contained   SOMLINK somTP_InterfaceDef_lookup_name(InterfaceDef *somSelf, Environment *ev, 
		Identifier search_name, 
		long levels_to_search, 
		Container_InterfaceName limit_type, 
		boolean exclude_inherited);
typedef somTP_InterfaceDef_lookup_name *somTD_InterfaceDef_lookup_name;
typedef _IDL_SEQUENCE_Container_ContainerDescription   SOMLINK somTP_InterfaceDef_describe_contents(InterfaceDef *somSelf, Environment *ev, 
		Container_InterfaceName limit_type, 
		boolean exclude_inherited, 
		long max_returned_objs);
typedef somTP_InterfaceDef_describe_contents *somTD_InterfaceDef_describe_contents;
}

#endif /* InterfaceDef_API */


/*
 * -- The C++ Wrapper Class for InterfaceDef
 */
class InterfaceDef : public Contained, public Container
{
/*
 *  This interface is used to access information associated with
 *  interfaces defined in an IDL file.
 * 
 *  See CORBA 1.1, 7.5.4, p.134
 */
public:

// InterfaceDef::new creates the class object if necessary, and then uses
// somNewNoInit to allocate memory and create the object.
// Initialization is in ctors.
void *operator new(size_t)
{
   if (!_InterfaceDef) InterfaceDefNewClass(InterfaceDef_MajorVersion,InterfaceDef_MinorVersion);
   return (void*)
   (((somTD_SOMClass_somNewNoInit)(SOMClassClassData.somNewNoInit))
         ((SOMClass *)((void*)_InterfaceDef)));
}

// InterfaceDef::delete uses somFree.
void operator delete(void * obj)
{
   if (obj && *(void**)obj)
      ((SOMObject*)obj)->somFree();
}

InterfaceDef& operator=(InterfaceDef& fromObj)
{
   this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
   return *this;
}

InterfaceDef()
{
   if (*(void**)this != (InterfaceDefCClassData.parentMtab)->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultInit(0);
}

InterfaceDef(InterfaceDef* fromObj)
{
   if (*(void**)this != (InterfaceDefCClassData.parentMtab)->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}


/* method: _get_base_interfaces */
_IDL_SEQUENCE_string   _get_base_interfaces(Environment *ev)
{
/*
 *  The sequence of RepositoryIds for all of the interfaces that the
 *  receiving interface inherits.  Do not free the buffer,
 *  its storage is still owned by the InterfaceDef object.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_InterfaceDef),
	 ((somTD_InterfaceDef__get_base_interfaces)(InterfaceDefClassData._get_base_interfaces))(((InterfaceDef *)((void *)this)), ev)
	);
}


/* method: _set_base_interfaces */
void   _set_base_interfaces(Environment *ev, 
		_IDL_SEQUENCE_string* base_interfaces)
{
/*
 *  The sequence of RepositoryIds for all of the interfaces that the
 *  receiving interface inherits.  Do not free the buffer,
 *  its storage is still owned by the InterfaceDef object.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_InterfaceDef),
	 ((somTD_InterfaceDef__set_base_interfaces)(InterfaceDefClassData._set_base_interfaces))(((InterfaceDef *)((void *)this)), ev,base_interfaces)
	);
}


/* method: describe_interface */
InterfaceDef_FullInterfaceDescription   describe_interface(Environment *ev)
{
/*
 *  Returns a description of all the operations and attributes in
 *  an interface.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_InterfaceDef),
	 ((somTD_InterfaceDef_describe_interface)(InterfaceDefClassData.describe_interface))(((InterfaceDef *)((void *)this)), ev)
	);
}


/* method: _get_instanceData */
TypeCode   _get_instanceData(Environment *ev)
{
/*
 *  [SOM-unique extension]
 * 
 *  The instance data members (if any) described in the SOM
 *  implementation section of the IDL source file.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_InterfaceDef),
	 ((somTD_InterfaceDef__get_instanceData)(InterfaceDefClassData._get_instanceData))(((InterfaceDef *)((void *)this)), ev)
	);
}


/* method: _set_instanceData */
void   _set_instanceData(Environment *ev, 
		TypeCode instanceData)
{
/*
 *  [SOM-unique extension]
 * 
 *  The instance data members (if any) described in the SOM
 *  implementation section of the IDL source file.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_InterfaceDef),
	 ((somTD_InterfaceDef__set_instanceData)(InterfaceDefClassData._set_instanceData))(((InterfaceDef *)((void *)this)), ev,instanceData)
	);
}


/*
 * Reintroduce inherited methods
 */

/* method: _get_name */
Identifier   _get_name(Environment *ev)
{
/*
 *  The value of the "name" field of the receiving object
 * 
 *  This is a simple name that indentifies the receiving object
 *  within its containment hierarchy.  Outside of the containment
 *  hierarchy this name is not necessarily unique, and may require
 *  qualification by ModuleDef name, InterfaceDef name, etc.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_Contained),
	 ((somTD_InterfaceDef__get_name)(ContainedClassData._get_name))(((InterfaceDef *)((void *)this)), ev)
	);
}


/* method: _set_name */
void   _set_name(Environment *ev, 
		Identifier name)
{
/*
 *  The value of the "name" field of the receiving object
 * 
 *  This is a simple name that indentifies the receiving object
 *  within its containment hierarchy.  Outside of the containment
 *  hierarchy this name is not necessarily unique, and may require
 *  qualification by ModuleDef name, InterfaceDef name, etc.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_Contained),
	 ((somTD_InterfaceDef__set_name)(ContainedClassData._set_name))(((InterfaceDef *)((void *)this)), ev,name)
	);
}


/* method: _get_id */
RepositoryId   _get_id(Environment *ev)
{
/*
 *  The value of the "id" field of the receiving object
 * 
 *  The "id" is a string that uniquely identifies any object in
 *  the interface repository.  No qualification is needed for
 *  an "id".  Notice that "RepositoryId"s have no relationship
 *  to the SOM type "somId".
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_Contained),
	 ((somTD_InterfaceDef__get_id)(ContainedClassData._get_id))(((InterfaceDef *)((void *)this)), ev)
	);
}


/* method: _set_id */
void   _set_id(Environment *ev, 
		RepositoryId id)
{
/*
 *  The value of the "id" field of the receiving object
 * 
 *  The "id" is a string that uniquely identifies any object in
 *  the interface repository.  No qualification is needed for
 *  an "id".  Notice that "RepositoryId"s have no relationship
 *  to the SOM type "somId".
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_Contained),
	 ((somTD_InterfaceDef__set_id)(ContainedClassData._set_id))(((InterfaceDef *)((void *)this)), ev,id)
	);
}


/* method: _get_defined_in */
RepositoryId   _get_defined_in(Environment *ev)
{
/*
 *  The value of the "defined_in" field of the receiving object
 * 
 *  This "id" uniquely identifies the container where the
 *  receiving object is defined.  Objects that have global scope
 *  and do not appear within any other objects are by default
 *  placed in the "Repository" object.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_Contained),
	 ((somTD_InterfaceDef__get_defined_in)(ContainedClassData._get_defined_in))(((InterfaceDef *)((void *)this)), ev)
	);
}


/* method: _set_defined_in */
void   _set_defined_in(Environment *ev, 
		RepositoryId defined_in)
{
/*
 *  The value of the "defined_in" field of the receiving object
 * 
 *  This "id" uniquely identifies the container where the
 *  receiving object is defined.  Objects that have global scope
 *  and do not appear within any other objects are by default
 *  placed in the "Repository" object.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_Contained),
	 ((somTD_InterfaceDef__set_defined_in)(ContainedClassData._set_defined_in))(((InterfaceDef *)((void *)this)), ev,defined_in)
	);
}


/* method: _get_somModifiers */
_IDL_SEQUENCE_somModifier   _get_somModifiers(Environment *ev)
{
/*
 *  [SOM-unique extension]
 * 
 *  The somModifiers attribute is a sequence containing all of
 *  the "modifiers" attached to the corresponding IDL object in
 *  the SOM-unique implementation section of the IDL file where
 *  the receiving object was originally defined.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_Contained),
	 ((somTD_InterfaceDef__get_somModifiers)(ContainedClassData._get_somModifiers))(((InterfaceDef *)((void *)this)), ev)
	);
}


/* method: _set_somModifiers */
void   _set_somModifiers(Environment *ev, 
		_IDL_SEQUENCE_somModifier* somModifiers)
{
/*
 *  [SOM-unique extension]
 * 
 *  The somModifiers attribute is a sequence containing all of
 *  the "modifiers" attached to the corresponding IDL object in
 *  the SOM-unique implementation section of the IDL file where
 *  the receiving object was originally defined.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_Contained),
	 ((somTD_InterfaceDef__set_somModifiers)(ContainedClassData._set_somModifiers))(((InterfaceDef *)((void *)this)), ev,somModifiers)
	);
}


/* method: within */
_IDL_SEQUENCE_Container   within(Environment *ev)
{
/*
 *  Returns a list of objects that contain the receiving object.
 *  If the object is an interface or module, it can only be contained
 *  by the object that defines it.  Other objects can be contained by
 *  objects that define or inherit them.
 * 
 *  When you have finished using the sequence returned by this method
 *  it is your responsibility to release the storage allocated for it.
 *  To free the sequence, use a call similar to the following:
 * 
 * 	  if (seqname._length)
 * 	      long i;
 * 	      for(i=0; i<seqname._length; i++)
 * 		_somFree(seqname._buffer[i]);
 * 	      SOMFree (seqname._buffer);
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_Contained),
	 ((somTD_InterfaceDef_within)(ContainedClassData.within))(((InterfaceDef *)((void *)this)), ev)
	);
}


/* method: describe */
Contained_Description   describe(Environment *ev)
{
/*
 *  Returns a structure containing all of the attributes defined in
 *  the interface of the receiving object.
 * 
 *  Warning: this method returns pointers to things withing objects
 *  (for example, name).  Don't use the somFree method to release
 *  any of these objects while this information is still needed..
 * 
 *  When you have finished using the information in the returned
 *  Description structure, it is your responsibility to release
 *  the associated storage using a call similar to the following:
 * 
 * 	  if (desc.value._value)
 * 	      SOMFree (desc.value._value);
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_Contained),
	 ((somTD_InterfaceDef_describe)(ContainedClassData.describe))(((InterfaceDef *)((void *)this)), ev)
	);
}


/* method: somFree */
void   somFree()
{
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somFree)(SOMObjectClassData.somFree))(((InterfaceDef *)((void *)this)))
	);
}


/* initializer method: somDefaultInit */
void   somDefaultInit(som3InitCtrl* ctrl)
{
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDefaultInit)(SOMObjectClassData.somDefaultInit))(((InterfaceDef *)((void *)this)),ctrl)
	);
}


/* method: somDestruct */
void   somDestruct(octet doFree, 
		som3DestructCtrl* ctrl)
{
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDestruct)(SOMObjectClassData.somDestruct))(((InterfaceDef *)((void *)this)),doFree,ctrl)
	);
}


/* method: somDumpSelf */
void   somDumpSelf(long level)
{
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDumpSelf)(SOMObjectClassData.somDumpSelf))(((InterfaceDef *)((void *)this)),level)
	);
}


/* method: somDumpSelfInt */
void   somDumpSelfInt(long level)
{
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDumpSelfInt)(SOMObjectClassData.somDumpSelfInt))(((InterfaceDef *)((void *)this)),level)
	);
}


/* initializer method: somDefaultCopyInit */
void   somDefaultCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor. Use this to make copies of objects for
 *  calling methods with "by-value" argument semantics.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDefaultCopyInit)(SOMObjectClassData.somDefaultCopyInit))(((InterfaceDef *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultAssign */
InterfaceDef*  somDefaultAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator. Use this to "assign" the state of one
 *  object to another.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDefaultAssign)(SOMObjectClassData.somDefaultAssign))(((InterfaceDef *)((void *)this)),ctrl,fromObj)
	);
}


/* initializer method: somDefaultConstCopyInit */
void   somDefaultConstCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor that uses a const fromObj.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDefaultConstCopyInit)(SOMObjectClassData.somDefaultConstCopyInit))(((InterfaceDef *)((void *)this)),ctrl,fromObj)
	);
}


/* initializer method: somDefaultVCopyInit */
void   somDefaultVCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor that uses a volatile fromObj.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDefaultVCopyInit)(SOMObjectClassData.somDefaultVCopyInit))(((InterfaceDef *)((void *)this)),ctrl,fromObj)
	);
}


/* initializer method: somDefaultConstVCopyInit */
void   somDefaultConstVCopyInit(som3InitCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default copy constructor that uses a const volatile fromObj.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDefaultConstVCopyInit)(SOMObjectClassData.somDefaultConstVCopyInit))(((InterfaceDef *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultConstAssign */
InterfaceDef*  somDefaultConstAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator that uses a const fromObj.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDefaultConstAssign)(SOMObjectClassData.somDefaultConstAssign))(((InterfaceDef *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultVAssign */
InterfaceDef*  somDefaultVAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator that uses a volatile fromObj.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDefaultVAssign)(SOMObjectClassData.somDefaultVAssign))(((InterfaceDef *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultConstVAssign */
InterfaceDef*  somDefaultConstVAssign(som3AssignCtrl* ctrl, 
		SOMObject* fromObj)
{
/*
 *  A default assignment operator that uses a const volatile fromObj.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDefaultConstVAssign)(SOMObjectClassData.somDefaultConstVAssign))(((InterfaceDef *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somInit */
void   somInit()
{
/*
 *  Obsolete but still supported. Override somDefaultInit instead of somInit.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somInit)(SOMObjectClassData.somInit))(((InterfaceDef *)((void *)this)))
	);
}


/* method: somUninit */
void   somUninit()
{
/*
 *  Obsolete but still supported. Override somDestruct instead of somUninit.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somUninit)(SOMObjectClassData.somUninit))(((InterfaceDef *)((void *)this)))
	);
}


/* method: somGetClass */
SOMClass*   somGetClass()
{
/*
 *  Return the receiver's class.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somGetClass)(SOMObjectClassData.somGetClass))(((InterfaceDef *)((void *)this)))
	);
}


/* method: somGetClassName */
string   somGetClassName()
{
/*
 *  Return the name of the receiver's class.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somGetClassName)(SOMObjectClassData.somGetClassName))(((InterfaceDef *)((void *)this)))
	);
}


/* method: somGetSize */
long   somGetSize()
{
/*
 *  Return the size of the receiver.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somGetSize)(SOMObjectClassData.somGetSize))(((InterfaceDef *)((void *)this)))
	);
}


/* method: somIsA */
boolean   somIsA(SOMClass* aClassObj)
{
/*
 *  Returns 1 (true) if the receiver responds to methods
 *  introduced by <aClassObj>, and 0 (false) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somIsA)(SOMObjectClassData.somIsA))(((InterfaceDef *)((void *)this)),aClassObj)
	);
}


/* method: somIsInstanceOf */
boolean   somIsInstanceOf(SOMClass* aClassObj)
{
/*
 *  Returns 1 (true) if the receiver is an instance of
 *  <aClassObj> and 0 (false) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somIsInstanceOf)(SOMObjectClassData.somIsInstanceOf))(((InterfaceDef *)((void *)this)),aClassObj)
	);
}


/* method: somRespondsTo */
boolean   somRespondsTo(somId mId)
{
/*
 *  Returns 1 (true) if the indicated method can be invoked
 *  on the receiver and 0 (false) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somRespondsTo)(SOMObjectClassData.somRespondsTo))(((InterfaceDef *)((void *)this)),mId)
	);
}


/* va_list method: somDispatch */

/*
 *  This method provides a generic, class-specific dispatch mechanism.
 *  It accepts as input <retValue> a pointer to the memory area to be
 *  loaded with the result of dispatching the method indicated by
 *  <methodId> using the arguments in <ap>. <ap> contains the object
 *  on which the method is to be invoked as the first argument.
 * 
 *  Default redispatch stubs invoke this method.
 */
/* the va_list invocation form */
boolean   SOMObject_somDispatch(somToken* retValue, 
		somId methodId, 
		va_list ap)
{   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDispatch)(SOMObjectClassData.somDispatch))(((InterfaceDef *)((void *)this)),retValue,methodId,ap)
	);
}

/* the varargs invocation form */
boolean   somDispatch(somToken* retValue, 
		somId methodId, 
		...)
{
/*
 *  This method provides a generic, class-specific dispatch mechanism.
 *  It accepts as input <retValue> a pointer to the memory area to be
 *  loaded with the result of dispatching the method indicated by
 *  <methodId> using the arguments in <ap>. <ap> contains the object
 *  on which the method is to be invoked as the first argument.
 * 
 *  Default redispatch stubs invoke this method.
 */
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somDispatch)(SOMObjectClassData.somDispatch))(((InterfaceDef *)((void *)this)),retValue,methodId,ap)
	);
   va_end(ap);
   return __somResult;
}


/* va_list method: somClassDispatch */

/*
 *  Like somDispatch, but method resolution for static methods is done
 *  according to the clsObj instance method table.
 */
/* the va_list invocation form */
boolean   SOMObject_somClassDispatch(SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap)
{   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((InterfaceDef *)((void *)this)),clsObj,retValue,methodId,ap)
	);
}

/* the varargs invocation form */
boolean   somClassDispatch(SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		...)
{
/*
 *  Like somDispatch, but method resolution for static methods is done
 *  according to the clsObj instance method table.
 */
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((InterfaceDef *)((void *)this)),clsObj,retValue,methodId,ap)
	);
   va_end(ap);
   return __somResult;
}


/* method: somCastObj */
boolean   somCastObj(SOMClass* castedCls)
{
/*
 *  Changes the behavior of the target object to that implemented
 *  by castedCls. This is possible when all concrete data in castedCls
 *  is also concrete in the true class of the target object.
 *  Returns true (1) on success, and false (0) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somCastObj)(SOMObjectClassData.somCastObj))(((InterfaceDef *)((void *)this)),castedCls)
	);
}


/* method: somResetObj */
boolean   somResetObj()
{
/*
 *  reset an object to its true class. Returns true always.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somResetObj)(SOMObjectClassData.somResetObj))(((InterfaceDef *)((void *)this)))
	);
}


/* method: somPrintSelf */
InterfaceDef*  somPrintSelf()
{
/*
 *  Uses <SOMOutCharRoutine> to write a brief string with identifying
 *  information about this object.  The default implementation just gives
 *  the object's class name and its address in memory.
 *  <self> is returned.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_InterfaceDef_somPrintSelf)(SOMObjectClassData.somPrintSelf))(((InterfaceDef *)((void *)this)))
	);
}


/* method: contents */
_IDL_SEQUENCE_Contained   contents(Environment *ev, 
		Container_InterfaceName limit_type, 
		boolean exclude_inherited)
{
/*
 *  Returns a list of objects contained by the receiving object.
 *  This operation is used to navigate thru the hierarchy of objects.
 *  Starting with the Repository object, use this operation to list
 *  all of the objects in the Repository, then all of the objects
 *  within the ModuleDef objects, then all of the objects in the
 *  InterfaceDefs, etc.
 * 
 *  If restrict_type is set to "all", objects of all interface types
 *  are returned, otherwise only objects of the requested interface type
 *  will be returned.  If exclude_inherited is set to TRUE, inherited
 *  objects, if any, will not be returned.
 * 
 *  You are responsible for freeing the contents of the returned
 *  sequence when you are finished with it.	Use a code fragment
 *  similar to the following to free it:
 * 
 * 	  if (containedSeq._length)
 * 	      long i;
 * 	      for(i=0; i<containedSeq._length; i++)
 * 		SOMObject_somFree(containedSeq._buffer[i]);
 * 	      SOMFree (containedSeq._buffer);
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_Container),
	 ((somTD_InterfaceDef_contents)(ContainerClassData.contents))(((InterfaceDef *)((void *)this)), ev,limit_type,exclude_inherited)
	);
}


/* method: lookup_name */
_IDL_SEQUENCE_Contained   lookup_name(Environment *ev, 
		Identifier search_name, 
		long levels_to_search, 
		Container_InterfaceName limit_type, 
		boolean exclude_inherited)
{
/*
 *  Locates an object by name within the receiving object, or within
 *  objects contained in the receiving object.  Search_name specifies
 *  the name of the object to be found.  Levels_to_search controls
 *  whether the lookup is constrained to the receiving object or
 *  whether it includes objects contained withing the receiving object.
 *  (Set levels_to_search to -1 to search the receiver and all contained
 *  objects, -- set it to 1 to search the receiver only.)  If
 *  limit_type is set to "all", objects of all interface types
 *  are returned, otherwise only objects of the requested interface type
 *  will be returned.  Only the values "AttributeDef", "ConstantDef",
 *  "ExceptionDef", "InterfaceDef", "ModuleDef", "ParameterDef",
 *  "OperationDef", "TypeDef", or "all" may be specified for limit_type.
 *  If exclude_inherited is set to TRUE, inherited objects will not be
 *  included in the returned sequence.
 * 
 *  You are responsible for freeing the contents of the returned
 *  sequence when you are finished with it.	Use a code fragment
 *  similar to the following to free it:
 * 
 * 	  if (containedSeq._length)
 * 	      long i;
 * 	      for(i=0; i<containedSeq._length; i++)
 * 		SOMObject_somFree(containedSeq._buffer[i]);
 * 	      SOMFree (containedSeq._buffer);
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_Container),
	 ((somTD_InterfaceDef_lookup_name)(ContainerClassData.lookup_name))(((InterfaceDef *)((void *)this)), ev,search_name,levels_to_search,limit_type,exclude_inherited)
	);
}


/* method: describe_contents */
_IDL_SEQUENCE_Container_ContainerDescription   describe_contents(Environment *ev, 
		Container_InterfaceName limit_type, 
		boolean exclude_inherited, 
		long max_returned_objs)
{
/*
 *  Combines the "contents" operation and the "describe" operation.  For
 *  each object returned by the contents operation, the description of
 *  the object is returned by invoking its "describe" operation.
 * 
 *  Max_returned_objs can be used to limit the number of objects that can
 *  be returned.  If max_returned_objs is set to -1, results for all
 *  contained objects will be returned.
 * 
 *  Note: You should SOMFree result._buffer when you are done with it
 *  as well as result._buffer[x].value._value !
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_Container),
	 ((somTD_InterfaceDef_describe_contents)(ContainerClassData.describe_contents))(((InterfaceDef *)((void *)this)), ev,limit_type,exclude_inherited,max_returned_objs)
	);
}



};   /* InterfaceDef */



#endif       /* SOM_InterfaceDef_xh */
