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

/*
 *    COMPONENT_NAME: somd
 * 
 *    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.
 * 
 * 
 *    This is an abstract class which defines the CORBA-defined interface
 *    for a Basic Object Adapter.  The SOM Object Adapter interface is
 *    derived from this one.  SOMOA provides the actual implementation in DSOM.
 */


#ifndef SOM_BOA_xh
#define SOM_BOA_xh


#define BOA_MajorVersion 2
#define BOA_MinorVersion 2
class BOA;

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

/* Metaclass */
#ifndef SOM_SOMMSingleInstance_xh
#ifdef SOMLOCALINCLUDES
#include "snglicls.xh"
#else
#include <snglicls.xh>
#endif
#endif

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

#ifndef BOA_API
#define BOA_API
/*
 * -- The Class API
 */
#ifndef SOM_IMPORTEXPORT_somd_boa
#ifdef SOM_DLL_somd
	/* export semantics */
	#if defined(SOM_DEFFILE_somd)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somd))\
	|| !defined(SOM_Module_boa_Source)
	#define SOM_IMPORTEXPORT_somd_boa
	#else
	#define SOM_IMPORTEXPORT_somd_boa SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somd_boa SOMDLLIMPORT
#endif
#endif

/*
 * Start of bindings for IDL types
 */

class SOMClass;
class SOMObject;
class Container;
class SOMDObject;
class Principal;
class ImplementationDef;
class InterfaceDef;
class Context;

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

/*
 * A function to create the BOA class object...
 */
SOMEXTERN SOM_IMPORTEXPORT_somd_boa SOMMSingleInstance * SOMLINK BOANewClass(
		integer4 majorVersion,
		integer4 minorVersion);


/*
 * The API 2 ClassData Structures...
 */
class SOMMSingleInstance;
SOMEXTERN struct BOAClassDataStructure {
	SOMMSingleInstance *classObject;
	somMToken create;
	somMToken dispose;
	somMToken get_id;
	somMToken change_implementation;
	somMToken get_principal;
	somMToken set_exception;
	somMToken impl_is_ready;
	somMToken deactivate_impl;
	somMToken obj_is_ready;
	somMToken deactivate_obj;
	somMToken unused1;
	somMToken unused2;
} SOMDLINK SOM_IMPORTEXPORT_somd_boa BOAClassData;
SOMEXTERN struct BOACClassDataStructure {
	som3ClassDetailsPtr    parentMtab;
	somDToken              instanceDataToken;
} SOMDLINK SOM_IMPORTEXPORT_somd_boa BOACClassData;


/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_BOA (BOAClassData.classObject)
#ifndef SOMGD_BOA
    #if (defined(_BOA) || defined(__BOA))
        #undef _BOA
        #undef __BOA
        #define SOMGD_BOA 1
    #else
        #define _BOA _SOMCLASS_BOA
    #endif /* _BOA */
#endif /* SOMGD_BOA */
#define BOA_classObj _SOMCLASS_BOA
#define _SOMMTOKEN_BOA(method) ((somMToken)BOAClassData.method)

/*
 * -- Typedefs for BOA Method Procedures
 */
