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

/*
 *   COMPONENT_NAME: some
 * 
 *   ORIGINS: 27
 * 
 * 
 *    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1994,1996
 *   All Rights Reserved
 *   Licensed Materials - Property of IBM
 *   US Government Users Restricted Rights - Use, duplication or
 *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 *  @(#) somc/sctypes.h 2.10 5/22/96 13:13:27 [12/22/96 21:12:13]
 * 
 */


#ifndef SOM_SOMTEnumEntryC_xh
#define SOM_SOMTEnumEntryC_xh


#define SOMTEnumEntryC_MajorVersion 2
#define SOMTEnumEntryC_MinorVersion 1
class SOMTEnumEntryC;

/* Parents */
#ifndef SOM_SOMTEntryC_xh
#ifdef SOMLOCALINCLUDES
#include "scentry.xh"
#else
#include <scentry.xh>
#endif
#endif

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

#ifndef SOMTEnumEntryC_API
#define SOMTEnumEntryC_API
/*
 * -- The Class API
 */
#ifndef SOM_IMPORTEXPORT_some_scenum
#ifdef SOM_DLL_some
	/* export semantics */
	#if defined(SOM_DEFFILE_some)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_some))\
	|| !defined(SOM_Module_scenum_Source)
	#define SOM_IMPORTEXPORT_some_scenum
	#else
	#define SOM_IMPORTEXPORT_some_scenum SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_some_scenum SOMDLLIMPORT
#endif
#endif

/*
 * Start of bindings for IDL types
 */

class SOMClass;
class SOMObject;
class SOMTEntryC;
class SOMTEmitC;
class SOMTMetaClassEntryC;
class SOMTAttributeEntryC;
class SOMTTypedefEntryC;
class SOMTBaseClassEntryC;
class SOMTPassthruEntryC;
class SOMTDataEntryC;
class SOMTMethodEntryC;
class SOMTClassEntryC;
class SOMTModuleEntryC;
class SOMTParameterEntryC;
class SOMTStructEntryC;
class SOMTUnionEntryC;
class SOMTEnumEntryC;
class SOMTConstEntryC;
class SOMTSequenceEntryC;
class SOMTStringEntryC;
class SOMTEnumNameEntryC;
class SOMTCommonEntryC;
class SOMTUserDefinedTypeEntryC;
class SOMTEnumNameC;

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

/*
 * A function to create the SOMTEnumEntryC class object...
 */
SOMEXTERN SOM_IMPORTEXPORT_some_scenum SOMClass * SOMLINK SOMTEnumEntryCNewClass(
		integer4 majorVersion,
		integer4 minorVersion);


/*
 * The API 2 ClassData Structures...
 */
SOMEXTERN struct SOMTEnumEntryCClassDataStructure {
	SOMClass *classObject;
	somMToken somtGetFirstEnumName;
	somMToken somtGetNextEnumName;
} SOMDLINK SOM_IMPORTEXPORT_some_scenum SOMTEnumEntryCClassData;
SOMEXTERN struct SOMTEnumEntryCCClassDataStructure {
	som3ClassDetailsPtr    parentMtab;
	somDToken              instanceDataToken;
} SOMDLINK SOM_IMPORTEXPORT_some_scenum SOMTEnumEntryCCClassData;


/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_SOMTEnumEntryC (SOMTEnumEntryCClassData.classObject)
#ifndef SOMGD_SOMTEnumEntryC
    #if (defined(_SOMTEnumEntryC) || defined(__SOMTEnumEntryC))
        #undef _SOMTEnumEntryC
        #undef __SOMTEnumEntryC
        #define SOMGD_SOMTEnumEntryC 1
    #else
        #define _SOMTEnumEntryC _SOMCLASS_SOMTEnumEntryC
    #endif /* _SOMTEnumEntryC */
#endif /* SOMGD_SOMTEnumEntryC */
#define SOMTEnumEntryC_classObj _SOMCLASS_SOMTEnumEntryC
#define _SOMMTOKEN_SOMTEnumEntryC(method) ((somMToken)SOMTEnumEntryCClassData.method)

