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

/*
 *    COMPONENT_NAME: somnm
 * 
 *    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.
 * 
 * 
 *    @(#) 1.7 @(#)lname.idl	1.7 1/24/94 10:34:07 [3/30/94 17:08:21]
 */


#ifndef SOM_LName_xh
#define SOM_LName_xh


#define LName_MajorVersion 3
#define LName_MinorVersion 0
class LName;

/* 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 LName_API
#define LName_API
/*
 * -- The Class API
 */
#ifndef SOM_IMPORTEXPORT_somnmf_lname
#ifdef SOM_DLL_somnmf
	/* export semantics */
	#if defined(SOM_DEFFILE_somnmf)\
	||(defined(SOM_DEFFILE_BY_DEFAULT)&&!defined(SOM_NODEFFILE_somnmf))\
	|| !defined(SOM_Module_lname_Source)
	#define SOM_IMPORTEXPORT_somnmf_lname
	#else
	#define SOM_IMPORTEXPORT_somnmf_lname SOMDLLEXPORT
	#endif
#else
	#define SOM_IMPORTEXPORT_somnmf_lname SOMDLLIMPORT
#endif
#endif

/*
 * Start of bindings for IDL types
 */

class SOMClass;
class SOMObject;
class ExtendedNaming_PropertyBindingIterator;
class ExtendedNaming_PropertyIterator;
class ExtendedNaming_IndexIterator;
#define ex_LName_NoComponent "::LName::NoComponent"
#define LName_NoComponent NULL
#define ex_LName_OverFlow "::LName::OverFlow"
#define LName_OverFlow NULL
#define ex_LName_InvalidName "::LName::InvalidName"
#define LName_InvalidName NULL

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_ex_NoComponent
    #ifdef ex_NoComponent
        #undef ex_NoComponent
        #define SOMTGD_ex_NoComponent 1
    #else
        #define ex_NoComponent ex_LName_NoComponent
    #endif /* ex_NoComponent */
#endif /* SOMTGD_ex_NoComponent */
#ifndef SOMTGD_NoComponent
    #ifdef NoComponent
        #undef NoComponent
        #define SOMTGD_NoComponent 1
    #else
        #define NoComponent LName_NoComponent
    #endif /* NoComponent */
#endif /* SOMTGD_NoComponent */
#ifndef SOMTGD_ex_OverFlow
    #ifdef ex_OverFlow
        #undef ex_OverFlow
        #define SOMTGD_ex_OverFlow 1
    #else
        #define ex_OverFlow ex_LName_OverFlow
    #endif /* ex_OverFlow */
#endif /* SOMTGD_ex_OverFlow */
#ifndef SOMTGD_OverFlow
    #ifdef OverFlow
        #undef OverFlow
        #define SOMTGD_OverFlow 1
    #else
        #define OverFlow LName_OverFlow
    #endif /* OverFlow */
#endif /* SOMTGD_OverFlow */
#ifndef SOMTGD_ex_InvalidName
    #ifdef ex_InvalidName
        #undef ex_InvalidName
        #define SOMTGD_ex_InvalidName 1
    #else
        #define ex_InvalidName ex_LName_InvalidName
    #endif /* ex_InvalidName */
#endif /* SOMTGD_ex_InvalidName */
#ifndef SOMTGD_InvalidName
    #ifdef InvalidName
        #undef InvalidName
        #define SOMTGD_InvalidName 1
    #else
        #define InvalidName LName_InvalidName
    #endif /* InvalidName */
#endif /* SOMTGD_InvalidName */
#endif /* SOM_DONT_USE_SHORT_NAMES */

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

/*
 * A function to create the LName class object...
 */
SOMEXTERN SOM_IMPORTEXPORT_somnmf_lname SOMClass * SOMLINK LNameNewClass(
		integer4 majorVersion,
		integer4 minorVersion);


/*
 * The API 2 ClassData Structures...
 */
