
/*
 * This file was generated by the SOM Compiler.
 * FileName: servmgr.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,1996,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_SOMDServerMgr_xh
#define SOM_SOMDServerMgr_xh


#define SOMDServerMgr_MajorVersion 2
#define SOMDServerMgr_MinorVersion 1
class SOMDServerMgr;

/* 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 SOMDServerMgr_API
#define SOMDServerMgr_API
/*
 * -- The Class API
 */
#ifndef SOM_IMPORTEXPORT_somd_servmgr
#ifdef SOM_DLL_somd
	/* export semantics */
	#if defined(SOM_DEFFILE_somd)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somd))\
	|| !defined(SOM_Module_servmgr_Source)
	#define SOM_IMPORTEXPORT_somd_servmgr
	#else
	#define SOM_IMPORTEXPORT_somd_servmgr SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somd_servmgr SOMDLLIMPORT
#endif
#endif

/*
 * Start of bindings for IDL types
 */

class SOMClass;
class SOMObject;
class Container;
class ImplementationDef;

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

/*
 * A function to create the SOMDServerMgr class object...
 */
SOMEXTERN SOM_IMPORTEXPORT_somd_servmgr SOMClass * SOMLINK SOMDServerMgrNewClass(
		integer4 majorVersion,
		integer4 minorVersion);


/*
 * The API 2 ClassData Structures...
 */
SOMEXTERN struct SOMDServerMgrClassDataStructure {
	SOMClass *classObject;
	somMToken somdShutdownServer;
	somMToken somdStartServer;
	somMToken somdRestartServer;
	somMToken somdListServer;
	somMToken somdDisableServer;
	somMToken somdEnableServer;
	somMToken somdIsServerEnabled;
	somMToken somdShutdownImpl;
} SOMDLINK SOM_IMPORTEXPORT_somd_servmgr SOMDServerMgrClassData;
SOMEXTERN struct SOMDServerMgrCClassDataStructure {
	som3ClassDetailsPtr    parentMtab;
	somDToken              instanceDataToken;
} SOMDLINK SOM_IMPORTEXPORT_somd_servmgr SOMDServerMgrCClassData;


/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_SOMDServerMgr (SOMDServerMgrClassData.classObject)
#ifndef SOMGD_SOMDServerMgr
    #if (defined(_SOMDServerMgr) || defined(__SOMDServerMgr))
        #undef _SOMDServerMgr
        #undef __SOMDServerMgr
        #define SOMGD_SOMDServerMgr 1
    #else
        #define _SOMDServerMgr _SOMCLASS_SOMDServerMgr
    #endif /* _SOMDServerMgr */
#endif /* SOMGD_SOMDServerMgr */
#define SOMDServerMgr_classObj _SOMCLASS_SOMDServerMgr
#define _SOMMTOKEN_SOMDServerMgr(method) ((somMToken)SOMDServerMgrClassData.method)

/*
 * -- Typedefs for SOMDServerMgr Method Procedures
 */
