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

/*
 *  ModuleName:  SOMTDM
 * 
 *  Description: This module contians the idl description for the TypeCode
 * 		based encoding/decoding functional interfaces.
 * 
 *   25H7912  (C)  Copyright International Business Machines Corp. 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_TypecodeDataManipulator_xh
#define SOM_TypecodeDataManipulator_xh


#define TypecodeDataManipulator_MajorVersion 0
#define TypecodeDataManipulator_MinorVersion 0
class TypecodeDataManipulator;

/* 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 TypecodeDataManipulator_API
#define TypecodeDataManipulator_API
/*
 * -- The Class API
 */
#ifndef SOM_IMPORTEXPORT_somu2_somtdm
#ifdef SOM_DLL_somu2
	/* export semantics */
	#if defined(SOM_DEFFILE_somu2)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somu2))\
	|| !defined(SOM_Module_somtdm_Source)
	#define SOM_IMPORTEXPORT_somu2_somtdm
	#else
	#define SOM_IMPORTEXPORT_somu2_somtdm SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somu2_somtdm SOMDLLIMPORT
#endif
#endif

/*
 * Start of bindings for IDL types
 */

class SOMClass;
class SOMObject;

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

/*
 * A function to create the TypecodeDataManipulator class object...
 */
SOMEXTERN SOM_IMPORTEXPORT_somu2_somtdm SOMClass * SOMLINK TypecodeDataManipulatorNewClass(
		integer4 majorVersion,
		integer4 minorVersion);


/*
 * The API 2 ClassData Structures...
 */
SOMEXTERN struct TypecodeDataManipulatorClassDataStructure {
	SOMClass *classObject;
	somMToken tc_encode;
	somMToken tc_decode;
	somMToken tc_decode_contents;
	somMToken tc_copy;
	somMToken tc_copy_contents;
	somMToken tc_equal;
	somMToken tc_free;
	somMToken tc_free_contents;
	somMToken tc_init;
	somMToken tc_test;
} SOMDLINK SOM_IMPORTEXPORT_somu2_somtdm TypecodeDataManipulatorClassData;
SOMEXTERN struct TypecodeDataManipulatorCClassDataStructure {
	som3ClassDetailsPtr    parentMtab;
	somDToken              instanceDataToken;
} SOMDLINK SOM_IMPORTEXPORT_somu2_somtdm TypecodeDataManipulatorCClassData;


/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_TypecodeDataManipulator (TypecodeDataManipulatorClassData.classObject)
#ifndef SOMGD_TypecodeDataManipulator
    #if (defined(_TypecodeDataManipulator) || defined(__TypecodeDataManipulator))
        #undef _TypecodeDataManipulator
        #undef __TypecodeDataManipulator
        #define SOMGD_TypecodeDataManipulator 1
    #else
        #define _TypecodeDataManipulator _SOMCLASS_TypecodeDataManipulator
    #endif /* _TypecodeDataManipulator */
#endif /* SOMGD_TypecodeDataManipulator */
#define TypecodeDataManipulator_classObj _SOMCLASS_TypecodeDataManipulator
#define _SOMMTOKEN_TypecodeDataManipulator(method) ((somMToken)TypecodeDataManipulatorClassData.method)

/*
 * -- Typedefs for TypecodeDataManipulator Method Procedures
 */