SOMEXTERN struct LNameClassDataStructure {
	SOMClass *classObject;
	somMToken to_idl_form;
	somMToken insert_component;
	somMToken get_component;
	somMToken delete_component;
	somMToken num_components;
	somMToken equal;
	somMToken less_than;
	somMToken from_idl_form;
	somMToken destroy;
} SOMDLINK SOM_IMPORTEXPORT_somnmf_lname LNameClassData;
SOMEXTERN struct LNameCClassDataStructure {
	som3ClassDetailsPtr    parentMtab;
	somDToken              instanceDataToken;
} SOMDLINK SOM_IMPORTEXPORT_somnmf_lname LNameCClassData;


/*
 * Class Object and Method Token Macros
 */
#define _SOMCLASS_LName (LNameClassData.classObject)
#ifndef SOMGD_LName
    #if (defined(_LName) || defined(__LName))
        #undef _LName
        #undef __LName
        #define SOMGD_LName 1
    #else
        #define _LName _SOMCLASS_LName
    #endif /* _LName */
#endif /* SOMGD_LName */
#define LName_classObj _SOMCLASS_LName
#define _SOMMTOKEN_LName(method) ((somMToken)LNameClassData.method)

/*
 * -- Typedefs for LName Method Procedures
 */
SOMEXTERN {
typedef LName*   SOMLINK somTP_LName_insert_component(LName *somSelf, Environment *ev, 
		unsigned long i, 
		LNameComponent* n);
typedef somTP_LName_insert_component *somTD_LName_insert_component;
typedef LNameComponent*   SOMLINK somTP_LName_get_component(LName *somSelf, Environment *ev, 
		unsigned long i);
typedef somTP_LName_get_component *somTD_LName_get_component;
typedef LNameComponent*   SOMLINK somTP_LName_delete_component(LName *somSelf, Environment *ev, 
		unsigned long i);
typedef somTP_LName_delete_component *somTD_LName_delete_component;
typedef unsigned long   SOMLINK somTP_LName_num_components(LName *somSelf, Environment *ev);
typedef somTP_LName_num_components *somTD_LName_num_components;
typedef boolean   SOMLINK somTP_LName_equal(LName *somSelf, Environment *ev, 
		LName* ln);
typedef somTP_LName_equal *somTD_LName_equal;
typedef boolean   SOMLINK somTP_LName_less_than(LName *somSelf, Environment *ev, 
		LName* ln);
typedef somTP_LName_less_than *somTD_LName_less_than;
typedef CosNaming_Name   SOMLINK somTP_LName_to_idl_form(LName *somSelf, Environment *ev);
typedef somTP_LName_to_idl_form *somTD_LName_to_idl_form;
typedef void   SOMLINK somTP_LName_from_idl_form(LName *somSelf, Environment *ev, 
		CosNaming_Name* n);
typedef somTP_LName_from_idl_form *somTD_LName_from_idl_form;
typedef void   SOMLINK somTP_LName_destroy(LName *somSelf, Environment *ev);
typedef somTP_LName_destroy *somTD_LName_destroy;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_LName_somDefaultInit(LName *somSelf, 
		som3InitCtrl* ctrl);
typedef somTP_LName_somDefaultInit *somTD_LName_somDefaultInit;
typedef void   SOMLINK somTP_LName_somDestruct(LName *somSelf, 
		octet doFree, 
		som3DestructCtrl* ctrl);
typedef somTP_LName_somDestruct *somTD_LName_somDestruct;
typedef void   SOMLINK somTP_LName_somDefaultCopyInit(LName *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LName_somDefaultCopyInit *somTD_LName_somDefaultCopyInit;
typedef LName*   SOMLINK somTP_LName_somDefaultAssign(LName *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LName_somDefaultAssign *somTD_LName_somDefaultAssign;
typedef void   SOMLINK somTP_LName_somDefaultConstCopyInit(LName *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LName_somDefaultConstCopyInit *somTD_LName_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_LName_somDefaultVCopyInit(LName *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LName_somDefaultVCopyInit *somTD_LName_somDefaultVCopyInit;
typedef void   SOMLINK somTP_LName_somDefaultConstVCopyInit(LName *somSelf, 
		som3InitCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LName_somDefaultConstVCopyInit *somTD_LName_somDefaultConstVCopyInit;
typedef LName*   SOMLINK somTP_LName_somDefaultConstAssign(LName *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LName_somDefaultConstAssign *somTD_LName_somDefaultConstAssign;
typedef LName*   SOMLINK somTP_LName_somDefaultVAssign(LName *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LName_somDefaultVAssign *somTD_LName_somDefaultVAssign;
typedef LName*   SOMLINK somTP_LName_somDefaultConstVAssign(LName *somSelf, 
		som3AssignCtrl* ctrl, 
		SOMObject* fromObj);
typedef somTP_LName_somDefaultConstVAssign *somTD_LName_somDefaultConstVAssign;
typedef void   SOMLINK somTP_LName_somInit(LName *somSelf);
typedef somTP_LName_somInit *somTD_LName_somInit;
typedef void   SOMLINK somTP_LName_somUninit(LName *somSelf);
typedef somTP_LName_somUninit *somTD_LName_somUninit;
typedef void   SOMLINK somTP_LName_somFree(LName *somSelf);
typedef somTP_LName_somFree *somTD_LName_somFree;
typedef SOMClass*   SOMLINK somTP_LName_somGetClass(LName *somSelf);
typedef somTP_LName_somGetClass *somTD_LName_somGetClass;
typedef string   SOMLINK somTP_LName_somGetClassName(LName *somSelf);
typedef somTP_LName_somGetClassName *somTD_LName_somGetClassName;
typedef long   SOMLINK somTP_LName_somGetSize(LName *somSelf);
typedef somTP_LName_somGetSize *somTD_LName_somGetSize;
typedef boolean   SOMLINK somTP_LName_somIsA(LName *somSelf, 
		SOMClass* aClassObj);
typedef somTP_LName_somIsA *somTD_LName_somIsA;
typedef boolean   SOMLINK somTP_LName_somIsInstanceOf(LName *somSelf, 
		SOMClass* aClassObj);
typedef somTP_LName_somIsInstanceOf *somTD_LName_somIsInstanceOf;
typedef boolean   SOMLINK somTP_LName_somRespondsTo(LName *somSelf, 
		somId mId);
typedef somTP_LName_somRespondsTo *somTD_LName_somRespondsTo;
typedef boolean   SOMLINK somTP_LName_somDispatch(LName *somSelf, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_LName_somDispatch *somTD_LName_somDispatch;
typedef boolean   SOMLINK somTP_LName_somClassDispatch(LName *somSelf, 
		SOMClass* clsObj, 
		somToken* retValue, 
		somId methodId, 
		va_list ap);
typedef somTP_LName_somClassDispatch *somTD_LName_somClassDispatch;
typedef boolean   SOMLINK somTP_LName_somCastObj(LName *somSelf, 
		SOMClass* castedCls);
typedef somTP_LName_somCastObj *somTD_LName_somCastObj;
typedef boolean   SOMLINK somTP_LName_somResetObj(LName *somSelf);
typedef somTP_LName_somResetObj *somTD_LName_somResetObj;
typedef LName*   SOMLINK somTP_LName_somPrintSelf(LName *somSelf);
typedef somTP_LName_somPrintSelf *somTD_LName_somPrintSelf;
typedef void   SOMLINK somTP_LName_somDumpSelf(LName *somSelf, 
		long level);
typedef somTP_LName_somDumpSelf *somTD_LName_somDumpSelf;
typedef void   SOMLINK somTP_LName_somDumpSelfInt(LName *somSelf, 
		long level);
typedef somTP_LName_somDumpSelfInt *somTD_LName_somDumpSelfInt;
}

#endif /* LName_API */


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

// LName::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 (!_LName) LNameNewClass(LName_MajorVersion,LName_MinorVersion);
   return (void*)
   (((somTD_SOMClass_somNewNoInit)(SOMClassClassData.somNewNoInit))
         ((SOMClass *)((void*)_LName)));
}

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

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

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

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


/* method: insert_component */
LName*   insert_component(Environment *ev, 
		unsigned long i, 
		LNameComponent* n)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_LName),
	 ((somTD_LName_insert_component)(LNameClassData.insert_component))(((LName *)((void *)this)), ev,i,n)
	);
}


/* method: get_component */
LNameComponent*   get_component(Environment *ev, 
		unsigned long i)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_LName),
	 ((somTD_LName_get_component)(LNameClassData.get_component))(((LName *)((void *)this)), ev,i)
	);
}


/* method: delete_component */
LNameComponent*   delete_component(Environment *ev, 
		unsigned long i)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_LName),
	 ((somTD_LName_delete_component)(LNameClassData.delete_component))(((LName *)((void *)this)), ev,i)
	);
}


