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

#ifndef SOM_AttributeDef_xh
#define SOM_AttributeDef_xh


/*
 *  This interface is used to access information associated with
 *  attributes defined in an IDL interface.
 * 
 *  See CORBA 1.1, 7.5.5, p.135
 */

#define AttributeDef_MajorVersion 2
#define AttributeDef_MinorVersion 3
class AttributeDef;

/*
 *  This interface is used to access information associated with
 *  attributes defined in an IDL interface.
 * 
 *  See CORBA 1.1, 7.5.5, p.135
 */

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

    #include <somtcnst.xh>
    #include <somir.xh>
    #include <containd.xh>


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

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

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

/*
 * Start of bindings for IDL types
 */

class SOMClass;
class SOMObject;
class Container;
typedef unsigned long AttributeDef_AttributeMode;
#define AttributeDef_NORMAL 1UL
#define AttributeDef_READONLY 2UL
typedef
struct AttributeDef_AttributeDescription {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
TypeCode type;
AttributeDef_AttributeMode mode;
} AttributeDef_AttributeDescription;
/*
 *  The inherited describe method returns an instance of this
 *  (AttributeDescription) structure in the "value" member of the
 *  Description structure defined in the Contained interface.
 */


#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_AttributeMode
    #ifdef AttributeMode
        #undef AttributeMode
        #define SOMTGD_AttributeMode 1
    #else
        #define AttributeMode AttributeDef_AttributeMode
    #endif /* AttributeMode */
#endif /* SOMTGD_AttributeMode */
#ifndef SOMTGD_AttributeDescription
    #ifdef AttributeDescription
        #undef AttributeDescription
        #define SOMTGD_AttributeDescription 1
    #else
        #define AttributeDescription AttributeDef_AttributeDescription
    #endif /* AttributeDescription */
#endif /* SOMTGD_AttributeDescription */
#endif /* SOM_DONT_USE_SHORT_NAMES */

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

/*
 * A function to create the AttributeDef class object...
 */
SOMEXTERN SOM_IMPORTEXPORT_somir_attribdf SOMClass * SOMLINK AttributeDefNewClass(
		integer4 majorVersion,
		integer4 minorVersion);


/*
 * The API 2 ClassData Structures...
 */
SOMEXTERN struct AttributeDefClassDataStructure {
	SOMClass *classObject;
	somMToken _get_type;
	somMToken _set_type;
	somMToken _get_mode;
	somMToken _set_mode;
} SOMDLINK SOM_IMPORTEXPORT_somir_attribdf AttributeDefClassData;
SOMEXTERN struct AttributeDefCClassDataStructure {
	som3ClassDetailsPtr    parentMtab;
	somDToken              instanceDataToken;
} SOMDLINK SOM_IMPORTEXPORT_somir_attribdf AttributeDefCClassData;


/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_AttributeDef (AttributeDefClassData.classObject)
#ifndef SOMGD_AttributeDef
    #if (defined(_AttributeDef) || defined(__AttributeDef))
        #undef _AttributeDef
        #undef __AttributeDef
        #define SOMGD_AttributeDef 1
    #else
        #define _AttributeDef _SOMCLASS_AttributeDef
    #endif /* _AttributeDef */
#endif /* SOMGD_AttributeDef */
#define AttributeDef_classObj _SOMCLASS_AttributeDef
#define _SOMMTOKEN_AttributeDef(method) ((somMToken)AttributeDefClassData.method)

/*
 * -- Typedefs for AttributeDef Method Procedures
 */