SOMEXTERN {
typedef ORBStatus   SOMLINK somTP_SOMDServerMgr_somdShutdownServer(SOMDServerMgr *somSelf, Environment *ev, 
		string server_alias);
typedef somTP_SOMDServerMgr_somdShutdownServer *somTD_SOMDServerMgr_somdShutdownServer;
typedef ORBStatus   SOMLINK somTP_SOMDServerMgr_somdShutdownImpl(SOMDServerMgr *somSelf, Environment *ev, 
		ImplementationDef* impldef);
typedef somTP_SOMDServerMgr_somdShutdownImpl *somTD_SOMDServerMgr_somdShutdownImpl;
typedef ORBStatus   SOMLINK somTP_SOMDServerMgr_somdStartServer(SOMDServerMgr *somSelf, Environment *ev, 
		string server_alias);
typedef somTP_SOMDServerMgr_somdStartServer *somTD_SOMDServerMgr_somdStartServer;
typedef ORBStatus   SOMLINK somTP_SOMDServerMgr_somdRestartServer(SOMDServerMgr *somSelf, Environment *ev, 
		string server_alias);
typedef somTP_SOMDServerMgr_somdRestartServer *somTD_SOMDServerMgr_somdRestartServer;
typedef ORBStatus   SOMLINK somTP_SOMDServerMgr_somdListServer(SOMDServerMgr *somSelf, Environment *ev, 
		string server_alias);
typedef somTP_SOMDServerMgr_somdListServer *somTD_SOMDServerMgr_somdListServer;
typedef ORBStatus   SOMLINK somTP_SOMDServerMgr_somdDisableServer(SOMDServerMgr *somSelf, Environment *ev, 
		string server_alias);
typedef somTP_SOMDServerMgr_somdDisableServer *somTD_SOMDServerMgr_somdDisableServer;
typedef ORBStatus   SOMLINK somTP_SOMDServerMgr_somdEnableServer(SOMDServerMgr *somSelf, Environment *ev, 
		string server_alias);
typedef somTP_SOMDServerMgr_somdEnableServer *somTD_SOMDServerMgr_somdEnableServer;
typedef boolean   SOMLINK somTP_SOMDServerMgr_somdIsServerEnabled(SOMDServerMgr *somSelf, Environment *ev, 
		ImplementationDef* impldef);
typedef somTP_SOMDServerMgr_somdIsServerEnabled *somTD_SOMDServerMgr_somdIsServerEnabled;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_SOMDServerMgr_somDefaultInit(SOMDServerMgr *somSelf, 
		som3InitCtrl* ctrl);
typedef somTP_SOMDServerMgr_somDefaultInit *somTD_SOMDServerMgr_somDefaultInit;
typedef void   SOMLINK somTP_SOMDServerMgr_somDestruct(SOMDServerMgr *somSelf, 
		octet doFree, 
		som3DestructCtrl* ctrl);
typedef somTP_SOMDServerMgr_somDestruct *somTD_SOMDServerMgr_somDestruct;
typedef void   SOMLINK somTP_SOMDServerMgr_somDefaultCopyInit(SOMDServerMgr *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMDServerMgr_somDefaultCopyInit *somTD_SOMDServerMgr_somDefaultCopyInit;
typedef SOMDServerMgr*   SOMLINK somTP_SOMDServerMgr_somDefaultAssign(SOMDServerMgr *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMDServerMgr_somDefaultAssign *somTD_SOMDServerMgr_somDefaultAssign;
typedef void   SOMLINK somTP_SOMDServerMgr_somDefaultConstCopyInit(SOMDServerMgr *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMDServerMgr_somDefaultConstCopyInit *somTD_SOMDServerMgr_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_SOMDServerMgr_somDefaultVCopyInit(SOMDServerMgr *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMDServerMgr_somDefaultVCopyInit *somTD_SOMDServerMgr_somDefaultVCopyInit;
typedef void   SOMLINK somTP_SOMDServerMgr_somDefaultConstVCopyInit(SOMDServerMgr *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMDServerMgr_somDefaultConstVCopyInit *somTD_SOMDServerMgr_somDefaultConstVCopyInit;
typedef SOMDServerMgr*   SOMLINK somTP_SOMDServerMgr_somDefaultConstAssign(SOMDServerMgr *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMDServerMgr_somDefaultConstAssign *somTD_SOMDServerMgr_somDefaultConstAssign;
typedef SOMDServerMgr*   SOMLINK somTP_SOMDServerMgr_somDefaultVAssign(SOMDServerMgr *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMDServerMgr_somDefaultVAssign *somTD_SOMDServerMgr_somDefaultVAssign;
typedef SOMDServerMgr*   SOMLINK somTP_SOMDServerMgr_somDefaultConstVAssign(SOMDServerMgr *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_SOMDServerMgr_somDefaultConstVAssign *somTD_SOMDServerMgr_somDefaultConstVAssign;
typedef void   SOMLINK somTP_SOMDServerMgr_somInit(SOMDServerMgr *somSelf);
typedef somTP_SOMDServerMgr_somInit *somTD_SOMDServerMgr_somInit;
typedef void   SOMLINK somTP_SOMDServerMgr_somUninit(SOMDServerMgr *somSelf);
typedef somTP_SOMDServerMgr_somUninit *somTD_SOMDServerMgr_somUninit;
typedef void   SOMLINK somTP_SOMDServerMgr_somFree(SOMDServerMgr *somSelf);
typedef somTP_SOMDServerMgr_somFree *somTD_SOMDServerMgr_somFree;
typedef SOMClass*   SOMLINK somTP_SOMDServerMgr_somGetClass(SOMDServerMgr *somSelf);
typedef somTP_SOMDServerMgr_somGetClass *somTD_SOMDServerMgr_somGetClass;
typedef string   SOMLINK somTP_SOMDServerMgr_somGetClassName(SOMDServerMgr *somSelf);
typedef somTP_SOMDServerMgr_somGetClassName *somTD_SOMDServerMgr_somGetClassName;
typedef long   SOMLINK somTP_SOMDServerMgr_somGetSize(SOMDServerMgr *somSelf);
typedef somTP_SOMDServerMgr_somGetSize *somTD_SOMDServerMgr_somGetSize;
typedef boolean   SOMLINK somTP_SOMDServerMgr_somIsA(SOMDServerMgr *somSelf, 
		SOMClass* aClassObj);
typedef somTP_SOMDServerMgr_somIsA *somTD_SOMDServerMgr_somIsA;
typedef boolean   SOMLINK somTP_SOMDServerMgr_somIsInstanceOf(SOMDServerMgr *somSelf, 
		SOMClass* aClassObj);
typedef somTP_SOMDServerMgr_somIsInstanceOf *somTD_SOMDServerMgr_somIsInstanceOf;
typedef boolean   SOMLINK somTP_SOMDServerMgr_somRespondsTo(SOMDServerMgr *somSelf, 
		somId mId);
typedef somTP_SOMDServerMgr_somRespondsTo *somTD_SOMDServerMgr_somRespondsTo;
typedef boolean   SOMLINK somTP_SOMDServerMgr_somDispatch(SOMDServerMgr *somSelf, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_SOMDServerMgr_somDispatch *somTD_SOMDServerMgr_somDispatch;
typedef boolean   SOMLINK somTP_SOMDServerMgr_somClassDispatch(SOMDServerMgr *somSelf, 
		SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_SOMDServerMgr_somClassDispatch *somTD_SOMDServerMgr_somClassDispatch;
typedef boolean   SOMLINK somTP_SOMDServerMgr_somCastObj(SOMDServerMgr *somSelf, 
		SOMClass* castedCls);
typedef somTP_SOMDServerMgr_somCastObj *somTD_SOMDServerMgr_somCastObj;
typedef boolean   SOMLINK somTP_SOMDServerMgr_somResetObj(SOMDServerMgr *somSelf);
typedef somTP_SOMDServerMgr_somResetObj *somTD_SOMDServerMgr_somResetObj;
typedef SOMDServerMgr*   SOMLINK somTP_SOMDServerMgr_somPrintSelf(SOMDServerMgr *somSelf);
typedef somTP_SOMDServerMgr_somPrintSelf *somTD_SOMDServerMgr_somPrintSelf;
typedef void   SOMLINK somTP_SOMDServerMgr_somDumpSelf(SOMDServerMgr *somSelf, 
		long level);
typedef somTP_SOMDServerMgr_somDumpSelf *somTD_SOMDServerMgr_somDumpSelf;
typedef void   SOMLINK somTP_SOMDServerMgr_somDumpSelfInt(SOMDServerMgr *somSelf, 
		long level);
typedef somTP_SOMDServerMgr_somDumpSelfInt *somTD_SOMDServerMgr_somDumpSelfInt;
}

#endif /* SOMDServerMgr_API */


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

// SOMDServerMgr::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 (!_SOMDServerMgr) SOMDServerMgrNewClass(SOMDServerMgr_MajorVersion,SOMDServerMgr_MinorVersion);
   return (void*)
   (((somTD_SOMClass_somNewNoInit)(SOMClassClassData.somNewNoInit))
         ((SOMClass *)((void*)_SOMDServerMgr)));
}

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

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

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

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


/* method: somdShutdownServer */
ORBStatus   somdShutdownServer(Environment *ev, 
		string server_alias)
{
/*
 *  Responsibility of caller to ensure that the server is finished
 *  processing requests before invoking somdShutdownServer.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMDServerMgr),
	 ((somTD_SOMDServerMgr_somdShutdownServer)(SOMDServerMgrClassData.somdShutdownServer))(((SOMDServerMgr *)((void *)this)), ev,server_alias)
	);
}


/* method: somdShutdownImpl */
ORBStatus   somdShutdownImpl(Environment *ev, 
		ImplementationDef* impldef)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMDServerMgr),
	 ((somTD_SOMDServerMgr_somdShutdownImpl)(SOMDServerMgrClassData.somdShutdownImpl))(((SOMDServerMgr *)((void *)this)), ev,impldef)
	);
}


/* method: somdStartServer */
ORBStatus   somdStartServer(Environment *ev, 
		string server_alias)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMDServerMgr),
	 ((somTD_SOMDServerMgr_somdStartServer)(SOMDServerMgrClassData.somdStartServer))(((SOMDServerMgr *)((void *)this)), ev,server_alias)
	);
}


/* method: somdRestartServer */
ORBStatus   somdRestartServer(Environment *ev, 
		string server_alias)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMDServerMgr),
	 ((somTD_SOMDServerMgr_somdRestartServer)(SOMDServerMgrClassData.somdRestartServer))(((SOMDServerMgr *)((void *)this)), ev,server_alias)
	);
}


/* method: somdListServer */
ORBStatus   somdListServer(Environment *ev, 
		string server_alias)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMDServerMgr),
	 ((somTD_SOMDServerMgr_somdListServer)(SOMDServerMgrClassData.somdListServer))(((SOMDServerMgr *)((void *)this)), ev,server_alias)
	);
}


