
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\BUILD\NT\ship\include\Info.xh.
 * Generated using:
 *     SOM Precompiler somipc: Development
 *     SOM Emitter emitxh.dll: Development
 */

#ifndef SOM_ODInfo_xh
#define SOM_ODInfo_xh

class ODInfo;

#define ODInfo_MajorVersion 0
#define ODInfo_MinorVersion 0

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

/* C++ parent defs */
#ifndef SOM_ODObject_xh
#include <ODObject.xh>
#endif

#ifndef ODInfo_API
#define ODInfo_API
/*
 * -- The Class API
 */

/*
 * Start of user-defined types:
 */
class SOMClass;
class SOMObject;
class ODFrame;
class ODFacet;
class ODPlatformCanvas;
class ODObject;
class ODExtension;
class ODInfo;
class ODSession;

/*
 * End of user-defined types.
 */

/* A procedure to create the ODInfo Class */
SOMEXTERN
#if (defined(SOM_Module_Info_Source) || defined(ODInfo_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODInfo))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODInfoNewClass(
		integer4,
		integer4 );

/* The API to the ODInfo class object, and the methods it introduces. */
SOMEXTERN struct ODInfoClassDataStructure {
	SOMClass *classObject;
	somMToken reserved1;
	somMToken ShowPartFrameInfo;
}
#if !(defined(SOM_Module_Info_Source) || defined(ODInfo_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODInfo))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODInfoClassData;
#define _ODInfo ODInfoClassData.classObject

/* The API to parentMtabs for ODInfo, and the instance data it introduces. */
SOMEXTERN struct ODInfoCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_Info_Source) || defined(ODInfo_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODInfo))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODInfoCClassData;

/*
 * -- Typedefs for ODInfo Method Procedures
 */