/* method: num_components */
unsigned long   num_components(Environment *ev)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_LName),
	 ((somTD_LName_num_components)(LNameClassData.num_components))(((LName *)((void *)this)), ev)
	);
}


/* method: equal */
boolean   equal(Environment *ev, 
		LName* ln)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_LName),
	 ((somTD_LName_equal)(LNameClassData.equal))(((LName *)((void *)this)), ev,ln)
	);
}


/* method: less_than */
boolean   less_than(Environment *ev, 
		LName* ln)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_LName),
	 ((somTD_LName_less_than)(LNameClassData.less_than))(((LName *)((void *)this)), ev,ln)
	);
}


/* method: to_idl_form */
CosNaming_Name   to_idl_form(Environment *ev)
{
   return 	(
	 SOM_TestCls(this,_SOMCLASS_LName),
	 ((somTD_LName_to_idl_form)(LNameClassData.to_idl_form))(((LName *)((void *)this)), ev)
	);
}


/* method: from_idl_form */
void   from_idl_form(Environment *ev, 
		CosNaming_Name* n)
{
   	(
	 SOM_TestCls(this,_SOMCLASS_LName),
	 ((somTD_LName_from_idl_form)(LNameClassData.from_idl_form))(((LName *)((void *)this)), ev,n)
	);
}


