
/*
 * This file was generated by the SOM Compiler.
 * FileName: somstrt.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.
 * 
 */


#ifndef SOM_SOMStringTableC_xh
#define SOM_SOMStringTableC_xh


/*
 *  Objects of the SOMStringTableC class are symbol tables that map null
 *  terminated strings to null terminated strings.  While any instance
 *  of this class can hold an indefinite number of sysbols, performance
 *  will be inproved if the instance is created with an appropriate
 *  maximum target capacity.
 */

#define SOMStringTableC_MajorVersion 2
#define SOMStringTableC_MinorVersion 1
class SOMStringTableC;

/*
 *  Objects of the SOMStringTableC class are symbol tables that map null
 *  terminated strings to null terminated strings.  While any instance
 *  of this class can hold an indefinite number of sysbols, performance
 *  will be inproved if the instance is created with an appropriate
 *  maximum target capacity.
 */

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

/*
 * Start of bindings for IDL types
 */

class SOMClass;
class SOMObject;

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

/*
 * A function to create the SOMStringTableC class object...
 */
SOMEXTERN SOM_IMPORTEXPORT_some_somstrt SOMClass * SOMLINK SOMStringTableCNewClass(
		integer4 majorVersion,
		integer4 minorVersion);


/*
 * The API 2 ClassData Structures...
 */
SOMEXTERN struct SOMStringTableCClassDataStructure {
	SOMClass *classObject;
	somMToken _get_somstTargetCapacity;
	somMToken _set_somstTargetCapacity;
	somMToken _get_somstAssociationsCount;
	somMToken somstAssociate;
	somMToken somstAssociateCopyKey;
	somMToken somstAssociateCopyValue;
	somMToken somstAssociateCopyBoth;
	somMToken somstGetAssociation;
	somMToken somstClearAssociation;
	somMToken somstGetIthKey;
	somMToken somstGetIthValue;
} SOMDLINK SOM_IMPORTEXPORT_some_somstrt SOMStringTableCClassData;
SOMEXTERN struct SOMStringTableCCClassDataStructure {
	som3ClassDetailsPtr    parentMtab;
	somDToken              instanceDataToken;
} SOMDLINK SOM_IMPORTEXPORT_some_somstrt SOMStringTableCCClassData;


/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_SOMStringTableC (SOMStringTableCClassData.classObject)
#ifndef SOMGD_SOMStringTableC
    #if (defined(_SOMStringTableC) || defined(__SOMStringTableC))
        #undef _SOMStringTableC
        #undef __SOMStringTableC
        #define SOMGD_SOMStringTableC 1
    #else
        #define _SOMStringTableC _SOMCLASS_SOMStringTableC
    #endif /* _SOMStringTableC */
#endif /* SOMGD_SOMStringTableC */
#define SOMStringTableC_classObj _SOMCLASS_SOMStringTableC
#define _SOMMTOKEN_SOMStringTableC(method) ((somMToken)SOMStringTableCClassData.method)

/*
 * -- Typedefs for SOMStringTableC Method Procedures
 */
