
/*
 * This file was generated by the SOM Compiler.
 * FileName: scentry.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_SOMTEntryC_xh
#define SOM_SOMTEntryC_xh


/*
 *  A SOM class interface definition is compiled to produce a graph
 *  structure whose nodes are instances of <SOMTEntry> or its
 *  sub-classes.  Each entry is derived from some syntactic element of
 *  the definition source. The attributes defined in <SOMTEntryC>
 *  refer to this syntactic element in a fairly obvious way.
 * 
 */

#define SOMTEntryC_MajorVersion 2
#define SOMTEntryC_MinorVersion 1
class SOMTEntryC;

/*
 *  A SOM class interface definition is compiled to produce a graph
 *  structure whose nodes are instances of <SOMTEntry> or its
 *  sub-classes.  Each entry is derived from some syntactic element of
 *  the definition source. The attributes defined in <SOMTEntryC>
 *  refer to this syntactic element in a fairly obvious way.
 * 
 */

/* Parents */
#ifndef SOM_SOMObject_xh
#ifdef SOMLOCALINCLUDES
#include "somobj.xh"
#else
#include <somobj.xh>
#endif
#endif

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

#ifndef SOMTEntryC_API
#define SOMTEntryC_API
/*
 * -- The Class API
 */
#ifndef SOM_IMPORTEXPORT_some_scentry
#ifdef SOM_DLL_some
	/* export semantics */
	#if defined(SOM_DEFFILE_some)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_some))\
	|| !defined(SOM_Module_scentry_Source)
	#define SOM_IMPORTEXPORT_some_scentry
	#else
	#define SOM_IMPORTEXPORT_some_scentry SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_some_scentry 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;

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

/*
 * Passthru lines: File: "C.xh", "after"
 */
#include <sctypes.h>
#include <sctmplt.xh>

/*
 * A function to create the SOMTEntryC class object...
 */
SOMEXTERN SOM_IMPORTEXPORT_some_scentry SOMClass * SOMLINK SOMTEntryCNewClass(
		integer4 majorVersion,
		integer4 minorVersion);


/*
 * The API 2 ClassData Structures...
 */
SOMEXTERN struct SOMTEntryCClassDataStructure {
	SOMClass *classObject;
	somMToken _get_somtEntryName;
	somMToken _set_somtEntryName;
	somMToken _get_somtElementType;
	somMToken _set_somtElementType;
	somMToken _get_somtEntryComment;
	somMToken _get_somtSourceLineNumber;
	somMToken _get_somtTypeCode;
	somMToken _get_somtIsReference;
	somMToken somtGetModifierValue;
	somMToken somtGetFirstModifier;
	somMToken somtGetNextModifier;
	somMToken somtFormatModifier;
	somMToken somtGetModifierList;
	somMToken somtSetSymbolsOnEntry;
	somMToken somtSetEntryStruct;
	somMToken _get_somtEntryStruct;
	somMToken somtShowAssocEntry;
	somMToken _get_somtCScopedName;
	somMToken _get_somtIDLScopedName;
	somMToken _get_somtElementTypeName;
} SOMDLINK SOM_IMPORTEXPORT_some_scentry SOMTEntryCClassData;
SOMEXTERN struct SOMTEntryCCClassDataStructure {
	som3ClassDetailsPtr    parentMtab;
	somDToken              instanceDataToken;
} SOMDLINK SOM_IMPORTEXPORT_some_scentry SOMTEntryCCClassData;


/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_SOMTEntryC (SOMTEntryCClassData.classObject)
#ifndef SOMGD_SOMTEntryC
    #if (defined(_SOMTEntryC) || defined(__SOMTEntryC))
        #undef _SOMTEntryC
        #undef __SOMTEntryC
        #define SOMGD_SOMTEntryC 1
    #else
        #define _SOMTEntryC _SOMCLASS_SOMTEntryC
    #endif /* _SOMTEntryC */
#endif /* SOMGD_SOMTEntryC */
#define SOMTEntryC_classObj _SOMCLASS_SOMTEntryC
#define _SOMMTOKEN_SOMTEntryC(method) ((somMToken)SOMTEntryCClassData.method)

/*
 * -- Typedefs for SOMTEntryC Method Procedures
 */