SOMEXTERN {

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_TypecodeDataManipulator_somDefaultInit(TypecodeDataManipulator *somSelf, 
		som3InitCtrl* ctrl);
typedef somTP_TypecodeDataManipulator_somDefaultInit *somTD_TypecodeDataManipulator_somDefaultInit;
typedef void   SOMLINK somTP_TypecodeDataManipulator_somDestruct(TypecodeDataManipulator *somSelf, 
		octet doFree, 
		som3DestructCtrl* ctrl);
typedef somTP_TypecodeDataManipulator_somDestruct *somTD_TypecodeDataManipulator_somDestruct;
typedef void   SOMLINK somTP_TypecodeDataManipulator_somDefaultCopyInit(TypecodeDataManipulator *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_TypecodeDataManipulator_somDefaultCopyInit *somTD_TypecodeDataManipulator_somDefaultCopyInit;
typedef TypecodeDataManipulator*   SOMLINK somTP_TypecodeDataManipulator_somDefaultAssign(TypecodeDataManipulator *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_TypecodeDataManipulator_somDefaultAssign *somTD_TypecodeDataManipulator_somDefaultAssign;
typedef void   SOMLINK somTP_TypecodeDataManipulator_somDefaultConstCopyInit(TypecodeDataManipulator *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_TypecodeDataManipulator_somDefaultConstCopyInit *somTD_TypecodeDataManipulator_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_TypecodeDataManipulator_somDefaultVCopyInit(TypecodeDataManipulator *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_TypecodeDataManipulator_somDefaultVCopyInit *somTD_TypecodeDataManipulator_somDefaultVCopyInit;
typedef void   SOMLINK somTP_TypecodeDataManipulator_somDefaultConstVCopyInit(TypecodeDataManipulator *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_TypecodeDataManipulator_somDefaultConstVCopyInit *somTD_TypecodeDataManipulator_somDefaultConstVCopyInit;
typedef TypecodeDataManipulator*   SOMLINK somTP_TypecodeDataManipulator_somDefaultConstAssign(TypecodeDataManipulator *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_TypecodeDataManipulator_somDefaultConstAssign *somTD_TypecodeDataManipulator_somDefaultConstAssign;
typedef TypecodeDataManipulator*   SOMLINK somTP_TypecodeDataManipulator_somDefaultVAssign(TypecodeDataManipulator *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_TypecodeDataManipulator_somDefaultVAssign *somTD_TypecodeDataManipulator_somDefaultVAssign;
typedef TypecodeDataManipulator*   SOMLINK somTP_TypecodeDataManipulator_somDefaultConstVAssign(TypecodeDataManipulator *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_TypecodeDataManipulator_somDefaultConstVAssign *somTD_TypecodeDataManipulator_somDefaultConstVAssign;
typedef void   SOMLINK somTP_TypecodeDataManipulator_somInit(TypecodeDataManipulator *somSelf);
typedef somTP_TypecodeDataManipulator_somInit *somTD_TypecodeDataManipulator_somInit;
typedef void   SOMLINK somTP_TypecodeDataManipulator_somUninit(TypecodeDataManipulator *somSelf);
typedef somTP_TypecodeDataManipulator_somUninit *somTD_TypecodeDataManipulator_somUninit;
typedef void   SOMLINK somTP_TypecodeDataManipulator_somFree(TypecodeDataManipulator *somSelf);
typedef somTP_TypecodeDataManipulator_somFree *somTD_TypecodeDataManipulator_somFree;
typedef SOMClass*   SOMLINK somTP_TypecodeDataManipulator_somGetClass(TypecodeDataManipulator *somSelf);
typedef somTP_TypecodeDataManipulator_somGetClass *somTD_TypecodeDataManipulator_somGetClass;
typedef string   SOMLINK somTP_TypecodeDataManipulator_somGetClassName(TypecodeDataManipulator *somSelf);
typedef somTP_TypecodeDataManipulator_somGetClassName *somTD_TypecodeDataManipulator_somGetClassName;
typedef long   SOMLINK somTP_TypecodeDataManipulator_somGetSize(TypecodeDataManipulator *somSelf);
typedef somTP_TypecodeDataManipulator_somGetSize *somTD_TypecodeDataManipulator_somGetSize;
typedef boolean   SOMLINK somTP_TypecodeDataManipulator_somIsA(TypecodeDataManipulator *somSelf, 
		SOMClass* aClassObj);
typedef somTP_TypecodeDataManipulator_somIsA *somTD_TypecodeDataManipulator_somIsA;
typedef boolean   SOMLINK somTP_TypecodeDataManipulator_somIsInstanceOf(TypecodeDataManipulator *somSelf, 
		SOMClass* aClassObj);
typedef somTP_TypecodeDataManipulator_somIsInstanceOf *somTD_TypecodeDataManipulator_somIsInstanceOf;
typedef boolean   SOMLINK somTP_TypecodeDataManipulator_somRespondsTo(TypecodeDataManipulator *somSelf, 
		somId mId);
typedef somTP_TypecodeDataManipulator_somRespondsTo *somTD_TypecodeDataManipulator_somRespondsTo;
typedef boolean   SOMLINK somTP_TypecodeDataManipulator_somDispatch(TypecodeDataManipulator *somSelf, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_TypecodeDataManipulator_somDispatch *somTD_TypecodeDataManipulator_somDispatch;
typedef boolean   SOMLINK somTP_TypecodeDataManipulator_somClassDispatch(TypecodeDataManipulator *somSelf, 
		SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_TypecodeDataManipulator_somClassDispatch *somTD_TypecodeDataManipulator_somClassDispatch;
typedef boolean   SOMLINK somTP_TypecodeDataManipulator_somCastObj(TypecodeDataManipulator *somSelf, 
		SOMClass* castedCls);
typedef somTP_TypecodeDataManipulator_somCastObj *somTD_TypecodeDataManipulator_somCastObj;
typedef boolean   SOMLINK somTP_TypecodeDataManipulator_somResetObj(TypecodeDataManipulator *somSelf);
typedef somTP_TypecodeDataManipulator_somResetObj *somTD_TypecodeDataManipulator_somResetObj;
typedef TypecodeDataManipulator*   SOMLINK somTP_TypecodeDataManipulator_somPrintSelf(TypecodeDataManipulator *somSelf);
typedef somTP_TypecodeDataManipulator_somPrintSelf *somTD_TypecodeDataManipulator_somPrintSelf;
typedef void   SOMLINK somTP_TypecodeDataManipulator_somDumpSelf(TypecodeDataManipulator *somSelf, 
		long level);
typedef somTP_TypecodeDataManipulator_somDumpSelf *somTD_TypecodeDataManipulator_somDumpSelf;
typedef void   SOMLINK somTP_TypecodeDataManipulator_somDumpSelfInt(TypecodeDataManipulator *somSelf, 
		long level);
typedef somTP_TypecodeDataManipulator_somDumpSelfInt *somTD_TypecodeDataManipulator_somDumpSelfInt;
}

#endif /* TypecodeDataManipulator_API */


/*
 * -- The C++ Wrapper Class for TypecodeDataManipulator
 */
class TypecodeDataManipulator : public SOMObject
{
public:

// TypecodeDataManipulator::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 (!_TypecodeDataManipulator) TypecodeDataManipulatorNewClass(TypecodeDataManipulator_MajorVersion,TypecodeDataManipulator_MinorVersion);
   return (void*)
   (((somTD_SOMClass_somNewNoInit)(SOMClassClassData.somNewNoInit))
         ((SOMClass *)((void*)_TypecodeDataManipulator)));
}

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

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

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

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


/*
 * 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_TypecodeDataManipulator_somDefaultInit)(SOMObjectClassData.somDefaultInit))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somDestruct)(SOMObjectClassData.somDestruct))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somDefaultCopyInit)(SOMObjectClassData.somDefaultCopyInit))(((TypecodeDataManipulator *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultAssign */
TypecodeDataManipulator*  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_TypecodeDataManipulator_somDefaultAssign)(SOMObjectClassData.somDefaultAssign))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somDefaultConstCopyInit)(SOMObjectClassData.somDefaultConstCopyInit))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somDefaultVCopyInit)(SOMObjectClassData.somDefaultVCopyInit))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somDefaultConstVCopyInit)(SOMObjectClassData.somDefaultConstVCopyInit))(((TypecodeDataManipulator *)((void *)this)),ctrl,fromObj)
	);
}


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


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


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


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


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


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


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


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


/* method: somGetSize */
long   somGetSize()
{
/*
 *  Return the size of the receiver.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_TypecodeDataManipulator_somGetSize)(SOMObjectClassData.somGetSize))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somIsA)(SOMObjectClassData.somIsA))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somIsInstanceOf)(SOMObjectClassData.somIsInstanceOf))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somRespondsTo)(SOMObjectClassData.somRespondsTo))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somDispatch)(SOMObjectClassData.somDispatch))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somDispatch)(SOMObjectClassData.somDispatch))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somCastObj)(SOMObjectClassData.somCastObj))(((TypecodeDataManipulator *)((void *)this)),castedCls)
	);
}


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


/* method: somPrintSelf */
TypecodeDataManipulator*  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_TypecodeDataManipulator_somPrintSelf)(SOMObjectClassData.somPrintSelf))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somDumpSelf)(SOMObjectClassData.somDumpSelf))(((TypecodeDataManipulator *)((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_TypecodeDataManipulator_somDumpSelfInt)(SOMObjectClassData.somDumpSelfInt))(((TypecodeDataManipulator *)((void *)this)),level)
	);
}



};   /* TypecodeDataManipulator */



#endif       /* SOM_TypecodeDataManipulator_xh */