extern "C" {
typedef ODBoolean   SOMLINK somTP_ODInfo_ShowPartFrameInfo(ODInfo *somSelf, Environment *ev,
		ODFacet* facet,
		ODBoolean allowEditing);
typedef somTP_ODInfo_ShowPartFrameInfo *somTD_ODInfo_ShowPartFrameInfo;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_ODInfo_InitObject(ODInfo *somSelf, Environment *ev);
typedef somTP_ODInfo_InitObject *somTD_ODInfo_InitObject;
typedef ODBoolean   SOMLINK somTP_ODInfo_HasExtension(ODInfo *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODInfo_HasExtension *somTD_ODInfo_HasExtension;
typedef ODExtension*   SOMLINK somTP_ODInfo_AcquireExtension(ODInfo *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODInfo_AcquireExtension *somTD_ODInfo_AcquireExtension;
typedef void   SOMLINK somTP_ODInfo_ReleaseExtension(ODInfo *somSelf, Environment *ev,
		ODExtension* extension);
typedef somTP_ODInfo_ReleaseExtension *somTD_ODInfo_ReleaseExtension;
typedef ODSize   SOMLINK somTP_ODInfo_Purge(ODInfo *somSelf, Environment *ev,
		ODSize size);
typedef somTP_ODInfo_Purge *somTD_ODInfo_Purge;
typedef ODBoolean   SOMLINK somTP_ODInfo_IsEqualTo(ODInfo *somSelf, Environment *ev,
		ODObject* object);
typedef somTP_ODInfo_IsEqualTo *somTD_ODInfo_IsEqualTo;
typedef void   SOMLINK somTP_ODInfo_SubClassResponsibility(ODInfo *somSelf, Environment *ev);
typedef somTP_ODInfo_SubClassResponsibility *somTD_ODInfo_SubClassResponsibility;
typedef void   SOMLINK somTP_ODInfo_somInit(ODInfo *somSelf);
typedef somTP_ODInfo_somInit *somTD_ODInfo_somInit;
typedef void   SOMLINK somTP_ODInfo_somUninit(ODInfo *somSelf);
typedef somTP_ODInfo_somUninit *somTD_ODInfo_somUninit;
typedef void   SOMLINK somTP_ODInfo_somDefaultInit(ODInfo *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODInfo_somDefaultInit *somTD_ODInfo_somDefaultInit;
typedef void   SOMLINK somTP_ODInfo_somDestruct(ODInfo *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODInfo_somDestruct *somTD_ODInfo_somDestruct;
typedef void   SOMLINK somTP_ODInfo_somDefaultCopyInit(ODInfo *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODInfo_somDefaultCopyInit *somTD_ODInfo_somDefaultCopyInit;
typedef ODInfo*   SOMLINK somTP_ODInfo_somDefaultAssign(ODInfo *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODInfo_somDefaultAssign *somTD_ODInfo_somDefaultAssign;
typedef void   SOMLINK somTP_ODInfo_somDefaultConstCopyInit(ODInfo *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODInfo_somDefaultConstCopyInit *somTD_ODInfo_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODInfo_somDefaultVCopyInit(ODInfo *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODInfo_somDefaultVCopyInit *somTD_ODInfo_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODInfo_somDefaultConstVCopyInit(ODInfo *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODInfo_somDefaultConstVCopyInit *somTD_ODInfo_somDefaultConstVCopyInit;
typedef ODInfo*   SOMLINK somTP_ODInfo_somDefaultConstAssign(ODInfo *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODInfo_somDefaultConstAssign *somTD_ODInfo_somDefaultConstAssign;
typedef ODInfo*   SOMLINK somTP_ODInfo_somDefaultVAssign(ODInfo *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODInfo_somDefaultVAssign *somTD_ODInfo_somDefaultVAssign;
typedef ODInfo*   SOMLINK somTP_ODInfo_somDefaultConstVAssign(ODInfo *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODInfo_somDefaultConstVAssign *somTD_ODInfo_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODInfo_somFree(ODInfo *somSelf);
typedef somTP_ODInfo_somFree *somTD_ODInfo_somFree;
typedef SOMClass*   SOMLINK somTP_ODInfo_somGetClass(ODInfo *somSelf);
typedef somTP_ODInfo_somGetClass *somTD_ODInfo_somGetClass;
typedef string   SOMLINK somTP_ODInfo_somGetClassName(ODInfo *somSelf);
typedef somTP_ODInfo_somGetClassName *somTD_ODInfo_somGetClassName;
typedef long   SOMLINK somTP_ODInfo_somGetSize(ODInfo *somSelf);
typedef somTP_ODInfo_somGetSize *somTD_ODInfo_somGetSize;
typedef boolean   SOMLINK somTP_ODInfo_somIsA(ODInfo *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODInfo_somIsA *somTD_ODInfo_somIsA;
typedef boolean   SOMLINK somTP_ODInfo_somIsInstanceOf(ODInfo *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODInfo_somIsInstanceOf *somTD_ODInfo_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODInfo_somRespondsTo(ODInfo *somSelf,
		somId mId);
typedef somTP_ODInfo_somRespondsTo *somTD_ODInfo_somRespondsTo;
typedef boolean   SOMLINK somTP_ODInfo_somDispatch(ODInfo *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODInfo_somDispatch *somTD_ODInfo_somDispatch;
typedef boolean   SOMLINK somTP_ODInfo_somClassDispatch(ODInfo *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODInfo_somClassDispatch *somTD_ODInfo_somClassDispatch;
typedef boolean   SOMLINK somTP_ODInfo_somCastObj(ODInfo *somSelf,
		SOMClass* cls);
typedef somTP_ODInfo_somCastObj *somTD_ODInfo_somCastObj;
typedef boolean   SOMLINK somTP_ODInfo_somResetObj(ODInfo *somSelf);
typedef somTP_ODInfo_somResetObj *somTD_ODInfo_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODInfo_somPrintSelf(ODInfo *somSelf);
typedef somTP_ODInfo_somPrintSelf *somTD_ODInfo_somPrintSelf;
typedef void   SOMLINK somTP_ODInfo_somDumpSelf(ODInfo *somSelf,
		long level);
typedef somTP_ODInfo_somDumpSelf *somTD_ODInfo_somDumpSelf;
typedef void   SOMLINK somTP_ODInfo_somDumpSelfInt(ODInfo *somSelf,
		long level);
typedef somTP_ODInfo_somDumpSelfInt *somTD_ODInfo_somDumpSelfInt;
}

#endif /* ODInfo_API */


/*
 * -- This emitter believes that method thunks are unavailable,
 * -- so somResolve will be called.
 */
#undef somresolve_
#define somresolve_(obj,mToken) (somResolve(obj,mToken))

/*
 * -- The C++ Wrapper Class for ODInfo
 */
class ODInfo : public ODObject
{
public:

// ODInfo::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 (!_ODInfo) ODInfoNewClass(ODInfo_MajorVersion,ODInfo_MinorVersion);
   return (void*)
      SOM_Resolve(_ODInfo,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODInfo));
}

// ODInfo::delete uses somDestruct.
void operator delete(void * obj)
{
   if (obj && *(void**)obj) {
      SOM_Resolve(obj,SOMObject,somDestruct)
         ((SOMObject*)obj, 1, 0);
   }
}

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

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

ODInfo(const ODInfo* fromObj)
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (ODInfoCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}


/* method: ShowPartFrameInfo */
ODBoolean   ShowPartFrameInfo(Environment *ev,
		ODFacet* facet,
		ODBoolean allowEditing)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODInfo,ODInfo,ShowPartFrameInfo)
	(this, ev,facet,allowEditing);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODInfo,ODInfo,ShowPartFrameInfo)
	(this, ev,facet,allowEditing);
#endif
}


/*
 * Reintroduce inherited methods
 */

/* method: InitObject */
void   InitObject(Environment *ev)
{
   SOM_ResolveD(this,ODInfo,ODObject,InitObject)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: HasExtension */
ODBoolean   HasExtension(Environment *ev,
		ODType extensionName)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODInfo,ODObject,HasExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODInfo,ODObject,HasExtension)
	(this, ev,extensionName);
#endif
}


/* method: AcquireExtension */
ODExtension*   AcquireExtension(Environment *ev,
		ODType extensionName)
{
#ifdef SOMCHKEXCEPT
   ODExtension* __somResult = 
      SOM_ResolveD(this,ODInfo,ODObject,AcquireExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODInfo,ODObject,AcquireExtension)
	(this, ev,extensionName);
#endif
}


/* method: ReleaseExtension */
void   ReleaseExtension(Environment *ev,
		ODExtension* extension)
{
   SOM_ResolveD(this,ODInfo,ODObject,ReleaseExtension)
	(this, ev,extension);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: Purge */
ODSize   Purge(Environment *ev,
		ODSize size)
{
#ifdef SOMCHKEXCEPT
   ODSize __somResult = 
      SOM_ResolveD(this,ODInfo,ODObject,Purge)
	(this, ev,size);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODInfo,ODObject,Purge)
	(this, ev,size);
#endif
}


/* method: IsEqualTo */
ODBoolean   IsEqualTo(Environment *ev,
		ODObject* object)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODInfo,ODObject,IsEqualTo)
	(this, ev,object);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODInfo,ODObject,IsEqualTo)
	(this, ev,object);
#endif
}


/* method: SubClassResponsibility */
void   SubClassResponsibility(Environment *ev)
{
   SOM_ResolveD(this,ODInfo,ODObject,SubClassResponsibility)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: somInit */
void   somInit()
{
   SOM_ResolveD(this,ODInfo,SOMObject,somInit)
	(this);
}


/* method: somUninit */
void   somUninit()
{
   SOM_ResolveD(this,ODInfo,SOMObject,somUninit)
	(this);
}


/* initializer method: somDefaultInit */
void   somDefaultInit(somInitCtrl* ctrl)
{
   SOM_ResolveD(this,ODInfo,SOMObject,somDefaultInit)
	(this,ctrl);
}


/* method: somDestruct */
void   somDestruct(octet doFree,
		somDestructCtrl* ctrl)
{
   SOM_ResolveD(this,ODInfo,SOMObject,somDestruct)
	(this,doFree,ctrl);
}


/* initializer method: somDefaultCopyInit */
void   somDefaultCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODInfo,SOMObject,somDefaultCopyInit)
	(this,ctrl,fromObj);
}


/* method: somDefaultAssign */
ODInfo*  somDefaultAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somDefaultAssign)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultConstCopyInit */
void   somDefaultConstCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODInfo,SOMObject,somDefaultConstCopyInit)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultVCopyInit */
void   somDefaultVCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODInfo,SOMObject,somDefaultVCopyInit)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultConstVCopyInit */
void   somDefaultConstVCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODInfo,SOMObject,somDefaultConstVCopyInit)
	(this,ctrl,fromObj);
}


/* method: somDefaultConstAssign */
ODInfo*  somDefaultConstAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somDefaultConstAssign)
	(this,ctrl,fromObj);
}