/*
 * -- Typedefs for SOMTEnumEntryC Method Procedures
 */
SOMEXTERN {
typedef SOMTEnumNameEntryC*   SOMLINK somTP_SOMTEnumEntryC_somtGetFirstEnumName(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC_somtGetFirstEnumName *somTD_SOMTEnumEntryC_somtGetFirstEnumName;
typedef SOMTEnumNameEntryC*   SOMLINK somTP_SOMTEnumEntryC_somtGetNextEnumName(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC_somtGetNextEnumName *somTD_SOMTEnumEntryC_somtGetNextEnumName;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef string   SOMLINK somTP_SOMTEnumEntryC__get_somtEntryName(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC__get_somtEntryName *somTD_SOMTEnumEntryC__get_somtEntryName;
typedef void   SOMLINK somTP_SOMTEnumEntryC__set_somtEntryName(SOMTEnumEntryC *somSelf, 
		string somtEntryName);
typedef somTP_SOMTEnumEntryC__set_somtEntryName *somTD_SOMTEnumEntryC__set_somtEntryName;
typedef SOMTTypes   SOMLINK somTP_SOMTEnumEntryC__get_somtElementType(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC__get_somtElementType *somTD_SOMTEnumEntryC__get_somtElementType;
typedef void   SOMLINK somTP_SOMTEnumEntryC__set_somtElementType(SOMTEnumEntryC *somSelf, 
		SOMTTypes somtElementType);
typedef somTP_SOMTEnumEntryC__set_somtElementType *somTD_SOMTEnumEntryC__set_somtElementType;
typedef string   SOMLINK somTP_SOMTEnumEntryC__get_somtElementTypeName(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC__get_somtElementTypeName *somTD_SOMTEnumEntryC__get_somtElementTypeName;
typedef string   SOMLINK somTP_SOMTEnumEntryC__get_somtEntryComment(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC__get_somtEntryComment *somTD_SOMTEnumEntryC__get_somtEntryComment;
typedef unsigned long   SOMLINK somTP_SOMTEnumEntryC__get_somtSourceLineNumber(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC__get_somtSourceLineNumber *somTD_SOMTEnumEntryC__get_somtSourceLineNumber;
typedef TypeCode   SOMLINK somTP_SOMTEnumEntryC__get_somtTypeCode(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC__get_somtTypeCode *somTD_SOMTEnumEntryC__get_somtTypeCode;
typedef boolean   SOMLINK somTP_SOMTEnumEntryC__get_somtIsReference(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC__get_somtIsReference *somTD_SOMTEnumEntryC__get_somtIsReference;
typedef string   SOMLINK somTP_SOMTEnumEntryC__get_somtIDLScopedName(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC__get_somtIDLScopedName *somTD_SOMTEnumEntryC__get_somtIDLScopedName;
typedef string   SOMLINK somTP_SOMTEnumEntryC__get_somtCScopedName(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC__get_somtCScopedName *somTD_SOMTEnumEntryC__get_somtCScopedName;
typedef string   SOMLINK somTP_SOMTEnumEntryC_somtGetModifierValue(SOMTEnumEntryC *somSelf, 
		string modifierName);
typedef somTP_SOMTEnumEntryC_somtGetModifierValue *somTD_SOMTEnumEntryC_somtGetModifierValue;
typedef boolean   SOMLINK somTP_SOMTEnumEntryC_somtGetFirstModifier(SOMTEnumEntryC *somSelf, 
		string* modifierName, 
		string* modifierValue);
typedef somTP_SOMTEnumEntryC_somtGetFirstModifier *somTD_SOMTEnumEntryC_somtGetFirstModifier;
typedef boolean   SOMLINK somTP_SOMTEnumEntryC_somtGetNextModifier(SOMTEnumEntryC *somSelf, 
		string* modifierName, 
		string* modifierValue);
typedef somTP_SOMTEnumEntryC_somtGetNextModifier *somTD_SOMTEnumEntryC_somtGetNextModifier;
typedef long   SOMLINK somTP_SOMTEnumEntryC_somtFormatModifier(SOMTEnumEntryC *somSelf, 
		string buffer, 
		string name, 
		string value);
typedef somTP_SOMTEnumEntryC_somtFormatModifier *somTD_SOMTEnumEntryC_somtFormatModifier;
typedef long   SOMLINK somTP_SOMTEnumEntryC_somtGetModifierList(SOMTEnumEntryC *somSelf, 
		string buffer);
typedef somTP_SOMTEnumEntryC_somtGetModifierList *somTD_SOMTEnumEntryC_somtGetModifierList;
typedef long   SOMLINK somTP_SOMTEnumEntryC_somtSetSymbolsOnEntry(SOMTEnumEntryC *somSelf, 
		SOMTEmitC* emitter, 
		string prefix);
typedef somTP_SOMTEnumEntryC_somtSetSymbolsOnEntry *somTD_SOMTEnumEntryC_somtSetSymbolsOnEntry;
typedef void   SOMLINK somTP_SOMTEnumEntryC_somtSetEntryStruct(SOMTEnumEntryC *somSelf, 
		Entry* es);
typedef somTP_SOMTEnumEntryC_somtSetEntryStruct *somTD_SOMTEnumEntryC_somtSetEntryStruct;
typedef void   SOMLINK somTP_SOMTEnumEntryC_somInit(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC_somInit *somTD_SOMTEnumEntryC_somInit;
typedef void   SOMLINK somTP_SOMTEnumEntryC_somUninit(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC_somUninit *somTD_SOMTEnumEntryC_somUninit;
typedef SOMTEnumEntryC*   SOMLINK somTP_SOMTEnumEntryC_somPrintSelf(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC_somPrintSelf *somTD_SOMTEnumEntryC_somPrintSelf;
typedef void   SOMLINK somTP_SOMTEnumEntryC_somDumpSelfInt(SOMTEnumEntryC *somSelf, 
		long level);
typedef somTP_SOMTEnumEntryC_somDumpSelfInt *somTD_SOMTEnumEntryC_somDumpSelfInt;
typedef void   SOMLINK somTP_SOMTEnumEntryC_somDumpSelf(SOMTEnumEntryC *somSelf, 
		long level);
typedef somTP_SOMTEnumEntryC_somDumpSelf *somTD_SOMTEnumEntryC_somDumpSelf;
typedef void   SOMLINK somTP_SOMTEnumEntryC_somDefaultInit(SOMTEnumEntryC *somSelf, 
		som3InitCtrl* ctrl);
typedef somTP_SOMTEnumEntryC_somDefaultInit *somTD_SOMTEnumEntryC_somDefaultInit;
typedef void   SOMLINK somTP_SOMTEnumEntryC_somDestruct(SOMTEnumEntryC *somSelf, 
		octet doFree, 
		som3DestructCtrl* ctrl);
typedef somTP_SOMTEnumEntryC_somDestruct *somTD_SOMTEnumEntryC_somDestruct;
typedef void   SOMLINK somTP_SOMTEnumEntryC_somDefaultCopyInit(SOMTEnumEntryC *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEnumEntryC_somDefaultCopyInit *somTD_SOMTEnumEntryC_somDefaultCopyInit;
typedef SOMTEnumEntryC*   SOMLINK somTP_SOMTEnumEntryC_somDefaultAssign(SOMTEnumEntryC *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEnumEntryC_somDefaultAssign *somTD_SOMTEnumEntryC_somDefaultAssign;
typedef void   SOMLINK somTP_SOMTEnumEntryC_somDefaultConstCopyInit(SOMTEnumEntryC *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEnumEntryC_somDefaultConstCopyInit *somTD_SOMTEnumEntryC_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_SOMTEnumEntryC_somDefaultVCopyInit(SOMTEnumEntryC *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEnumEntryC_somDefaultVCopyInit *somTD_SOMTEnumEntryC_somDefaultVCopyInit;
typedef void   SOMLINK somTP_SOMTEnumEntryC_somDefaultConstVCopyInit(SOMTEnumEntryC *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEnumEntryC_somDefaultConstVCopyInit *somTD_SOMTEnumEntryC_somDefaultConstVCopyInit;
typedef SOMTEnumEntryC*   SOMLINK somTP_SOMTEnumEntryC_somDefaultConstAssign(SOMTEnumEntryC *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEnumEntryC_somDefaultConstAssign *somTD_SOMTEnumEntryC_somDefaultConstAssign;
typedef SOMTEnumEntryC*   SOMLINK somTP_SOMTEnumEntryC_somDefaultVAssign(SOMTEnumEntryC *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEnumEntryC_somDefaultVAssign *somTD_SOMTEnumEntryC_somDefaultVAssign;
typedef SOMTEnumEntryC*   SOMLINK somTP_SOMTEnumEntryC_somDefaultConstVAssign(SOMTEnumEntryC *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEnumEntryC_somDefaultConstVAssign *somTD_SOMTEnumEntryC_somDefaultConstVAssign;
typedef void   SOMLINK somTP_SOMTEnumEntryC_somFree(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC_somFree *somTD_SOMTEnumEntryC_somFree;
typedef SOMClass*   SOMLINK somTP_SOMTEnumEntryC_somGetClass(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC_somGetClass *somTD_SOMTEnumEntryC_somGetClass;
typedef string   SOMLINK somTP_SOMTEnumEntryC_somGetClassName(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC_somGetClassName *somTD_SOMTEnumEntryC_somGetClassName;
typedef long   SOMLINK somTP_SOMTEnumEntryC_somGetSize(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC_somGetSize *somTD_SOMTEnumEntryC_somGetSize;
typedef boolean   SOMLINK somTP_SOMTEnumEntryC_somIsA(SOMTEnumEntryC *somSelf, 
		SOMClass* aClassObj);
typedef somTP_SOMTEnumEntryC_somIsA *somTD_SOMTEnumEntryC_somIsA;
typedef boolean   SOMLINK somTP_SOMTEnumEntryC_somIsInstanceOf(SOMTEnumEntryC *somSelf, 
		SOMClass* aClassObj);
typedef somTP_SOMTEnumEntryC_somIsInstanceOf *somTD_SOMTEnumEntryC_somIsInstanceOf;
typedef boolean   SOMLINK somTP_SOMTEnumEntryC_somRespondsTo(SOMTEnumEntryC *somSelf, 
		somId mId);
typedef somTP_SOMTEnumEntryC_somRespondsTo *somTD_SOMTEnumEntryC_somRespondsTo;
typedef boolean   SOMLINK somTP_SOMTEnumEntryC_somDispatch(SOMTEnumEntryC *somSelf, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_SOMTEnumEntryC_somDispatch *somTD_SOMTEnumEntryC_somDispatch;
typedef boolean   SOMLINK somTP_SOMTEnumEntryC_somClassDispatch(SOMTEnumEntryC *somSelf, 
		SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_SOMTEnumEntryC_somClassDispatch *somTD_SOMTEnumEntryC_somClassDispatch;
typedef boolean   SOMLINK somTP_SOMTEnumEntryC_somCastObj(SOMTEnumEntryC *somSelf, 
		SOMClass* castedCls);
typedef somTP_SOMTEnumEntryC_somCastObj *somTD_SOMTEnumEntryC_somCastObj;
typedef boolean   SOMLINK somTP_SOMTEnumEntryC_somResetObj(SOMTEnumEntryC *somSelf);
typedef somTP_SOMTEnumEntryC_somResetObj *somTD_SOMTEnumEntryC_somResetObj;
}

#endif /* SOMTEnumEntryC_API */


/*
 * -- The C++ Wrapper Class for SOMTEnumEntryC
 */
class SOMTEnumEntryC : public SOMTEntryC
{
public:

// SOMTEnumEntryC::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 (!_SOMTEnumEntryC) SOMTEnumEntryCNewClass(SOMTEnumEntryC_MajorVersion,SOMTEnumEntryC_MinorVersion);
   return (void*)
   (((somTD_SOMClass_somNewNoInit)(SOMClassClassData.somNewNoInit))
         ((SOMClass *)((void*)_SOMTEnumEntryC)));
}

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

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

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

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


/* method: somtGetFirstEnumName */
SOMTEnumNameEntryC*   somtGetFirstEnumName()
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEnumEntryC),
	 ((somTD_SOMTEnumEntryC_somtGetFirstEnumName)(SOMTEnumEntryCClassData.somtGetFirstEnumName))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/* method: somtGetNextEnumName */
SOMTEnumNameEntryC*   somtGetNextEnumName()
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEnumEntryC),
	 ((somTD_SOMTEnumEntryC_somtGetNextEnumName)(SOMTEnumEntryCClassData.somtGetNextEnumName))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/*
 * Reintroduce inherited methods
 */

/* method: _get_somtEntryName */
string   _get_somtEntryName()
{
/*
 *  The name associated with this entry.  Eg, the name of
 *  the data item, the class, the method, the type, etc.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC__get_somtEntryName)(SOMTEntryCClassData._get_somtEntryName))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/* method: _set_somtEntryName */
void   _set_somtEntryName(string somtEntryName)
{
/*
 *  The name associated with this entry.  Eg, the name of
 *  the data item, the class, the method, the type, etc.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC__set_somtEntryName)(SOMTEntryCClassData._set_somtEntryName))(((SOMTEnumEntryC *)((void *)this)),somtEntryName)
	);
}


/* method: _get_somtElementType */
SOMTTypes   _get_somtElementType()
{
/*
 *  Returns the type of this entry.
 *  This is not datatype, but entry type (method, class,
 *  passthru, etc.). The value is defined by SOMTTypes.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC__get_somtElementType)(SOMTEntryCClassData._get_somtElementType))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/* method: _set_somtElementType */
void   _set_somtElementType(SOMTTypes somtElementType)
{
/*
 *  Returns the type of this entry.
 *  This is not datatype, but entry type (method, class,
 *  passthru, etc.). The value is defined by SOMTTypes.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC__set_somtElementType)(SOMTEntryCClassData._set_somtElementType))(((SOMTEnumEntryC *)((void *)this)),somtElementType)
	);
}


/* method: _get_somtElementTypeName */
string   _get_somtElementTypeName()
{
/*
 *  String version of somtElementType.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC__get_somtElementTypeName)(SOMTEntryCClassData._get_somtElementTypeName))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/* method: _get_somtEntryComment */
string   _get_somtEntryComment()
{
/*
 *  Returns the comment associated with this entry, or NULL is this
 *  entry has no associated comment.  Comments will have comment
 *  delimitors removed, but will retain newline characters as
 *  specified in the source file. (use smLookupComment)
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC__get_somtEntryComment)(SOMTEntryCClassData._get_somtEntryComment))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/* method: _get_somtSourceLineNumber */
unsigned long   _get_somtSourceLineNumber()
{
/*
 *  Returns the line number in the source file where this entry's
 *  syntactic form ended.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC__get_somtSourceLineNumber)(SOMTEntryCClassData._get_somtSourceLineNumber))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/* method: _get_somtTypeCode */
TypeCode   _get_somtTypeCode()
{
/*
 *  The typecode, if appropriate, or NULL.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC__get_somtTypeCode)(SOMTEntryCClassData._get_somtTypeCode))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/* method: _get_somtIsReference */
boolean   _get_somtIsReference()
{
/*
 *  Whether the entry is just a reference to the real type (TRUE)
 *  rather than a declaration of it (FALSE).
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC__get_somtIsReference)(SOMTEntryCClassData._get_somtIsReference))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/* method: _get_somtIDLScopedName */
string   _get_somtIDLScopedName()
{
/*
 *  The IDL scoped name of the entry (using double colon as delimiter).
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC__get_somtIDLScopedName)(SOMTEntryCClassData._get_somtIDLScopedName))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/* method: _get_somtCScopedName */
string   _get_somtCScopedName()
{
/*
 *  The C scoped name of the entry (using underscore as delimiter).
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC__get_somtCScopedName)(SOMTEntryCClassData._get_somtCScopedName))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/* method: somtGetModifierValue */
string   somtGetModifierValue(string modifierName)
{
/*
 *  Returns the value of the named modifier if this entry has the
 *  named modifier and NULL otherwise. Note: if the modifier is
 *  present but does not have a value then a value of <'\1'> is
 *  returned.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC_somtGetModifierValue)(SOMTEntryCClassData.somtGetModifierValue))(((SOMTEnumEntryC *)((void *)this)),modifierName)
	);
}


/* method: somtGetFirstModifier */
boolean   somtGetFirstModifier(string* modifierName, 
		string* modifierValue)
{
/*
 *  Returns the first modifier associated with this entry.  1 (true)
 *  is returned if the entry has at least one modifier and 0 (false)
 *  otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC_somtGetFirstModifier)(SOMTEntryCClassData.somtGetFirstModifier))(((SOMTEnumEntryC *)((void *)this)),modifierName,modifierValue)
	);
}


/* method: somtGetNextModifier */
boolean   somtGetNextModifier(string* modifierName, 
		string* modifierValue)
{
/*
 *  Returns the next modifier (with respect to the last call to
 *  <somtGetNextModifier> or <somtGetFirstModifier>)
 *  associated with this entry.  1 (true) is returned if the entry
 *  had another modifier and 0 (false) otherwise.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC_somtGetNextModifier)(SOMTEntryCClassData.somtGetNextModifier))(((SOMTEnumEntryC *)((void *)this)),modifierName,modifierValue)
	);
}


/* method: somtFormatModifier */
long   somtFormatModifier(string buffer, 
		string name, 
		string value)
{
/*
 *  Formats the indicated name/value pair into buffer.  Buffer must
 *  be big enough to hold all the formatted pair, no checks are made.
 *  The number of characters added to buffer are returned (not
 *  including the trailing null character).
 *  Note: value may be null
 *  You will probably never call this method, it is provided so that
 *  you can override it to control the format returned in
 *  <somtGetModifierList>.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC_somtFormatModifier)(SOMTEntryCClassData.somtFormatModifier))(((SOMTEnumEntryC *)((void *)this)),buffer,name,value)
	);
}


/* method: somtGetModifierList */
long   somtGetModifierList(string buffer)
{
/*
 *  The modifiers for this entry are placed in <buffer> in template
 *  list form (newline separated).  Buffer must be big enough to
 *  hold all the modifiers, no checks are made. The number of
 *  modifiers is returned.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC_somtGetModifierList)(SOMTEntryCClassData.somtGetModifierList))(((SOMTEnumEntryC *)((void *)this)),buffer)
	);
}


/* method: somtSetSymbolsOnEntry */
long   somtSetSymbolsOnEntry(SOMTEmitC* emitter, 
		string prefix)
{
/*
 *  Places a number of symbol/value pairs in <t>.  All the symbols
 *  will begin with <prefix>.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC_somtSetSymbolsOnEntry)(SOMTEntryCClassData.somtSetSymbolsOnEntry))(((SOMTEnumEntryC *)((void *)this)),emitter,prefix)
	);
}


/* method: somtSetEntryStruct */
void   somtSetEntryStruct(Entry* es)
{
/*
 *  Sets the entry struct data member.
 *  Note, when overridding this method, it is important to call the
 *  parent version of the method first and then do your processing.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEnumEntryC_somtSetEntryStruct)(SOMTEntryCClassData.somtSetEntryStruct))(((SOMTEnumEntryC *)((void *)this)),es)
	);
}


/* method: somInit */
void   somInit()
{
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_SOMTEnumEntryC_somInit)(SOMObjectClassData.somInit))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/* method: somUninit */
void   somUninit()
{
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_SOMTEnumEntryC_somUninit)(SOMObjectClassData.somUninit))(((SOMTEnumEntryC *)((void *)this)))
	);
}


/* method: somPrintSelf */
SOMTEnumEntryC*  somPrintSelf()
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_SOMTEnumEntryC_somPrintSelf)(SOMObjectClassData.somPrintSelf))(((SOMTEnumEntryC *)((void *)this)))
	);
}


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


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


/* initializer method: somDefaultInit */
void   somDefaultInit(som3InitCtrl* ctrl)
{
/*
 *  A default initializer for a SOM object. Passing a null ctrl
 *  indicates to the receiver that its class is the class of the
 *  object being initialized, whereby the initializer will determine
 *  an appropriate control structure.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_SOMTEnumEntryC_somDefaultInit)(SOMObjectClassData.somDefaultInit))(((SOMTEnumEntryC *)((void *)this)),ctrl)
	);
}


/* method: somDestruct */
void   somDestruct(octet doFree, 
		som3DestructCtrl* ctrl)
{
/*
 *  The default destructor for a SOM object. A nonzero <doFree>
 *  indicates that the object storage should be freed by the
 *  object's class (via somDeallocate) after uninitialization.
 *  As with somDefaultInit, a null ctrl can be passed.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_SOMTEnumEntryC_somDestruct)(SOMObjectClassData.somDestruct))(((SOMTEnumEntryC *)((void *)this)),doFree,ctrl)
	);
}


/* 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_SOMTEnumEntryC_somDefaultCopyInit)(SOMObjectClassData.somDefaultCopyInit))(((SOMTEnumEntryC *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultAssign */
SOMTEnumEntryC*  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_SOMTEnumEntryC_somDefaultAssign)(SOMObjectClassData.somDefaultAssign))(((SOMTEnumEntryC *)((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_SOMTEnumEntryC_somDefaultConstCopyInit)(SOMObjectClassData.somDefaultConstCopyInit))(((SOMTEnumEntryC *)((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_SOMTEnumEntryC_somDefaultVCopyInit)(SOMObjectClassData.somDefaultVCopyInit))(((SOMTEnumEntryC *)((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_SOMTEnumEntryC_somDefaultConstVCopyInit)(SOMObjectClassData.somDefaultConstVCopyInit))(((SOMTEnumEntryC *)((void *)this)),ctrl,fromObj)
	);
}


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


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


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


/* method: somFree */
void   somFree()
{
/*
 *  The default implementation just calls somDestruct.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_SOMTEnumEntryC_somFree)(SOMObjectClassData.somFree))(((SOMTEnumEntryC *)((void *)this)))
	);
}


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


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


/* method: somGetSize */
long   somGetSize()
{
/*
 *  Return the size of the receiver.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_SOMTEnumEntryC_somGetSize)(SOMObjectClassData.somGetSize))(((SOMTEnumEntryC *)((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_SOMTEnumEntryC_somIsA)(SOMObjectClassData.somIsA))(((SOMTEnumEntryC *)((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_SOMTEnumEntryC_somIsInstanceOf)(SOMObjectClassData.somIsInstanceOf))(((SOMTEnumEntryC *)((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_SOMTEnumEntryC_somRespondsTo)(SOMObjectClassData.somRespondsTo))(((SOMTEnumEntryC *)((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_SOMTEnumEntryC_somDispatch)(SOMObjectClassData.somDispatch))(((SOMTEnumEntryC *)((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_SOMTEnumEntryC_somDispatch)(SOMObjectClassData.somDispatch))(((SOMTEnumEntryC *)((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_SOMTEnumEntryC_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((SOMTEnumEntryC *)((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_SOMTEnumEntryC_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((SOMTEnumEntryC *)((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_SOMTEnumEntryC_somCastObj)(SOMObjectClassData.somCastObj))(((SOMTEnumEntryC *)((void *)this)),castedCls)
	);
}


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



};   /* SOMTEnumEntryC */



#endif       /* SOM_SOMTEnumEntryC_xh */