/* method: destroy */
void   destroy(Environment *ev)
{
   	(
	 SOM_TestCls(this,_SOMCLASS_LName),
	 ((somTD_LName_destroy)(LNameClassData.destroy))(((LName *)((void *)this)), ev)
	);
}


/*
 * 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_LName_somDefaultInit)(SOMObjectClassData.somDefaultInit))(((LName *)((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_LName_somDestruct)(SOMObjectClassData.somDestruct))(((LName *)((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_LName_somDefaultCopyInit)(SOMObjectClassData.somDefaultCopyInit))(((LName *)((void *)this)),ctrl,fromObj)
	);
}


/* method: somDefaultAssign */
LName*  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_LName_somDefaultAssign)(SOMObjectClassData.somDefaultAssign))(((LName *)((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_LName_somDefaultConstCopyInit)(SOMObjectClassData.somDefaultConstCopyInit))(((LName *)((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_LName_somDefaultVCopyInit)(SOMObjectClassData.somDefaultVCopyInit))(((LName *)((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_LName_somDefaultConstVCopyInit)(SOMObjectClassData.somDefaultConstVCopyInit))(((LName *)((void *)this)),ctrl,fromObj)
	);
}


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


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


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


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


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


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


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


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


/* method: somGetSize */
long   somGetSize()
{
/*
 *  Return the size of the receiver.
 */
   return 	(
	 SOM_TestCls(this,_SOMCLASS_SOMObject),
	 ((somTD_LName_somGetSize)(SOMObjectClassData.somGetSize))(((LName *)((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_LName_somIsA)(SOMObjectClassData.somIsA))(((LName *)((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_LName_somIsInstanceOf)(SOMObjectClassData.somIsInstanceOf))(((LName *)((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_LName_somRespondsTo)(SOMObjectClassData.somRespondsTo))(((LName *)((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_LName_somDispatch)(SOMObjectClassData.somDispatch))(((LName *)((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_LName_somDispatch)(SOMObjectClassData.somDispatch))(((LName *)((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_LName_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((LName *)((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_LName_somClassDispatch)(SOMObjectClassData.somClassDispatch))(((LName *)((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_LName_somCastObj)(SOMObjectClassData.somCastObj))(((LName *)((void *)this)),castedCls)
	);
}


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


/* method: somPrintSelf */
LName*  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_LName_somPrintSelf)(SOMObjectClassData.somPrintSelf))(((LName *)((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_LName_somDumpSelf)(SOMObjectClassData.somDumpSelf))(((LName *)((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_LName_somDumpSelfInt)(SOMObjectClassData.somDumpSelfInt))(((LName *)((void *)this)),level)
	);
}



};   /* LName */



#endif       /* SOM_LName_xh */