/* method: somDefaultVAssign */
ODInfo*  somDefaultVAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somDefaultVAssign)
	(this,ctrl,fromObj);
}


/* method: somDefaultConstVAssign */
ODInfo*  somDefaultConstVAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somDefaultConstVAssign)
	(this,ctrl,fromObj);
}


/* method: somFree */
void   somFree()
{
   SOM_ResolveD(this,ODInfo,SOMObject,somFree)
	(this);
}


/* method: somGetClass */
SOMClass*   somGetClass()
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somGetClass)
	(this);
}


/* method: somGetClassName */
string   somGetClassName()
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somGetClassName)
	(this);
}


/* method: somGetSize */
long   somGetSize()
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somGetSize)
	(this);
}


/* method: somIsA */
boolean   somIsA(SOMClass* aClassObj)
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somIsA)
	(this,aClassObj);
}


/* method: somIsInstanceOf */
boolean   somIsInstanceOf(SOMClass* aClassObj)
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somIsInstanceOf)
	(this,aClassObj);
}


/* method: somRespondsTo */
boolean   somRespondsTo(somId mId)
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somRespondsTo)
	(this,mId);
}


/* va_list method: somDispatch */
/* the va_list invocation form */
boolean   ODInfo_somDispatch(somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODInfo,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
}

/* the varargs invocation form */
boolean   somDispatch(somToken* retValue,
		somId methodId,
		...)
{
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      SOM_ResolveD(this,ODInfo,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean   ODInfo_somClassDispatch(SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODInfo,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
}

/* the varargs invocation form */
boolean   somClassDispatch(SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		...)
{
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      SOM_ResolveD(this,ODInfo,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* method: somCastObj */
boolean   somCastObj(SOMClass* cls)
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somCastObj)
	(this,cls);
}


/* method: somResetObj */
boolean   somResetObj()
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somResetObj)
	(this);
}


/* method: somPrintSelf */
SOMObject*   somPrintSelf()
{
   return SOM_ResolveD(this,ODInfo,SOMObject,somPrintSelf)
	(this);
}


/* method: somDumpSelf */
void   somDumpSelf(long level)
{
   SOM_ResolveD(this,ODInfo,SOMObject,somDumpSelf)
	(this,level);
}


/* method: somDumpSelfInt */
void   somDumpSelfInt(long level)
{
   SOM_ResolveD(this,ODInfo,SOMObject,somDumpSelfInt)
	(this,level);
}



};   /* ODInfo */



#endif       /* SOM_ODInfo_xh */