SOMEXTERN {
typedef string   SOMLINK somTP_SOMTEntryC__get_somtEntryName(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtEntryName *somTD_SOMTEntryC__get_somtEntryName;
typedef void   SOMLINK somTP_SOMTEntryC__set_somtEntryName(SOMTEntryC *somSelf, 
		string somtEntryName);
typedef somTP_SOMTEntryC__set_somtEntryName *somTD_SOMTEntryC__set_somtEntryName;
typedef SOMTTypes   SOMLINK somTP_SOMTEntryC__get_somtElementType(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtElementType *somTD_SOMTEntryC__get_somtElementType;
typedef void   SOMLINK somTP_SOMTEntryC__set_somtElementType(SOMTEntryC *somSelf, 
		SOMTTypes somtElementType);
typedef somTP_SOMTEntryC__set_somtElementType *somTD_SOMTEntryC__set_somtElementType;
typedef string   SOMLINK somTP_SOMTEntryC__get_somtElementTypeName(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtElementTypeName *somTD_SOMTEntryC__get_somtElementTypeName;
typedef string   SOMLINK somTP_SOMTEntryC__get_somtEntryComment(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtEntryComment *somTD_SOMTEntryC__get_somtEntryComment;
typedef unsigned long   SOMLINK somTP_SOMTEntryC__get_somtSourceLineNumber(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtSourceLineNumber *somTD_SOMTEntryC__get_somtSourceLineNumber;
typedef TypeCode   SOMLINK somTP_SOMTEntryC__get_somtTypeCode(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtTypeCode *somTD_SOMTEntryC__get_somtTypeCode;
typedef boolean   SOMLINK somTP_SOMTEntryC__get_somtIsReference(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtIsReference *somTD_SOMTEntryC__get_somtIsReference;
typedef string   SOMLINK somTP_SOMTEntryC__get_somtIDLScopedName(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtIDLScopedName *somTD_SOMTEntryC__get_somtIDLScopedName;
typedef string   SOMLINK somTP_SOMTEntryC__get_somtCScopedName(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtCScopedName *somTD_SOMTEntryC__get_somtCScopedName;
typedef string   SOMLINK somTP_SOMTEntryC_somtGetModifierValue(SOMTEntryC *somSelf, 
		string modifierName);
typedef somTP_SOMTEntryC_somtGetModifierValue *somTD_SOMTEntryC_somtGetModifierValue;
typedef boolean   SOMLINK somTP_SOMTEntryC_somtGetFirstModifier(SOMTEntryC *somSelf, 
		string* modifierName, 
		string* modifierValue);
typedef somTP_SOMTEntryC_somtGetFirstModifier *somTD_SOMTEntryC_somtGetFirstModifier;
typedef boolean   SOMLINK somTP_SOMTEntryC_somtGetNextModifier(SOMTEntryC *somSelf, 
		string* modifierName, 
		string* modifierValue);
typedef somTP_SOMTEntryC_somtGetNextModifier *somTD_SOMTEntryC_somtGetNextModifier;
typedef long   SOMLINK somTP_SOMTEntryC_somtFormatModifier(SOMTEntryC *somSelf, 
		string buffer, 
		string name, 
		string value);
typedef somTP_SOMTEntryC_somtFormatModifier *somTD_SOMTEntryC_somtFormatModifier;
typedef long   SOMLINK somTP_SOMTEntryC_somtGetModifierList(SOMTEntryC *somSelf, 
		string buffer);
typedef somTP_SOMTEntryC_somtGetModifierList *somTD_SOMTEntryC_somtGetModifierList;
typedef long   SOMLINK somTP_SOMTEntryC_somtSetSymbolsOnEntry(SOMTEntryC *somSelf, 
		SOMTEmitC* emitter, 
		string prefix);
typedef somTP_SOMTEntryC_somtSetSymbolsOnEntry *somTD_SOMTEntryC_somtSetSymbolsOnEntry;
typedef void   SOMLINK somTP_SOMTEntryC_somtSetEntryStruct(SOMTEntryC *somSelf, 
		Entry* es);
typedef somTP_SOMTEntryC_somtSetEntryStruct *somTD_SOMTEntryC_somtSetEntryStruct;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_SOMTEntryC_somDefaultInit(SOMTEntryC *somSelf, 
		som3InitCtrl* ctrl);
typedef somTP_SOMTEntryC_somDefaultInit *somTD_SOMTEntryC_somDefaultInit;
typedef void   SOMLINK somTP_SOMTEntryC_somDestruct(SOMTEntryC *somSelf, 
		octet doFree, 
		som3DestructCtrl* ctrl);
typedef somTP_SOMTEntryC_somDestruct *somTD_SOMTEntryC_somDestruct;
typedef void   SOMLINK somTP_SOMTEntryC_somDefaultCopyInit(SOMTEntryC *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultCopyInit *somTD_SOMTEntryC_somDefaultCopyInit;
typedef SOMTEntryC*   SOMLINK somTP_SOMTEntryC_somDefaultAssign(SOMTEntryC *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultAssign *somTD_SOMTEntryC_somDefaultAssign;
typedef void   SOMLINK somTP_SOMTEntryC_somDefaultConstCopyInit(SOMTEntryC *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultConstCopyInit *somTD_SOMTEntryC_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_SOMTEntryC_somDefaultVCopyInit(SOMTEntryC *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultVCopyInit *somTD_SOMTEntryC_somDefaultVCopyInit;
typedef void   SOMLINK somTP_SOMTEntryC_somDefaultConstVCopyInit(SOMTEntryC *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultConstVCopyInit *somTD_SOMTEntryC_somDefaultConstVCopyInit;
typedef SOMTEntryC*   SOMLINK somTP_SOMTEntryC_somDefaultConstAssign(SOMTEntryC *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultConstAssign *somTD_SOMTEntryC_somDefaultConstAssign;
typedef SOMTEntryC*   SOMLINK somTP_SOMTEntryC_somDefaultVAssign(SOMTEntryC *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultVAssign *somTD_SOMTEntryC_somDefaultVAssign;
typedef SOMTEntryC*   SOMLINK somTP_SOMTEntryC_somDefaultConstVAssign(SOMTEntryC *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultConstVAssign *somTD_SOMTEntryC_somDefaultConstVAssign;
typedef void   SOMLINK somTP_SOMTEntryC_somInit(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somInit *somTD_SOMTEntryC_somInit;
typedef void   SOMLINK somTP_SOMTEntryC_somUninit(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somUninit *somTD_SOMTEntryC_somUninit;
typedef void   SOMLINK somTP_SOMTEntryC_somFree(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somFree *somTD_SOMTEntryC_somFree;
typedef SOMClass*   SOMLINK somTP_SOMTEntryC_somGetClass(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somGetClass *somTD_SOMTEntryC_somGetClass;
typedef string   SOMLINK somTP_SOMTEntryC_somGetClassName(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somGetClassName *somTD_SOMTEntryC_somGetClassName;
typedef long   SOMLINK somTP_SOMTEntryC_somGetSize(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somGetSize *somTD_SOMTEntryC_somGetSize;
typedef boolean   SOMLINK somTP_SOMTEntryC_somIsA(SOMTEntryC *somSelf, 
		SOMClass* aClassObj);
typedef somTP_SOMTEntryC_somIsA *somTD_SOMTEntryC_somIsA;
typedef boolean   SOMLINK somTP_SOMTEntryC_somIsInstanceOf(SOMTEntryC *somSelf, 
		SOMClass* aClassObj);
typedef somTP_SOMTEntryC_somIsInstanceOf *somTD_SOMTEntryC_somIsInstanceOf;
typedef boolean   SOMLINK somTP_SOMTEntryC_somRespondsTo(SOMTEntryC *somSelf, 
		somId mId);
typedef somTP_SOMTEntryC_somRespondsTo *somTD_SOMTEntryC_somRespondsTo;
typedef boolean   SOMLINK somTP_SOMTEntryC_somDispatch(SOMTEntryC *somSelf, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_SOMTEntryC_somDispatch *somTD_SOMTEntryC_somDispatch;
typedef boolean   SOMLINK somTP_SOMTEntryC_somClassDispatch(SOMTEntryC *somSelf, 
		SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_SOMTEntryC_somClassDispatch *somTD_SOMTEntryC_somClassDispatch;
typedef boolean   SOMLINK somTP_SOMTEntryC_somCastObj(SOMTEntryC *somSelf, 
		SOMClass* castedCls);
typedef somTP_SOMTEntryC_somCastObj *somTD_SOMTEntryC_somCastObj;
typedef boolean   SOMLINK somTP_SOMTEntryC_somResetObj(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somResetObj *somTD_SOMTEntryC_somResetObj;
typedef SOMTEntryC*   SOMLINK somTP_SOMTEntryC_somPrintSelf(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somPrintSelf *somTD_SOMTEntryC_somPrintSelf;
typedef void   SOMLINK somTP_SOMTEntryC_somDumpSelf(SOMTEntryC *somSelf, 
		long level);
typedef somTP_SOMTEntryC_somDumpSelf *somTD_SOMTEntryC_somDumpSelf;
typedef void   SOMLINK somTP_SOMTEntryC_somDumpSelfInt(SOMTEntryC *somSelf, 
		long level);
typedef somTP_SOMTEntryC_somDumpSelfInt *somTD_SOMTEntryC_somDumpSelfInt;
}

#endif /* SOMTEntryC_API */


/*
 * -- The C++ Wrapper Class for SOMTEntryC
 */
class SOMTEntryC : public SOMObject
{
/*
 *  A SOM class interface definition is compiled to produce a graph
 *  structure whose nodes are instances of <SOMTEntry> or its
 *  sub-classes.  Each entry is derived from some syntactic element of
 *  the definition source. The attributes defined in <SOMTEntryC>
 *  refer to this syntactic element in a fairly obvious way.
 * 
 */
public:

// SOMTEntryC::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 (!_SOMTEntryC) SOMTEntryCNewClass(SOMTEntryC_MajorVersion,SOMTEntryC_MinorVersion);
   return (void*)
   (((somTD_SOMClass_somNewNoInit)(SOMClassClassData.somNewNoInit))
         ((SOMClass *)((void*)_SOMTEntryC)));
}

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

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

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

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


/* 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_SOMTEntryC__get_somtEntryName)(SOMTEntryCClassData._get_somtEntryName))(((SOMTEntryC *)((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_SOMTEntryC__set_somtEntryName)(SOMTEntryCClassData._set_somtEntryName))(((SOMTEntryC *)((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_SOMTEntryC__get_somtElementType)(SOMTEntryCClassData._get_somtElementType))(((SOMTEntryC *)((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_SOMTEntryC__set_somtElementType)(SOMTEntryCClassData._set_somtElementType))(((SOMTEntryC *)((void *)this)),somtElementType)
	);
}


/* method: _get_somtElementTypeName */
string   _get_somtElementTypeName()
{
/*
 *  String version of somtElementType.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEntryC__get_somtElementTypeName)(SOMTEntryCClassData._get_somtElementTypeName))(((SOMTEntryC *)((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_SOMTEntryC__get_somtEntryComment)(SOMTEntryCClassData._get_somtEntryComment))(((SOMTEntryC *)((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_SOMTEntryC__get_somtSourceLineNumber)(SOMTEntryCClassData._get_somtSourceLineNumber))(((SOMTEntryC *)((void *)this)))
	);
}


/* method: _get_somtTypeCode */
TypeCode   _get_somtTypeCode()
{
/*
 *  The typecode, if appropriate, or NULL.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMTEntryC),
	 ((somTD_SOMTEntryC__get_somtTypeCode)(SOMTEntryCClassData._get_somtTypeCode))(((SOMTEntryC *)((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_SOMTEntryC__get_somtIsReference)(SOMTEntryCClassData._get_somtIsReference))(((SOMTEntryC *)((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_SOMTEntryC__get_somtIDLScopedName)(SOMTEntryCClassData._get_somtIDLScopedName))(((SOMTEntryC *)((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_SOMTEntryC__get_somtCScopedName)(SOMTEntryCClassData._get_somtCScopedName))(((SOMTEntryC *)((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_SOMTEntryC_somtGetModifierValue)(SOMTEntryCClassData.somtGetModifierValue))(((SOMTEntryC *)((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_SOMTEntryC_somtGetFirstModifier)(SOMTEntryCClassData.somtGetFirstModifier))(((SOMTEntryC *)((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_SOMTEntryC_somtGetNextModifier)(SOMTEntryCClassData.somtGetNextModifier))(((SOMTEntryC *)((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_SOMTEntryC_somtFormatModifier)(SOMTEntryCClassData.somtFormatModifier))(((SOMTEntryC *)((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_SOMTEntryC_somtGetModifierList)(SOMTEntryCClassData.somtGetModifierList))(((SOMTEntryC *)((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_SOMTEntryC_somtSetSymbolsOnEntry)(SOMTEntryCClassData.somtSetSymbolsOnEntry))(((SOMTEntryC *)((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_SOMTEntryC_somtSetEntryStruct)(SOMTEntryCClassData.somtSetEntryStruct))(((SOMTEntryC *)((void *)this)),es)
	);
}


/*
 * Reintroduce inherited methods
 */

/* 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_SOMTEntryC_somDefaultInit)(SOMObjectClassData.somDefaultInit))(((SOMTEntryC *)((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_SOMTEntryC_somDestruct)(SOMObjectClassData.somDestruct))(((SOMTEntryC *)((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_SOMTEntryC_somDefaultCopyInit)(SOMObjectClassData.somDefaultCopyInit))(((SOMTEntryC *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultAssign */
SOMTEntryC*  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_SOMTEntryC_somDefaultAssign)(SOMObjectClassData.somDefaultAssign))(((SOMTEntryC *)((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_SOMTEntryC_somDefaultConstCopyInit)(SOMObjectClassData.somDefaultConstCopyInit))(((SOMTEntryC *)((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_SOMTEntryC_somDefaultVCopyInit)(SOMObjectClassData.somDefaultVCopyInit))(((SOMTEntryC *)((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_SOMTEntryC_somDefaultConstVCopyInit)(SOMObjectClassData.somDefaultConstVCopyInit))(((SOMTEntryC *)((void *)this)),ctrl,fromObj)
	);
}


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


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


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


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


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


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


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


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


/* method: somGetSize */
long   somGetSize()
{
/*
 *  Return the size of the receiver.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_SOMTEntryC_somGetSize)(SOMObjectClassData.somGetSize))(((SOMTEntryC *)((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_SOMTEntryC_somIsA)(SOMObjectClassData.somIsA))(((SOMTEntryC *)((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_SOMTEntryC_somIsInstanceOf)(SOMObjectClassData.somIsInstanceOf))(((SOMTEntryC *)((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_SOMTEntryC_somRespondsTo)(SOMObjectClassData.somRespondsTo))(((SOMTEntryC *)((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_SOMTEntryC_somDispatch)(SOMObjectClassData.somDispatch))(((SOMTEntryC *)((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_SOMTEntryC_somDispatch)(SOMObjectClassData.somDispatch))(((SOMTEntryC *)((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_SOMTEntryC_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((SOMTEntryC *)((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_SOMTEntryC_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((SOMTEntryC *)((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_SOMTEntryC_somCastObj)(SOMObjectClassData.somCastObj))(((SOMTEntryC *)((void *)this)),castedCls)
	);
}


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


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


/* method: somDumpSelf */
void   somDumpSelf(long level)
{
/*
 *  Uses <SOMOutCharRoutine> to write a detailed description of this object
 *  and its current state.
 * 
 *  <level> indicates the nesting level for describing compound objects
 *  it must be greater than or equal to zero.  All lines in the
 *  description will be preceeded by <2*level> spaces.
 * 
 *  This routine only actually writes the data that concerns the object
 *  as a whole, such as class, and uses <somDumpSelfInt> to describe
 *  the object's current state.  This approach allows readable
 *  descriptions of compound objects to be constructed.
 * 
 *  Generally it is not necessary to override this method, if it is
 *  overriden it generally must be completely replaced.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_SOMTEntryC_somDumpSelf)(SOMObjectClassData.somDumpSelf))(((SOMTEntryC *)((void *)this)),level)
	);
}


/* method: somDumpSelfInt */
void   somDumpSelfInt(long level)
{
/*
 *  Uses <SOMOutCharRoutine> to write in the current state of this object.
 *  Generally this method will need to be overridden.  When overriding
 *  it, begin by calling the parent class form of this method and then
 *  write in a description of your class's instance data. This will
 *  result in a description of all the object's instance data going
 *  from its root ancestor class to its specific class.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_SOMTEntryC_somDumpSelfInt)(SOMObjectClassData.somDumpSelfInt))(((SOMTEntryC *)((void *)this)),level)
	);
}



};   /* SOMTEntryC */



#endif       /* SOM_SOMTEntryC_xh */