SOMEXTERN {
typedef SOMDObject*   SOMLINK somTP_BOA_create(BOA *somSelf, Environment *ev, 
		ReferenceData* id, 
		InterfaceDef* intf, 
		ImplementationDef* impl);
typedef somTP_BOA_create *somTD_BOA_create;
typedef void   SOMLINK somTP_BOA_dispose(BOA *somSelf, Environment *ev, 
		SOMDObject* obj);
typedef somTP_BOA_dispose *somTD_BOA_dispose;
typedef ReferenceData   SOMLINK somTP_BOA_get_id(BOA *somSelf, Environment *ev, 
		SOMDObject* obj);
typedef somTP_BOA_get_id *somTD_BOA_get_id;
typedef Principal*   SOMLINK somTP_BOA_get_principal(BOA *somSelf, Environment *ev, 
		SOMDObject* obj, 
		Environment* req_ev);
typedef somTP_BOA_get_principal *somTD_BOA_get_principal;
typedef void   SOMLINK somTP_BOA_set_exception(BOA *somSelf, Environment *ev, 
		exception_type major, 
		string userid, 
		void* param);
typedef somTP_BOA_set_exception *somTD_BOA_set_exception;
typedef void   SOMLINK somTP_BOA_impl_is_ready(BOA *somSelf, Environment *ev, 
		ImplementationDef* impl);
typedef somTP_BOA_impl_is_ready *somTD_BOA_impl_is_ready;
typedef void   SOMLINK somTP_BOA_deactivate_impl(BOA *somSelf, Environment *ev, 
		ImplementationDef* impl);
typedef somTP_BOA_deactivate_impl *somTD_BOA_deactivate_impl;
typedef void   SOMLINK somTP_BOA_change_implementation(BOA *somSelf, Environment *ev, 
		SOMDObject* obj, 
		ImplementationDef* impl);
typedef somTP_BOA_change_implementation *somTD_BOA_change_implementation;
typedef void   SOMLINK somTP_BOA_obj_is_ready(BOA *somSelf, Environment *ev, 
		SOMDObject* obj, 
		ImplementationDef* impl);
typedef somTP_BOA_obj_is_ready *somTD_BOA_obj_is_ready;
typedef void   SOMLINK somTP_BOA_deactivate_obj(BOA *somSelf, Environment *ev, 
		SOMDObject* obj);
typedef somTP_BOA_deactivate_obj *somTD_BOA_deactivate_obj;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_BOA_somDefaultInit(BOA *somSelf, 
		som3InitCtrl* ctrl);
typedef somTP_BOA_somDefaultInit *somTD_BOA_somDefaultInit;
typedef void   SOMLINK somTP_BOA_somDestruct(BOA *somSelf, 
		octet doFree, 
		som3DestructCtrl* ctrl);
typedef somTP_BOA_somDestruct *somTD_BOA_somDestruct;
typedef void   SOMLINK somTP_BOA_somDefaultCopyInit(BOA *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_BOA_somDefaultCopyInit *somTD_BOA_somDefaultCopyInit;
typedef BOA*   SOMLINK somTP_BOA_somDefaultAssign(BOA *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_BOA_somDefaultAssign *somTD_BOA_somDefaultAssign;
typedef void   SOMLINK somTP_BOA_somDefaultConstCopyInit(BOA *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_BOA_somDefaultConstCopyInit *somTD_BOA_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_BOA_somDefaultVCopyInit(BOA *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_BOA_somDefaultVCopyInit *somTD_BOA_somDefaultVCopyInit;
typedef void   SOMLINK somTP_BOA_somDefaultConstVCopyInit(BOA *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_BOA_somDefaultConstVCopyInit *somTD_BOA_somDefaultConstVCopyInit;
typedef BOA*   SOMLINK somTP_BOA_somDefaultConstAssign(BOA *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_BOA_somDefaultConstAssign *somTD_BOA_somDefaultConstAssign;
typedef BOA*   SOMLINK somTP_BOA_somDefaultVAssign(BOA *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_BOA_somDefaultVAssign *somTD_BOA_somDefaultVAssign;
typedef BOA*   SOMLINK somTP_BOA_somDefaultConstVAssign(BOA *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_BOA_somDefaultConstVAssign *somTD_BOA_somDefaultConstVAssign;
typedef void   SOMLINK somTP_BOA_somInit(BOA *somSelf);
typedef somTP_BOA_somInit *somTD_BOA_somInit;
typedef void   SOMLINK somTP_BOA_somUninit(BOA *somSelf);
typedef somTP_BOA_somUninit *somTD_BOA_somUninit;
typedef void   SOMLINK somTP_BOA_somFree(BOA *somSelf);
typedef somTP_BOA_somFree *somTD_BOA_somFree;
typedef SOMMSingleInstance*   SOMLINK somTP_BOA_somGetClass(BOA *somSelf);
typedef somTP_BOA_somGetClass *somTD_BOA_somGetClass;
typedef string   SOMLINK somTP_BOA_somGetClassName(BOA *somSelf);
typedef somTP_BOA_somGetClassName *somTD_BOA_somGetClassName;
typedef long   SOMLINK somTP_BOA_somGetSize(BOA *somSelf);
typedef somTP_BOA_somGetSize *somTD_BOA_somGetSize;
typedef boolean   SOMLINK somTP_BOA_somIsA(BOA *somSelf, 
		SOMClass* aClassObj);
typedef somTP_BOA_somIsA *somTD_BOA_somIsA;
typedef boolean   SOMLINK somTP_BOA_somIsInstanceOf(BOA *somSelf, 
		SOMClass* aClassObj);
typedef somTP_BOA_somIsInstanceOf *somTD_BOA_somIsInstanceOf;
typedef boolean   SOMLINK somTP_BOA_somRespondsTo(BOA *somSelf, 
		somId mId);
typedef somTP_BOA_somRespondsTo *somTD_BOA_somRespondsTo;
typedef boolean   SOMLINK somTP_BOA_somDispatch(BOA *somSelf, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_BOA_somDispatch *somTD_BOA_somDispatch;
typedef boolean   SOMLINK somTP_BOA_somClassDispatch(BOA *somSelf, 
		SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_BOA_somClassDispatch *somTD_BOA_somClassDispatch;
typedef boolean   SOMLINK somTP_BOA_somCastObj(BOA *somSelf, 
		SOMClass* castedCls);
typedef somTP_BOA_somCastObj *somTD_BOA_somCastObj;
typedef boolean   SOMLINK somTP_BOA_somResetObj(BOA *somSelf);
typedef somTP_BOA_somResetObj *somTD_BOA_somResetObj;
typedef BOA*   SOMLINK somTP_BOA_somPrintSelf(BOA *somSelf);
typedef somTP_BOA_somPrintSelf *somTD_BOA_somPrintSelf;
typedef void   SOMLINK somTP_BOA_somDumpSelf(BOA *somSelf, 
		long level);
typedef somTP_BOA_somDumpSelf *somTD_BOA_somDumpSelf;
typedef void   SOMLINK somTP_BOA_somDumpSelfInt(BOA *somSelf, 
		long level);
typedef somTP_BOA_somDumpSelfInt *somTD_BOA_somDumpSelfInt;
}

#endif /* BOA_API */


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

// BOA::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 (!_BOA) BOANewClass(BOA_MajorVersion,BOA_MinorVersion);
   return (void*)
   (((somTD_SOMClass_somNewNoInit)(SOMClassClassData.somNewNoInit))
         ((SOMClass *)((void*)_BOA)));
}

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

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

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

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


/* method: create */
SOMDObject*   create(Environment *ev, 
		ReferenceData* id, 
		InterfaceDef* intf, 
		ImplementationDef* impl)
{
/*
 *  Creates a SOMDObject which is used as as "reference" to a local
 *  application object.  An object reference is simply an object
 *  which is used to refer to another target object.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_BOA),
	 ((somTD_BOA_create)(BOAClassData.create))(((BOA *)((void *)this)), ev,id,intf,impl)
	);
}


/* method: dispose */
void   dispose(Environment *ev, 
		SOMDObject* obj)
{
/*
 *  Destroys an object reference.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_BOA),
	 ((somTD_BOA_dispose)(BOAClassData.dispose))(((BOA *)((void *)this)), ev,obj)
	);
}


/* method: get_id */
ReferenceData   get_id(Environment *ev, 
		SOMDObject* obj)
{
/*
 *  Returns ReferenceData associated with referenced object.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_BOA),
	 ((somTD_BOA_get_id)(BOAClassData.get_id))(((BOA *)((void *)this)), ev,obj)
	);
}


/* method: get_principal */
Principal*   get_principal(Environment *ev, 
		SOMDObject* obj, 
		Environment* req_ev)
{
/*
 *  Returns the ID of the principal that issued the request.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_BOA),
	 ((somTD_BOA_get_principal)(BOAClassData.get_principal))(((BOA *)((void *)this)), ev,obj,req_ev)
	);
}


/* method: set_exception */
void   set_exception(Environment *ev, 
		exception_type major, 
		string userid, 
		void* param)
{
/*
 *  Returns an exception to the client.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_BOA),
	 ((somTD_BOA_set_exception)(BOAClassData.set_exception))(((BOA *)((void *)this)), ev,major,userid,param)
	);
}


/* method: impl_is_ready */
void   impl_is_ready(Environment *ev, 
		ImplementationDef* impl)
{
/*
 *  Indicates that the implementation is now ready to process requests.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_BOA),
	 ((somTD_BOA_impl_is_ready)(BOAClassData.impl_is_ready))(((BOA *)((void *)this)), ev,impl)
	);
}


/* method: deactivate_impl */
void   deactivate_impl(Environment *ev, 
		ImplementationDef* impl)
{
/*
 *  Indicates that the implementation is no longer ready to process reqs.
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_BOA),
	 ((somTD_BOA_deactivate_impl)(BOAClassData.deactivate_impl))(((BOA *)((void *)this)), ev,impl)
	);
}


/* method: change_implementation */
void   change_implementation(Environment *ev, 
		SOMDObject* obj, 
		ImplementationDef* impl)
{
/*
 *  Changes the implementation associated with the referenced object.
 *  Change is seen for all copies of the object reference.
 *  (NOTE: Null implementation in this release of DSOM.)
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_BOA),
	 ((somTD_BOA_change_implementation)(BOAClassData.change_implementation))(((BOA *)((void *)this)), ev,obj,impl)
	);
}


/* method: obj_is_ready */
void   obj_is_ready(Environment *ev, 
		SOMDObject* obj, 
		ImplementationDef* impl)
{
/*
 *  Indicates that the object is ready to process requests.
 *  (NOTE: Null implementation in this release of DSOM.)
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_BOA),
	 ((somTD_BOA_obj_is_ready)(BOAClassData.obj_is_ready))(((BOA *)((void *)this)), ev,obj,impl)
	);
}


/* method: deactivate_obj */
void   deactivate_obj(Environment *ev, 
		SOMDObject* obj)
{
/*
 *  Indicates that the object is no longer ready to process requests.
 *  (NOTE: Null implementation in this release of DSOM.)
 */
   	(
	 SOM_TestCls(this,_SOMCLASS_BOA),
	 ((somTD_BOA_deactivate_obj)(BOAClassData.deactivate_obj))(((BOA *)((void *)this)), ev,obj)
	);
}


/*
 * 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_BOA_somDefaultInit)(SOMObjectClassData.somDefaultInit))(((BOA *)((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_BOA_somDestruct)(SOMObjectClassData.somDestruct))(((BOA *)((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_BOA_somDefaultCopyInit)(SOMObjectClassData.somDefaultCopyInit))(((BOA *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultAssign */
BOA*  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_BOA_somDefaultAssign)(SOMObjectClassData.somDefaultAssign))(((BOA *)((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_BOA_somDefaultConstCopyInit)(SOMObjectClassData.somDefaultConstCopyInit))(((BOA *)((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_BOA_somDefaultVCopyInit)(SOMObjectClassData.somDefaultVCopyInit))(((BOA *)((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_BOA_somDefaultConstVCopyInit)(SOMObjectClassData.somDefaultConstVCopyInit))(((BOA *)((void *)this)),ctrl,fromObj)
	);
}


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


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


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


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


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


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


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


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


/* method: somGetSize */
long   somGetSize()
{
/*
 *  Return the size of the receiver.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_BOA_somGetSize)(SOMObjectClassData.somGetSize))(((BOA *)((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_BOA_somIsA)(SOMObjectClassData.somIsA))(((BOA *)((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_BOA_somIsInstanceOf)(SOMObjectClassData.somIsInstanceOf))(((BOA *)((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_BOA_somRespondsTo)(SOMObjectClassData.somRespondsTo))(((BOA *)((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_BOA_somDispatch)(SOMObjectClassData.somDispatch))(((BOA *)((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_BOA_somDispatch)(SOMObjectClassData.somDispatch))(((BOA *)((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_BOA_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((BOA *)((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_BOA_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((BOA *)((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_BOA_somCastObj)(SOMObjectClassData.somCastObj))(((BOA *)((void *)this)),castedCls)
	);
}


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


/* method: somPrintSelf */
BOA*  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_BOA_somPrintSelf)(SOMObjectClassData.somPrintSelf))(((BOA *)((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_BOA_somDumpSelf)(SOMObjectClassData.somDumpSelf))(((BOA *)((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_BOA_somDumpSelfInt)(SOMObjectClassData.somDumpSelfInt))(((BOA *)((void *)this)),level)
	);
}



};   /* BOA */



#endif       /* SOM_BOA_xh */