SOMEXTERN {
typedef unsigned long   SOMLINK somTP_SOMStringTableC__get_somstTargetCapacity(SOMStringTableC *somSelf);
typedef somTP_SOMStringTableC__get_somstTargetCapacity *somTD_SOMStringTableC__get_somstTargetCapacity;
typedef void   SOMLINK somTP_SOMStringTableC__set_somstTargetCapacity(SOMStringTableC *somSelf, 
		unsigned long somstTargetCapacity);
typedef somTP_SOMStringTableC__set_somstTargetCapacity *somTD_SOMStringTableC__set_somstTargetCapacity;
typedef unsigned long   SOMLINK somTP_SOMStringTableC__get_somstAssociationsCount(SOMStringTableC *somSelf);
typedef somTP_SOMStringTableC__get_somstAssociationsCount *somTD_SOMStringTableC__get_somstAssociationsCount;
typedef short   SOMLINK somTP_SOMStringTableC_somstAssociate(SOMStringTableC *somSelf, 
		string key, 
		string value);
typedef somTP_SOMStringTableC_somstAssociate *somTD_SOMStringTableC_somstAssociate;
typedef short   SOMLINK somTP_SOMStringTableC_somstAssociateCopyKey(SOMStringTableC *somSelf, 
		string key, 
		string value);
typedef somTP_SOMStringTableC_somstAssociateCopyKey *somTD_SOMStringTableC_somstAssociateCopyKey;
typedef short   SOMLINK somTP_SOMStringTableC_somstAssociateCopyValue(SOMStringTableC *somSelf, 
		string key, 
		string value);
typedef somTP_SOMStringTableC_somstAssociateCopyValue *somTD_SOMStringTableC_somstAssociateCopyValue;
typedef short   SOMLINK somTP_SOMStringTableC_somstAssociateCopyBoth(SOMStringTableC *somSelf, 
		string key, 
		string value);
typedef somTP_SOMStringTableC_somstAssociateCopyBoth *somTD_SOMStringTableC_somstAssociateCopyBoth;
typedef string   SOMLINK somTP_SOMStringTableC_somstGetAssociation(SOMStringTableC *somSelf, 
		string key);
typedef somTP_SOMStringTableC_somstGetAssociation *somTD_SOMStringTableC_somstGetAssociation;
typedef boolean   SOMLINK somTP_SOMStringTableC_somstClearAssociation(SOMStringTableC *somSelf, 
		string key);
typedef somTP_SOMStringTableC_somstClearAssociation *somTD_SOMStringTableC_somstClearAssociation;
typedef string   SOMLINK somTP_SOMStringTableC_somstGetIthKey(SOMStringTableC *somSelf, 
		unsigned long i);
typedef somTP_SOMStringTableC_somstGetIthKey *somTD_SOMStringTableC_somstGetIthKey;
typedef string   SOMLINK somTP_SOMStringTableC_somstGetIthValue(SOMStringTableC *somSelf, 
		unsigned long i);
typedef somTP_SOMStringTableC_somstGetIthValue *somTD_SOMStringTableC_somstGetIthValue;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_SOMStringTableC_somDefaultInit(SOMStringTableC *somSelf, 
		som3InitCtrl* ctrl);
typedef somTP_SOMStringTableC_somDefaultInit *somTD_SOMStringTableC_somDefaultInit;
typedef void   SOMLINK somTP_SOMStringTableC_somDestruct(SOMStringTableC *somSelf, 
		octet doFree, 
		som3DestructCtrl* ctrl);
typedef somTP_SOMStringTableC_somDestruct *somTD_SOMStringTableC_somDestruct;
typedef void   SOMLINK somTP_SOMStringTableC_somDefaultCopyInit(SOMStringTableC *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMStringTableC_somDefaultCopyInit *somTD_SOMStringTableC_somDefaultCopyInit;
typedef SOMStringTableC*   SOMLINK somTP_SOMStringTableC_somDefaultAssign(SOMStringTableC *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMStringTableC_somDefaultAssign *somTD_SOMStringTableC_somDefaultAssign;
typedef void   SOMLINK somTP_SOMStringTableC_somDefaultConstCopyInit(SOMStringTableC *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMStringTableC_somDefaultConstCopyInit *somTD_SOMStringTableC_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_SOMStringTableC_somDefaultVCopyInit(SOMStringTableC *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMStringTableC_somDefaultVCopyInit *somTD_SOMStringTableC_somDefaultVCopyInit;
typedef void   SOMLINK somTP_SOMStringTableC_somDefaultConstVCopyInit(SOMStringTableC *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMStringTableC_somDefaultConstVCopyInit *somTD_SOMStringTableC_somDefaultConstVCopyInit;
typedef SOMStringTableC*   SOMLINK somTP_SOMStringTableC_somDefaultConstAssign(SOMStringTableC *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMStringTableC_somDefaultConstAssign *somTD_SOMStringTableC_somDefaultConstAssign;
typedef SOMStringTableC*   SOMLINK somTP_SOMStringTableC_somDefaultVAssign(SOMStringTableC *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMStringTableC_somDefaultVAssign *somTD_SOMStringTableC_somDefaultVAssign;
typedef SOMStringTableC*   SOMLINK somTP_SOMStringTableC_somDefaultConstVAssign(SOMStringTableC *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMStringTableC_somDefaultConstVAssign *somTD_SOMStringTableC_somDefaultConstVAssign;
typedef void   SOMLINK somTP_SOMStringTableC_somInit(SOMStringTableC *somSelf);
typedef somTP_SOMStringTableC_somInit *somTD_SOMStringTableC_somInit;
typedef void   SOMLINK somTP_SOMStringTableC_somUninit(SOMStringTableC *somSelf);
typedef somTP_SOMStringTableC_somUninit *somTD_SOMStringTableC_somUninit;
typedef void   SOMLINK somTP_SOMStringTableC_somFree(SOMStringTableC *somSelf);
typedef somTP_SOMStringTableC_somFree *somTD_SOMStringTableC_somFree;
typedef SOMClass*   SOMLINK somTP_SOMStringTableC_somGetClass(SOMStringTableC *somSelf);
typedef somTP_SOMStringTableC_somGetClass *somTD_SOMStringTableC_somGetClass;
typedef string   SOMLINK somTP_SOMStringTableC_somGetClassName(SOMStringTableC *somSelf);
typedef somTP_SOMStringTableC_somGetClassName *somTD_SOMStringTableC_somGetClassName;
typedef long   SOMLINK somTP_SOMStringTableC_somGetSize(SOMStringTableC *somSelf);
typedef somTP_SOMStringTableC_somGetSize *somTD_SOMStringTableC_somGetSize;
typedef boolean   SOMLINK somTP_SOMStringTableC_somIsA(SOMStringTableC *somSelf, 
		SOMClass* aClassObj);
typedef somTP_SOMStringTableC_somIsA *somTD_SOMStringTableC_somIsA;
typedef boolean   SOMLINK somTP_SOMStringTableC_somIsInstanceOf(SOMStringTableC *somSelf, 
		SOMClass* aClassObj);
typedef somTP_SOMStringTableC_somIsInstanceOf *somTD_SOMStringTableC_somIsInstanceOf;
typedef boolean   SOMLINK somTP_SOMStringTableC_somRespondsTo(SOMStringTableC *somSelf, 
		somId mId);
typedef somTP_SOMStringTableC_somRespondsTo *somTD_SOMStringTableC_somRespondsTo;
typedef boolean   SOMLINK somTP_SOMStringTableC_somDispatch(SOMStringTableC *somSelf, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_SOMStringTableC_somDispatch *somTD_SOMStringTableC_somDispatch;
typedef boolean   SOMLINK somTP_SOMStringTableC_somClassDispatch(SOMStringTableC *somSelf, 
		SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_SOMStringTableC_somClassDispatch *somTD_SOMStringTableC_somClassDispatch;
typedef boolean   SOMLINK somTP_SOMStringTableC_somCastObj(SOMStringTableC *somSelf, 
		SOMClass* castedCls);
typedef somTP_SOMStringTableC_somCastObj *somTD_SOMStringTableC_somCastObj;
typedef boolean   SOMLINK somTP_SOMStringTableC_somResetObj(SOMStringTableC *somSelf);
typedef somTP_SOMStringTableC_somResetObj *somTD_SOMStringTableC_somResetObj;
typedef SOMStringTableC*   SOMLINK somTP_SOMStringTableC_somPrintSelf(SOMStringTableC *somSelf);
typedef somTP_SOMStringTableC_somPrintSelf *somTD_SOMStringTableC_somPrintSelf;
typedef void   SOMLINK somTP_SOMStringTableC_somDumpSelf(SOMStringTableC *somSelf, 
		long level);
typedef somTP_SOMStringTableC_somDumpSelf *somTD_SOMStringTableC_somDumpSelf;
typedef void   SOMLINK somTP_SOMStringTableC_somDumpSelfInt(SOMStringTableC *somSelf, 
		long level);
typedef somTP_SOMStringTableC_somDumpSelfInt *somTD_SOMStringTableC_somDumpSelfInt;
}

#endif /* SOMStringTableC_API */


/*
 * -- The C++ Wrapper Class for SOMStringTableC
 */
class SOMStringTableC : public SOMObject
{
/*
 *  Objects of the SOMStringTableC class are symbol tables that map null
 *  terminated strings to null terminated strings.  While any instance
 *  of this class can hold an indefinite number of sysbols, performance
 *  will be inproved if the instance is created with an appropriate
 *  maximum target capacity.
 */
public:

// SOMStringTableC::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 (!_SOMStringTableC) SOMStringTableCNewClass(SOMStringTableC_MajorVersion,SOMStringTableC_MinorVersion);
   return (void*)
   (((somTD_SOMClass_somNewNoInit)(SOMClassClassData.somNewNoInit))
         ((SOMClass *)((void*)_SOMStringTableC)));
}

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

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

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

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


/* method: _get_somstTargetCapacity */
unsigned long   _get_somstTargetCapacity()
{
/*
 *  The expected maximum number of associations for this table.
 *  Accuracy can result in improved performance.  A low target may
 *  result in some storage saving, but at the cost of performance.
 *  Note: this attribute must be set before any strings are added to
 *  the string table or it will not be setable.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMStringTableC),
	 ((somTD_SOMStringTableC__get_somstTargetCapacity)(SOMStringTableCClassData._get_somstTargetCapacity))(((SOMStringTableC *)((void *)this)))
	);
}


/* method: _set_somstTargetCapacity */
void   _set_somstTargetCapacity(unsigned long somstTargetCapacity)
{
/*
 *  The expected maximum number of associations for this table.
 *  Accuracy can result in improved performance.  A low target may
 *  result in some storage saving, but at the cost of performance.
 *  Note: this attribute must be set before any strings are added to
 *  the string table or it will not be setable.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_SOMStringTableC),
	 ((somTD_SOMStringTableC__set_somstTargetCapacity)(SOMStringTableCClassData._set_somstTargetCapacity))(((SOMStringTableC *)((void *)this)),somstTargetCapacity)
	);
}


/* method: _get_somstAssociationsCount */
unsigned long   _get_somstAssociationsCount()
{
/*
 *  The number of associations currently in this table
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMStringTableC),
	 ((somTD_SOMStringTableC__get_somstAssociationsCount)(SOMStringTableCClassData._get_somstAssociationsCount))(((SOMStringTableC *)((void *)this)))
	);
}


/* method: somstAssociate */
short   somstAssociate(string key, 
		string value)
{
/*
 *  Associates <key> and <value>.  After this call, whenever <key> is
 *  lookedup, <value> will be returned.
 *  Zero will be returned if the association cannot be accomplished
 *  (<key> is null, or memory is not available), -1 will be returned
 *  if the association suceeds, but <key> had a previous association,
 *  and 1 is returned if the association suceeds and <key> had no
 *  previous association.
 *  Note: the string table takes over ownership of both <key> and
 *  <value>.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMStringTableC),
	 ((somTD_SOMStringTableC_somstAssociate)(SOMStringTableCClassData.somstAssociate))(((SOMStringTableC *)((void *)this)),key,value)
	);
}


/* method: somstAssociateCopyKey */
short   somstAssociateCopyKey(string key, 
		string value)
{
/*
 *  Same as <somstAssociate> except don't take ownership of <key>.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMStringTableC),
	 ((somTD_SOMStringTableC_somstAssociateCopyKey)(SOMStringTableCClassData.somstAssociateCopyKey))(((SOMStringTableC *)((void *)this)),key,value)
	);
}


/* method: somstAssociateCopyValue */
short   somstAssociateCopyValue(string key, 
		string value)
{
/*
 *  Same as <somstAssociate> except don't take ownership of <value>.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMStringTableC),
	 ((somTD_SOMStringTableC_somstAssociateCopyValue)(SOMStringTableCClassData.somstAssociateCopyValue))(((SOMStringTableC *)((void *)this)),key,value)
	);
}


/* method: somstAssociateCopyBoth */
short   somstAssociateCopyBoth(string key, 
		string value)
{
/*
 *  Same as <somstAssociate> except don't take ownership of <key> or
 *  <value>.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMStringTableC),
	 ((somTD_SOMStringTableC_somstAssociateCopyBoth)(SOMStringTableCClassData.somstAssociateCopyBoth))(((SOMStringTableC *)((void *)this)),key,value)
	);
}


/* method: somstGetAssociation */
string   somstGetAssociation(string key)
{
/*
 *  The string associated with <key> is returned if there is one and
 *  NULL is returned if <key> has no association.
 *  The string table will maintain ownership of any returned value.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMStringTableC),
	 ((somTD_SOMStringTableC_somstGetAssociation)(SOMStringTableCClassData.somstGetAssociation))(((SOMStringTableC *)((void *)this)),key)
	);
}


/* method: somstClearAssociation */
boolean   somstClearAssociation(string key)
{
/*
 *  The association for <key>, if any, is removed.
 *  1 is returned if <key> had an association, and 0 is returned if
 *  it did not.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMStringTableC),
	 ((somTD_SOMStringTableC_somstClearAssociation)(SOMStringTableCClassData.somstClearAssociation))(((SOMStringTableC *)((void *)this)),key)
	);
}


/* method: somstGetIthKey */
string   somstGetIthKey(unsigned long i)
{
/*
 *  Returns the key part of the <i> association in this string table
 *  if there is one and null otherwise.
 *  The order of associations in a string table is not specified, but
 *  will not change unless changes are made in the table.
 *  Ownership of the key is retained, the pointer returned is valid
 *  until any changes are made in the table.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMStringTableC),
	 ((somTD_SOMStringTableC_somstGetIthKey)(SOMStringTableCClassData.somstGetIthKey))(((SOMStringTableC *)((void *)this)),i)
	);
}


/* method: somstGetIthValue */
string   somstGetIthValue(unsigned long i)
{
/*
 *  Returns the value part of the <i> association in this string table
 *  if there is one and null otherwise.
 *  The order of associations in a string table is not specified, but
 *  will not change unless changes are made in the table.
 *  Ownership of the value is retained, the pointer returned is valid
 *  until any changes are made in the table.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMStringTableC),
	 ((somTD_SOMStringTableC_somstGetIthValue)(SOMStringTableCClassData.somstGetIthValue))(((SOMStringTableC *)((void *)this)),i)
	);
}


/*
 * 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_SOMStringTableC_somDefaultInit)(SOMObjectClassData.somDefaultInit))(((SOMStringTableC *)((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_SOMStringTableC_somDestruct)(SOMObjectClassData.somDestruct))(((SOMStringTableC *)((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_SOMStringTableC_somDefaultCopyInit)(SOMObjectClassData.somDefaultCopyInit))(((SOMStringTableC *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultAssign */
SOMStringTableC*  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_SOMStringTableC_somDefaultAssign)(SOMObjectClassData.somDefaultAssign))(((SOMStringTableC *)((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_SOMStringTableC_somDefaultConstCopyInit)(SOMObjectClassData.somDefaultConstCopyInit))(((SOMStringTableC *)((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_SOMStringTableC_somDefaultVCopyInit)(SOMObjectClassData.somDefaultVCopyInit))(((SOMStringTableC *)((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_SOMStringTableC_somDefaultConstVCopyInit)(SOMObjectClassData.somDefaultConstVCopyInit))(((SOMStringTableC *)((void *)this)),ctrl,fromObj)
	);
}


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


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


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


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


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


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


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


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


/* method: somGetSize */
long   somGetSize()
{
/*
 *  Return the size of the receiver.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_SOMStringTableC_somGetSize)(SOMObjectClassData.somGetSize))(((SOMStringTableC *)((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_SOMStringTableC_somIsA)(SOMObjectClassData.somIsA))(((SOMStringTableC *)((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_SOMStringTableC_somIsInstanceOf)(SOMObjectClassData.somIsInstanceOf))(((SOMStringTableC *)((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_SOMStringTableC_somRespondsTo)(SOMObjectClassData.somRespondsTo))(((SOMStringTableC *)((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_SOMStringTableC_somDispatch)(SOMObjectClassData.somDispatch))(((SOMStringTableC *)((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_SOMStringTableC_somDispatch)(SOMObjectClassData.somDispatch))(((SOMStringTableC *)((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_SOMStringTableC_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((SOMStringTableC *)((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_SOMStringTableC_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((SOMStringTableC *)((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_SOMStringTableC_somCastObj)(SOMObjectClassData.somCastObj))(((SOMStringTableC *)((void *)this)),castedCls)
	);
}


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


/* method: somPrintSelf */
SOMStringTableC*  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_SOMStringTableC_somPrintSelf)(SOMObjectClassData.somPrintSelf))(((SOMStringTableC *)((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_SOMStringTableC_somDumpSelf)(SOMObjectClassData.somDumpSelf))(((SOMStringTableC *)((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_SOMStringTableC_somDumpSelfInt)(SOMObjectClassData.somDumpSelfInt))(((SOMStringTableC *)((void *)this)),level)
	);
}



};   /* SOMStringTableC */



#endif       /* SOM_SOMStringTableC_xh */