SOMEXTERN {
typedef TypeCode   SOMLINK somTP_AttributeDef__get_type(AttributeDef *somSelf, Environment *ev);
typedef somTP_AttributeDef__get_type *somTD_AttributeDef__get_type;
typedef void   SOMLINK somTP_AttributeDef__set_type(AttributeDef *somSelf, Environment *ev, 
		TypeCode type);
typedef somTP_AttributeDef__set_type *somTD_AttributeDef__set_type;
typedef AttributeDef_AttributeMode   SOMLINK somTP_AttributeDef__get_mode(AttributeDef *somSelf, Environment *ev);
typedef somTP_AttributeDef__get_mode *somTD_AttributeDef__get_mode;
typedef void   SOMLINK somTP_AttributeDef__set_mode(AttributeDef *somSelf, Environment *ev, 
		AttributeDef_AttributeMode mode);
typedef somTP_AttributeDef__set_mode *somTD_AttributeDef__set_mode;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef Identifier   SOMLINK somTP_AttributeDef__get_name(AttributeDef *somSelf, Environment *ev);
typedef somTP_AttributeDef__get_name *somTD_AttributeDef__get_name;
typedef void   SOMLINK somTP_AttributeDef__set_name(AttributeDef *somSelf, Environment *ev, 
		Identifier name);
typedef somTP_AttributeDef__set_name *somTD_AttributeDef__set_name;
typedef RepositoryId   SOMLINK somTP_AttributeDef__get_id(AttributeDef *somSelf, Environment *ev);
typedef somTP_AttributeDef__get_id *somTD_AttributeDef__get_id;
typedef void   SOMLINK somTP_AttributeDef__set_id(AttributeDef *somSelf, Environment *ev, 
		RepositoryId id);
typedef somTP_AttributeDef__set_id *somTD_AttributeDef__set_id;
typedef RepositoryId   SOMLINK somTP_AttributeDef__get_defined_in(AttributeDef *somSelf, Environment *ev);
typedef somTP_AttributeDef__get_defined_in *somTD_AttributeDef__get_defined_in;
typedef void   SOMLINK somTP_AttributeDef__set_defined_in(AttributeDef *somSelf, Environment *ev, 
		RepositoryId defined_in);
typedef somTP_AttributeDef__set_defined_in *somTD_AttributeDef__set_defined_in;
typedef _IDL_SEQUENCE_somModifier   SOMLINK somTP_AttributeDef__get_somModifiers(AttributeDef *somSelf, Environment *ev);
typedef somTP_AttributeDef__get_somModifiers *somTD_AttributeDef__get_somModifiers;
typedef void   SOMLINK somTP_AttributeDef__set_somModifiers(AttributeDef *somSelf, Environment *ev, 
		_IDL_SEQUENCE_somModifier* somModifiers);
typedef somTP_AttributeDef__set_somModifiers *somTD_AttributeDef__set_somModifiers;
typedef _IDL_SEQUENCE_Container   SOMLINK somTP_AttributeDef_within(AttributeDef *somSelf, Environment *ev);
typedef somTP_AttributeDef_within *somTD_AttributeDef_within;
typedef Contained_Description   SOMLINK somTP_AttributeDef_describe(AttributeDef *somSelf, Environment *ev);
typedef somTP_AttributeDef_describe *somTD_AttributeDef_describe;
typedef void   SOMLINK somTP_AttributeDef_somFree(AttributeDef *somSelf);
typedef somTP_AttributeDef_somFree *somTD_AttributeDef_somFree;
typedef void   SOMLINK somTP_AttributeDef_somDefaultInit(AttributeDef *somSelf, 
		som3InitCtrl* ctrl);
typedef somTP_AttributeDef_somDefaultInit *somTD_AttributeDef_somDefaultInit;
typedef void   SOMLINK somTP_AttributeDef_somDestruct(AttributeDef *somSelf, 
		octet doFree, 
		som3DestructCtrl* ctrl);
typedef somTP_AttributeDef_somDestruct *somTD_AttributeDef_somDestruct;
typedef void   SOMLINK somTP_AttributeDef_somDumpSelf(AttributeDef *somSelf, 
		long level);
typedef somTP_AttributeDef_somDumpSelf *somTD_AttributeDef_somDumpSelf;
typedef void   SOMLINK somTP_AttributeDef_somDumpSelfInt(AttributeDef *somSelf, 
		long level);
typedef somTP_AttributeDef_somDumpSelfInt *somTD_AttributeDef_somDumpSelfInt;
typedef void   SOMLINK somTP_AttributeDef_somDefaultCopyInit(AttributeDef *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_AttributeDef_somDefaultCopyInit *somTD_AttributeDef_somDefaultCopyInit;
typedef AttributeDef*   SOMLINK somTP_AttributeDef_somDefaultAssign(AttributeDef *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_AttributeDef_somDefaultAssign *somTD_AttributeDef_somDefaultAssign;
typedef void   SOMLINK somTP_AttributeDef_somDefaultConstCopyInit(AttributeDef *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_AttributeDef_somDefaultConstCopyInit *somTD_AttributeDef_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_AttributeDef_somDefaultVCopyInit(AttributeDef *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_AttributeDef_somDefaultVCopyInit *somTD_AttributeDef_somDefaultVCopyInit;
typedef void   SOMLINK somTP_AttributeDef_somDefaultConstVCopyInit(AttributeDef *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_AttributeDef_somDefaultConstVCopyInit *somTD_AttributeDef_somDefaultConstVCopyInit;
typedef AttributeDef*   SOMLINK somTP_AttributeDef_somDefaultConstAssign(AttributeDef *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_AttributeDef_somDefaultConstAssign *somTD_AttributeDef_somDefaultConstAssign;
typedef AttributeDef*   SOMLINK somTP_AttributeDef_somDefaultVAssign(AttributeDef *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_AttributeDef_somDefaultVAssign *somTD_AttributeDef_somDefaultVAssign;
typedef AttributeDef*   SOMLINK somTP_AttributeDef_somDefaultConstVAssign(AttributeDef *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_AttributeDef_somDefaultConstVAssign *somTD_AttributeDef_somDefaultConstVAssign;
typedef void   SOMLINK somTP_AttributeDef_somInit(AttributeDef *somSelf);
typedef somTP_AttributeDef_somInit *somTD_AttributeDef_somInit;
typedef void   SOMLINK somTP_AttributeDef_somUninit(AttributeDef *somSelf);
typedef somTP_AttributeDef_somUninit *somTD_AttributeDef_somUninit;
typedef SOMClass*   SOMLINK somTP_AttributeDef_somGetClass(AttributeDef *somSelf);
typedef somTP_AttributeDef_somGetClass *somTD_AttributeDef_somGetClass;
typedef string   SOMLINK somTP_AttributeDef_somGetClassName(AttributeDef *somSelf);
typedef somTP_AttributeDef_somGetClassName *somTD_AttributeDef_somGetClassName;
typedef long   SOMLINK somTP_AttributeDef_somGetSize(AttributeDef *somSelf);
typedef somTP_AttributeDef_somGetSize *somTD_AttributeDef_somGetSize;
typedef boolean   SOMLINK somTP_AttributeDef_somIsA(AttributeDef *somSelf, 
		SOMClass* aClassObj);
typedef somTP_AttributeDef_somIsA *somTD_AttributeDef_somIsA;
typedef boolean   SOMLINK somTP_AttributeDef_somIsInstanceOf(AttributeDef *somSelf, 
		SOMClass* aClassObj);
typedef somTP_AttributeDef_somIsInstanceOf *somTD_AttributeDef_somIsInstanceOf;
typedef boolean   SOMLINK somTP_AttributeDef_somRespondsTo(AttributeDef *somSelf, 
		somId mId);
typedef somTP_AttributeDef_somRespondsTo *somTD_AttributeDef_somRespondsTo;
typedef boolean   SOMLINK somTP_AttributeDef_somDispatch(AttributeDef *somSelf, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_AttributeDef_somDispatch *somTD_AttributeDef_somDispatch;
typedef boolean   SOMLINK somTP_AttributeDef_somClassDispatch(AttributeDef *somSelf, 
		SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_AttributeDef_somClassDispatch *somTD_AttributeDef_somClassDispatch;
typedef boolean   SOMLINK somTP_AttributeDef_somCastObj(AttributeDef *somSelf, 
		SOMClass* castedCls);
typedef somTP_AttributeDef_somCastObj *somTD_AttributeDef_somCastObj;
typedef boolean   SOMLINK somTP_AttributeDef_somResetObj(AttributeDef *somSelf);
typedef somTP_AttributeDef_somResetObj *somTD_AttributeDef_somResetObj;
typedef AttributeDef*   SOMLINK somTP_AttributeDef_somPrintSelf(AttributeDef *somSelf);
typedef somTP_AttributeDef_somPrintSelf *somTD_AttributeDef_somPrintSelf;
}

#endif /* AttributeDef_API */


/*
 * -- The C++ Wrapper Class for AttributeDef
 */
class AttributeDef : public Contained
{
/*
 *  This interface is used to access information associated with
 *  attributes defined in an IDL interface.
 * 
 *  See CORBA 1.1, 7.5.5, p.135
 */
public:

// AttributeDef::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 (!_AttributeDef) AttributeDefNewClass(AttributeDef_MajorVersion,AttributeDef_MinorVersion);
   return (void*)
   (((somTD_SOMClass_somNewNoInit)(SOMClassClassData.somNewNoInit))
         ((SOMClass *)((void*)_AttributeDef)));
}

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

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

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

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


/* method: _get_type */
TypeCode   _get_type(Environment *ev)
{
/*
 *  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.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_AttributeDef),
	 ((somTD_AttributeDef__get_type)(AttributeDefClassData._get_type))(((AttributeDef *)((void *)this)), ev)
	);
}


/* method: _set_type */
void   _set_type(Environment *ev, 
		TypeCode 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.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_AttributeDef),
	 ((somTD_AttributeDef__set_type)(AttributeDefClassData._set_type))(((AttributeDef *)((void *)this)), ev,type)
	);
}


/* method: _get_mode */
AttributeDef_AttributeMode   _get_mode(Environment *ev)
{
/*
 *  The AttributeMode of the receiving object;
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_AttributeDef),
	 ((somTD_AttributeDef__get_mode)(AttributeDefClassData._get_mode))(((AttributeDef *)((void *)this)), ev)
	);
}


/* method: _set_mode */
void   _set_mode(Environment *ev, 
		AttributeDef_AttributeMode mode)
{
/*
 *  The AttributeMode of the receiving object;
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_AttributeDef),
	 ((somTD_AttributeDef__set_mode)(AttributeDefClassData._set_mode))(((AttributeDef *)((void *)this)), ev,mode)
	);
}


/*
 * 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_AttributeDef__get_name)(ContainedClassData._get_name))(((AttributeDef *)((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_AttributeDef__set_name)(ContainedClassData._set_name))(((AttributeDef *)((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_AttributeDef__get_id)(ContainedClassData._get_id))(((AttributeDef *)((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_AttributeDef__set_id)(ContainedClassData._set_id))(((AttributeDef *)((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_AttributeDef__get_defined_in)(ContainedClassData._get_defined_in))(((AttributeDef *)((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_AttributeDef__set_defined_in)(ContainedClassData._set_defined_in))(((AttributeDef *)((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_AttributeDef__get_somModifiers)(ContainedClassData._get_somModifiers))(((AttributeDef *)((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_AttributeDef__set_somModifiers)(ContainedClassData._set_somModifiers))(((AttributeDef *)((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_AttributeDef_within)(ContainedClassData.within))(((AttributeDef *)((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_AttributeDef_describe)(ContainedClassData.describe))(((AttributeDef *)((void *)this)), ev)
	);
}


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


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


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


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


/* method: somDumpSelfInt */
void   somDumpSelfInt(long level)
{
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_AttributeDef_somDumpSelfInt)(SOMObjectClassData.somDumpSelfInt))(((AttributeDef *)((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_AttributeDef_somDefaultCopyInit)(SOMObjectClassData.somDefaultCopyInit))(((AttributeDef *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultAssign */
AttributeDef*  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_AttributeDef_somDefaultAssign)(SOMObjectClassData.somDefaultAssign))(((AttributeDef *)((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_AttributeDef_somDefaultConstCopyInit)(SOMObjectClassData.somDefaultConstCopyInit))(((AttributeDef *)((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_AttributeDef_somDefaultVCopyInit)(SOMObjectClassData.somDefaultVCopyInit))(((AttributeDef *)((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_AttributeDef_somDefaultConstVCopyInit)(SOMObjectClassData.somDefaultConstVCopyInit))(((AttributeDef *)((void *)this)),ctrl,fromObj)
	);
}


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


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


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


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


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


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


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


/* method: somGetSize */
long   somGetSize()
{
/*
 *  Return the size of the receiver.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_AttributeDef_somGetSize)(SOMObjectClassData.somGetSize))(((AttributeDef *)((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_AttributeDef_somIsA)(SOMObjectClassData.somIsA))(((AttributeDef *)((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_AttributeDef_somIsInstanceOf)(SOMObjectClassData.somIsInstanceOf))(((AttributeDef *)((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_AttributeDef_somRespondsTo)(SOMObjectClassData.somRespondsTo))(((AttributeDef *)((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_AttributeDef_somDispatch)(SOMObjectClassData.somDispatch))(((AttributeDef *)((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_AttributeDef_somDispatch)(SOMObjectClassData.somDispatch))(((AttributeDef *)((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_AttributeDef_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((AttributeDef *)((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_AttributeDef_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((AttributeDef *)((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_AttributeDef_somCastObj)(SOMObjectClassData.somCastObj))(((AttributeDef *)((void *)this)),castedCls)
	);
}


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


/* method: somPrintSelf */
AttributeDef*  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_AttributeDef_somPrintSelf)(SOMObjectClassData.somPrintSelf))(((AttributeDef *)((void *)this)))
	);
}



};   /* AttributeDef */



#endif       /* SOM_AttributeDef_xh */