/* method: somdDisableServer */
ORBStatus   somdDisableServer(Environment *ev, 
		string server_alias)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMDServerMgr),
	 ((somTD_SOMDServerMgr_somdDisableServer)(SOMDServerMgrClassData.somdDisableServer))(((SOMDServerMgr *)((void *)this)), ev,server_alias)
	);
}


/* method: somdEnableServer */
ORBStatus   somdEnableServer(Environment *ev, 
		string server_alias)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMDServerMgr),
	 ((somTD_SOMDServerMgr_somdEnableServer)(SOMDServerMgrClassData.somdEnableServer))(((SOMDServerMgr *)((void *)this)), ev,server_alias)
	);
}


/* method: somdIsServerEnabled */
boolean   somdIsServerEnabled(Environment *ev, 
		ImplementationDef* impldef)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMDServerMgr),
	 ((somTD_SOMDServerMgr_somdIsServerEnabled)(SOMDServerMgrClassData.somdIsServerEnabled))(((SOMDServerMgr *)((void *)this)), ev,impldef)
	);
}


/*
 * 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_SOMDServerMgr_somDefaultInit)(SOMObjectClassData.somDefaultInit))(((SOMDServerMgr *)((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_SOMDServerMgr_somDestruct)(SOMObjectClassData.somDestruct))(((SOMDServerMgr *)((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_SOMDServerMgr_somDefaultCopyInit)(SOMObjectClassData.somDefaultCopyInit))(((SOMDServerMgr *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultAssign */
SOMDServerMgr*  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_SOMDServerMgr_somDefaultAssign)(SOMObjectClassData.somDefaultAssign))(((SOMDServerMgr *)((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_SOMDServerMgr_somDefaultConstCopyInit)(SOMObjectClassData.somDefaultConstCopyInit))(((SOMDServerMgr *)((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_SOMDServerMgr_somDefaultVCopyInit)(SOMObjectClassData.somDefaultVCopyInit))(((SOMDServerMgr *)((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_SOMDServerMgr_somDefaultConstVCopyInit)(SOMObjectClassData.somDefaultConstVCopyInit))(((SOMDServerMgr *)((void *)this)),ctrl,fromObj)
	);
}


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


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


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


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


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


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


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


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


/* method: somGetSize */
long   somGetSize()
{
/*
 *  Return the size of the receiver.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_SOMDServerMgr_somGetSize)(SOMObjectClassData.somGetSize))(((SOMDServerMgr *)((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_SOMDServerMgr_somIsA)(SOMObjectClassData.somIsA))(((SOMDServerMgr *)((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_SOMDServerMgr_somIsInstanceOf)(SOMObjectClassData.somIsInstanceOf))(((SOMDServerMgr *)((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_SOMDServerMgr_somRespondsTo)(SOMObjectClassData.somRespondsTo))(((SOMDServerMgr *)((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_SOMDServerMgr_somDispatch)(SOMObjectClassData.somDispatch))(((SOMDServerMgr *)((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_SOMDServerMgr_somDispatch)(SOMObjectClassData.somDispatch))(((SOMDServerMgr *)((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_SOMDServerMgr_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((SOMDServerMgr *)((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_SOMDServerMgr_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((SOMDServerMgr *)((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_SOMDServerMgr_somCastObj)(SOMObjectClassData.somCastObj))(((SOMDServerMgr *)((void *)this)),castedCls)
	);
}


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


/* method: somPrintSelf */
SOMDServerMgr*  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_SOMDServerMgr_somPrintSelf)(SOMObjectClassData.somPrintSelf))(((SOMDServerMgr *)((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_SOMDServerMgr_somDumpSelf)(SOMObjectClassData.somDumpSelf))(((SOMDServerMgr *)((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_SOMDServerMgr_somDumpSelfInt)(SOMObjectClassData.somDumpSelfInt))(((SOMDServerMgr *)((void *)this)),level)
	);
}



};   /* SOMDServerMgr */



#endif       /* SOM_SOMDServerMgr_xh */
