home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tolkit45.zip
/
os2tk45
/
som
/
include
/
scentry.xh
< prev
next >
Wrap
Text File
|
1999-02-22
|
34KB
|
1,128 lines
/*
* This file was generated by the SOM Compiler.
* FileName: scentry.xh.
* Generated using:
* SOM Precompiler somipc: 2.29.1.17
* SOM Emitter emitxh: 2.47
*/
/*
* COMPONENT_NAME: some
*
* 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.
* @(#) somc/sctypes.h 2.7 12/26/95 16:26:17 [7/30/96 14:46:04]
*
*/
#ifndef SOM_SOMTEntryC_xh
#define SOM_SOMTEntryC_xh
class SOMTEntryC;
/*
* A SOM class interface definition is compiled to produce a graph
* structure whose nodes are instances of <SOMTEntry> or its
* sub-classes. Each entry is derived from some syntactic element of
* the definition source. The attributes defined in <SOMTEntryC>
* refer to this syntactic element in a fairly obvious way.
*
*/
#define SOMTEntryC_MajorVersion 2
#define SOMTEntryC_MinorVersion 1
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMObject_xh
#include <somobj.xh>
#endif
#ifndef SOMTEntryC_API
#define SOMTEntryC_API
/*
* -- The Class API
*/
/*
* Start of bindings for IDL types
*/
class SOMClass;
class SOMObject;
class SOMTEntryC;
class SOMTEmitC;
class SOMTMetaClassEntryC;
class SOMTAttributeEntryC;
class SOMTTypedefEntryC;
class SOMTBaseClassEntryC;
class SOMTPassthruEntryC;
class SOMTDataEntryC;
class SOMTMethodEntryC;
class SOMTClassEntryC;
class SOMTModuleEntryC;
class SOMTParameterEntryC;
class SOMTStructEntryC;
class SOMTUnionEntryC;
class SOMTEnumEntryC;
class SOMTConstEntryC;
class SOMTSequenceEntryC;
class SOMTStringEntryC;
class SOMTEnumNameEntryC;
class SOMTCommonEntryC;
class SOMTUserDefinedTypeEntryC;
/*
* End of bindings for IDL types.
*/
/*
* Passthru lines: File: "C.xh", "after"
*/
#include <sctypes.h>
#include <sctmplt.xh>
/* A procedure to create the SOMTEntryC Class */
SOMEXTERN SOMClass * SOMLINK SOMTEntryCNewClass(
integer4 majorVersion,
integer4 minorVersion);
/* The API to the SOMTEntryC class object, and the methods it introduces. */
SOMEXTERN struct SOMTEntryCClassDataStructure {
SOMClass *classObject;
somMToken _get_somtEntryName;
somMToken _set_somtEntryName;
somMToken _get_somtElementType;
somMToken _set_somtElementType;
somMToken _get_somtEntryComment;
somMToken _get_somtSourceLineNumber;
somMToken _get_somtTypeCode;
somMToken _get_somtIsReference;
somMToken somtGetModifierValue;
somMToken somtGetFirstModifier;
somMToken somtGetNextModifier;
somMToken somtFormatModifier;
somMToken somtGetModifierList;
somMToken somtSetSymbolsOnEntry;
somMToken somtSetEntryStruct;
somMToken _get_somtEntryStruct;
somMToken somtShowAssocEntry;
somMToken _get_somtCScopedName;
somMToken _get_somtIDLScopedName;
somMToken _get_somtElementTypeName;
} SOMDLINK SOMTEntryCClassData;
#define _SOMTEntryC SOMTEntryCClassData.classObject
/* The API to parentMtabs for SOMTEntryC, and the instance data it introduces. */
SOMEXTERN struct SOMTEntryCCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} SOMDLINK SOMTEntryCCClassData;
/*
* -- Typedefs for SOMTEntryC Method Procedures
*/
SOMEXTERN {
typedef string SOMLINK somTP_SOMTEntryC__get_somtEntryName(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtEntryName *somTD_SOMTEntryC__get_somtEntryName;
typedef void SOMLINK somTP_SOMTEntryC__set_somtEntryName(SOMTEntryC *somSelf,
string somtEntryName);
typedef somTP_SOMTEntryC__set_somtEntryName *somTD_SOMTEntryC__set_somtEntryName;
typedef SOMTTypes SOMLINK somTP_SOMTEntryC__get_somtElementType(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtElementType *somTD_SOMTEntryC__get_somtElementType;
typedef void SOMLINK somTP_SOMTEntryC__set_somtElementType(SOMTEntryC *somSelf,
SOMTTypes somtElementType);
typedef somTP_SOMTEntryC__set_somtElementType *somTD_SOMTEntryC__set_somtElementType;
typedef string SOMLINK somTP_SOMTEntryC__get_somtElementTypeName(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtElementTypeName *somTD_SOMTEntryC__get_somtElementTypeName;
typedef string SOMLINK somTP_SOMTEntryC__get_somtEntryComment(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtEntryComment *somTD_SOMTEntryC__get_somtEntryComment;
typedef unsigned long SOMLINK somTP_SOMTEntryC__get_somtSourceLineNumber(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtSourceLineNumber *somTD_SOMTEntryC__get_somtSourceLineNumber;
typedef TypeCode SOMLINK somTP_SOMTEntryC__get_somtTypeCode(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtTypeCode *somTD_SOMTEntryC__get_somtTypeCode;
typedef boolean SOMLINK somTP_SOMTEntryC__get_somtIsReference(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtIsReference *somTD_SOMTEntryC__get_somtIsReference;
typedef string SOMLINK somTP_SOMTEntryC__get_somtIDLScopedName(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtIDLScopedName *somTD_SOMTEntryC__get_somtIDLScopedName;
typedef string SOMLINK somTP_SOMTEntryC__get_somtCScopedName(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC__get_somtCScopedName *somTD_SOMTEntryC__get_somtCScopedName;
typedef string SOMLINK somTP_SOMTEntryC_somtGetModifierValue(SOMTEntryC *somSelf,
string modifierName);
typedef somTP_SOMTEntryC_somtGetModifierValue *somTD_SOMTEntryC_somtGetModifierValue;
typedef boolean SOMLINK somTP_SOMTEntryC_somtGetFirstModifier(SOMTEntryC *somSelf,
string* modifierName,
string* modifierValue);
typedef somTP_SOMTEntryC_somtGetFirstModifier *somTD_SOMTEntryC_somtGetFirstModifier;
typedef boolean SOMLINK somTP_SOMTEntryC_somtGetNextModifier(SOMTEntryC *somSelf,
string* modifierName,
string* modifierValue);
typedef somTP_SOMTEntryC_somtGetNextModifier *somTD_SOMTEntryC_somtGetNextModifier;
typedef long SOMLINK somTP_SOMTEntryC_somtFormatModifier(SOMTEntryC *somSelf,
string buffer,
string name,
string value);
typedef somTP_SOMTEntryC_somtFormatModifier *somTD_SOMTEntryC_somtFormatModifier;
typedef long SOMLINK somTP_SOMTEntryC_somtGetModifierList(SOMTEntryC *somSelf,
string buffer);
typedef somTP_SOMTEntryC_somtGetModifierList *somTD_SOMTEntryC_somtGetModifierList;
typedef long SOMLINK somTP_SOMTEntryC_somtSetSymbolsOnEntry(SOMTEntryC *somSelf,
SOMTEmitC* emitter,
string prefix);
typedef somTP_SOMTEntryC_somtSetSymbolsOnEntry *somTD_SOMTEntryC_somtSetSymbolsOnEntry;
typedef void SOMLINK somTP_SOMTEntryC_somtSetEntryStruct(SOMTEntryC *somSelf,
Entry* es);
typedef somTP_SOMTEntryC_somtSetEntryStruct *somTD_SOMTEntryC_somtSetEntryStruct;
/*
* -- Typedefs for Reintroduced Wrapper Methods
*/
typedef void SOMLINK somTP_SOMTEntryC_somDefaultInit(SOMTEntryC *somSelf,
som3InitCtrl* ctrl);
typedef somTP_SOMTEntryC_somDefaultInit *somTD_SOMTEntryC_somDefaultInit;
typedef void SOMLINK somTP_SOMTEntryC_somDestruct(SOMTEntryC *somSelf,
octet doFree,
som3DestructCtrl* ctrl);
typedef somTP_SOMTEntryC_somDestruct *somTD_SOMTEntryC_somDestruct;
typedef void SOMLINK somTP_SOMTEntryC_somDefaultCopyInit(SOMTEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultCopyInit *somTD_SOMTEntryC_somDefaultCopyInit;
typedef SOMTEntryC* SOMLINK somTP_SOMTEntryC_somDefaultAssign(SOMTEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultAssign *somTD_SOMTEntryC_somDefaultAssign;
typedef void SOMLINK somTP_SOMTEntryC_somDefaultConstCopyInit(SOMTEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultConstCopyInit *somTD_SOMTEntryC_somDefaultConstCopyInit;
typedef void SOMLINK somTP_SOMTEntryC_somDefaultVCopyInit(SOMTEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultVCopyInit *somTD_SOMTEntryC_somDefaultVCopyInit;
typedef void SOMLINK somTP_SOMTEntryC_somDefaultConstVCopyInit(SOMTEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultConstVCopyInit *somTD_SOMTEntryC_somDefaultConstVCopyInit;
typedef SOMTEntryC* SOMLINK somTP_SOMTEntryC_somDefaultConstAssign(SOMTEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultConstAssign *somTD_SOMTEntryC_somDefaultConstAssign;
typedef SOMTEntryC* SOMLINK somTP_SOMTEntryC_somDefaultVAssign(SOMTEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultVAssign *somTD_SOMTEntryC_somDefaultVAssign;
typedef SOMTEntryC* SOMLINK somTP_SOMTEntryC_somDefaultConstVAssign(SOMTEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTEntryC_somDefaultConstVAssign *somTD_SOMTEntryC_somDefaultConstVAssign;
typedef void SOMLINK somTP_SOMTEntryC_somInit(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somInit *somTD_SOMTEntryC_somInit;
typedef void SOMLINK somTP_SOMTEntryC_somFree(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somFree *somTD_SOMTEntryC_somFree;
typedef void SOMLINK somTP_SOMTEntryC_somUninit(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somUninit *somTD_SOMTEntryC_somUninit;
typedef SOMClass* SOMLINK somTP_SOMTEntryC_somGetClass(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somGetClass *somTD_SOMTEntryC_somGetClass;
typedef string SOMLINK somTP_SOMTEntryC_somGetClassName(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somGetClassName *somTD_SOMTEntryC_somGetClassName;
typedef long SOMLINK somTP_SOMTEntryC_somGetSize(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somGetSize *somTD_SOMTEntryC_somGetSize;
typedef boolean SOMLINK somTP_SOMTEntryC_somIsA(SOMTEntryC *somSelf,
SOMClass* aClassObj);
typedef somTP_SOMTEntryC_somIsA *somTD_SOMTEntryC_somIsA;
typedef boolean SOMLINK somTP_SOMTEntryC_somIsInstanceOf(SOMTEntryC *somSelf,
SOMClass* aClassObj);
typedef somTP_SOMTEntryC_somIsInstanceOf *somTD_SOMTEntryC_somIsInstanceOf;
typedef boolean SOMLINK somTP_SOMTEntryC_somRespondsTo(SOMTEntryC *somSelf,
somId mId);
typedef somTP_SOMTEntryC_somRespondsTo *somTD_SOMTEntryC_somRespondsTo;
typedef boolean SOMLINK somTP_SOMTEntryC_somDispatch(SOMTEntryC *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_SOMTEntryC_somDispatch *somTD_SOMTEntryC_somDispatch;
typedef boolean SOMLINK somTP_SOMTEntryC_somClassDispatch(SOMTEntryC *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_SOMTEntryC_somClassDispatch *somTD_SOMTEntryC_somClassDispatch;
typedef boolean SOMLINK somTP_SOMTEntryC_somCastObj(SOMTEntryC *somSelf,
SOMClass* cls);
typedef somTP_SOMTEntryC_somCastObj *somTD_SOMTEntryC_somCastObj;
typedef boolean SOMLINK somTP_SOMTEntryC_somResetObj(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somResetObj *somTD_SOMTEntryC_somResetObj;
typedef void SOMLINK somTP_SOMTEntryC_somDispatchV(SOMTEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTEntryC_somDispatchV *somTD_SOMTEntryC_somDispatchV;
typedef long SOMLINK somTP_SOMTEntryC_somDispatchL(SOMTEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTEntryC_somDispatchL *somTD_SOMTEntryC_somDispatchL;
typedef void* SOMLINK somTP_SOMTEntryC_somDispatchA(SOMTEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTEntryC_somDispatchA *somTD_SOMTEntryC_somDispatchA;
typedef double SOMLINK somTP_SOMTEntryC_somDispatchD(SOMTEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTEntryC_somDispatchD *somTD_SOMTEntryC_somDispatchD;
typedef SOMObject* SOMLINK somTP_SOMTEntryC_somPrintSelf(SOMTEntryC *somSelf);
typedef somTP_SOMTEntryC_somPrintSelf *somTD_SOMTEntryC_somPrintSelf;
typedef void SOMLINK somTP_SOMTEntryC_somDumpSelf(SOMTEntryC *somSelf,
long level);
typedef somTP_SOMTEntryC_somDumpSelf *somTD_SOMTEntryC_somDumpSelf;
typedef void SOMLINK somTP_SOMTEntryC_somDumpSelfInt(SOMTEntryC *somSelf,
long level);
typedef somTP_SOMTEntryC_somDumpSelfInt *somTD_SOMTEntryC_somDumpSelfInt;
}
#endif /* SOMTEntryC_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for SOMTEntryC
*/
class SOMTEntryC : public SOMObject
{
/*
* A SOM class interface definition is compiled to produce a graph
* structure whose nodes are instances of <SOMTEntry> or its
* sub-classes. Each entry is derived from some syntactic element of
* the definition source. The attributes defined in <SOMTEntryC>
* refer to this syntactic element in a fairly obvious way.
*
*/
public:
// SOMTEntryC::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 (!_SOMTEntryC) SOMTEntryCNewClass(SOMTEntryC_MajorVersion,SOMTEntryC_MinorVersion);
return (void*)
SOM_Resolve(_SOMTEntryC,SOMClass,somNewNoInit)
((SOMClass *)((void*)_SOMTEntryC));
}
// SOMTEntryC::delete uses somDestruct.
void operator delete(void * obj)
{
if (obj && *(void**)obj) {
SOM_Resolve(obj,SOMObject,somFree)
((SOMObject*)obj);
}
}
SOMTEntryC& operator=(SOMTEntryC& fromObj)
{
this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
return *this;
}
SOMTEntryC()
{
if (*(void**)this !=
((somParentMtabStructPtr)
(SOMTEntryCCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultInit(0);
}
SOMTEntryC(SOMTEntryC* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(SOMTEntryCCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(nocnv,nopar)
#endif
SOMTEntryC(const SOMTEntryC* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(SOMTEntryCCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(restore)
#endif
/* method: _get_somtEntryName */
string _get_somtEntryName()
{
/*
* The name associated with this entry. Eg, the name of
* the data item, the class, the method, the type, etc.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,_get_somtEntryName)
(this);
}
/* method: _set_somtEntryName */
void _set_somtEntryName(string somtEntryName)
{
/*
* The name associated with this entry. Eg, the name of
* the data item, the class, the method, the type, etc.
*/
SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,_set_somtEntryName)
(this,somtEntryName);
}
/* method: _get_somtElementType */
SOMTTypes _get_somtElementType()
{
/*
* Returns the type of this entry.
* This is not datatype, but entry type (method, class,
* passthru, etc.). The value is defined by SOMTTypes.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,_get_somtElementType)
(this);
}
/* method: _set_somtElementType */
void _set_somtElementType(SOMTTypes somtElementType)
{
/*
* Returns the type of this entry.
* This is not datatype, but entry type (method, class,
* passthru, etc.). The value is defined by SOMTTypes.
*/
SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,_set_somtElementType)
(this,somtElementType);
}
/* method: _get_somtElementTypeName */
string _get_somtElementTypeName()
{
/*
* String version of somtElementType.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,_get_somtElementTypeName)
(this);
}
/* method: _get_somtEntryComment */
string _get_somtEntryComment()
{
/*
* Returns the comment associated with this entry, or NULL is this
* entry has no associated comment. Comments will have comment
* delimitors removed, but will retain newline characters as
* specified in the source file. (use smLookupComment)
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,_get_somtEntryComment)
(this);
}
/* method: _get_somtSourceLineNumber */
unsigned long _get_somtSourceLineNumber()
{
/*
* Returns the line number in the source file where this entry's
* syntactic form ended.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,_get_somtSourceLineNumber)
(this);
}
/* method: _get_somtTypeCode */
TypeCode _get_somtTypeCode()
{
/*
* The typecode, if appropriate, or NULL.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,_get_somtTypeCode)
(this);
}
/* method: _get_somtIsReference */
boolean _get_somtIsReference()
{
/*
* Whether the entry is just a reference to the real type (TRUE)
* rather than a declaration of it (FALSE).
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,_get_somtIsReference)
(this);
}
/* method: _get_somtIDLScopedName */
string _get_somtIDLScopedName()
{
/*
* The IDL scoped name of the entry (using double colon as delimiter).
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,_get_somtIDLScopedName)
(this);
}
/* method: _get_somtCScopedName */
string _get_somtCScopedName()
{
/*
* The C scoped name of the entry (using underscore as delimiter).
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,_get_somtCScopedName)
(this);
}
/* method: somtGetModifierValue */
string somtGetModifierValue(string modifierName)
{
/*
* Returns the value of the named modifier if this entry has the
* named modifier and NULL otherwise. Note: if the modifier is
* present but does not have a value then a value of <'\1'> is
* returned.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,somtGetModifierValue)
(this,modifierName);
}
/* method: somtGetFirstModifier */
boolean somtGetFirstModifier(string* modifierName,
string* modifierValue)
{
/*
* Returns the first modifier associated with this entry. 1 (true)
* is returned if the entry has at least one modifier and 0 (false)
* otherwise.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,somtGetFirstModifier)
(this,modifierName,modifierValue);
}
/* method: somtGetNextModifier */
boolean somtGetNextModifier(string* modifierName,
string* modifierValue)
{
/*
* Returns the next modifier (with respect to the last call to
* <somtGetNextModifier> or <somtGetFirstModifier>)
* associated with this entry. 1 (true) is returned if the entry
* had another modifier and 0 (false) otherwise.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,somtGetNextModifier)
(this,modifierName,modifierValue);
}
/* method: somtFormatModifier */
long somtFormatModifier(string buffer,
string name,
string value)
{
/*
* Formats the indicated name/value pair into buffer. Buffer must
* be big enough to hold all the formatted pair, no checks are made.
* The number of characters added to buffer are returned (not
* including the trailing null character).
* Note: value may be null
* You will probably never call this method, it is provided so that
* you can override it to control the format returned in
* <somtGetModifierList>.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,somtFormatModifier)
(this,buffer,name,value);
}
/* method: somtGetModifierList */
long somtGetModifierList(string buffer)
{
/*
* The modifiers for this entry are placed in <buffer> in template
* list form (newline separated). Buffer must be big enough to
* hold all the modifiers, no checks are made. The number of
* modifiers is returned.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,somtGetModifierList)
(this,buffer);
}
/* method: somtSetSymbolsOnEntry */
long somtSetSymbolsOnEntry(SOMTEmitC* emitter,
string prefix)
{
/*
* Places a number of symbol/value pairs in <t>. All the symbols
* will begin with <prefix>.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,somtSetSymbolsOnEntry)
(this,emitter,prefix);
}
/* method: somtSetEntryStruct */
void somtSetEntryStruct(Entry* es)
{
/*
* Sets the entry struct data member.
* Note, when overridding this method, it is important to call the
* parent version of the method first and then do your processing.
*/
SOM_ResolveD(this,SOMTEntryC,SOMTEntryC,somtSetEntryStruct)
(this,es);
}
/*
* 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_ResolveD(this,SOMTEntryC,SOMObject,somDefaultInit)
(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_ResolveD(this,SOMTEntryC,SOMObject,somDestruct)
(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_ResolveD(this,SOMTEntryC,SOMObject,somDefaultCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultAssign */
SOMTEntryC* somDefaultAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator. Use this to "assign" the state of one
* object to another.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMObject,somDefaultAssign)
(this,ctrl,fromObj);
}
/* initializer method: somDefaultConstCopyInit */
void somDefaultConstCopyInit(som3InitCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default copy constructor that uses a const fromObj.
*/
SOM_ResolveD(this,SOMTEntryC,SOMObject,somDefaultConstCopyInit)
(this,ctrl,fromObj);
}
/* initializer method: somDefaultVCopyInit */
void somDefaultVCopyInit(som3InitCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default copy constructor that uses a volatile fromObj.
*/
SOM_ResolveD(this,SOMTEntryC,SOMObject,somDefaultVCopyInit)
(this,ctrl,fromObj);
}
/* initializer method: somDefaultConstVCopyInit */
void somDefaultConstVCopyInit(som3InitCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default copy constructor that uses a const volatile fromObj.
*/
SOM_ResolveD(this,SOMTEntryC,SOMObject,somDefaultConstVCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultConstAssign */
SOMTEntryC* somDefaultConstAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a const fromObj.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMObject,somDefaultConstAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultVAssign */
SOMTEntryC* somDefaultVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a volatile fromObj.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMObject,somDefaultVAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultConstVAssign */
SOMTEntryC* somDefaultConstVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a const volatile fromObj.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMObject,somDefaultConstVAssign)
(this,ctrl,fromObj);
}
/* method: somInit */
void somInit()
{
/*
* Obsolete but still supported. Override somDefaultInit instead of somInit.
*/
SOM_ResolveD(this,SOMTEntryC,SOMObject,somInit)
(this);
}
/* method: somFree */
void somFree()
{
/*
* Use as directed by framework implementations.
*/
SOM_ResolveD(this,SOMTEntryC,SOMObject,somFree)
(this);
}
/* method: somUninit */
void somUninit()
{
/*
* Obsolete but still supported. Override somDestruct instead of somUninit.
*/
SOM_ResolveD(this,SOMTEntryC,SOMObject,somUninit)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
/*
* Return the receiver's class.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
string somGetClassName()
{
/*
* Return the name of the receiver's class.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
/*
* Return the size of the receiver.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMObject,somGetSize)
(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_ResolveD(this,SOMTEntryC,SOMObject,somIsA)
(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_ResolveD(this,SOMTEntryC,SOMObject,somIsInstanceOf)
(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_ResolveD(this,SOMTEntryC,SOMObject,somRespondsTo)
(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.
*/
/* the va_list invocation form */
boolean SOMTEntryC_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,SOMTEntryC,SOMObject,somDispatch)
(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.
*/
va_list ap;
va_start(ap, methodId);
boolean __somResult =
SOM_ResolveD(this,SOMTEntryC,SOMObject,somDispatch)
(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 SOMTEntryC_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,SOMTEntryC,SOMObject,somClassDispatch)
(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_ResolveD(this,SOMTEntryC,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
/*
* cast the receiving object to cls (which must be an ancestor of the
* objects true class. Returns true on success.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
/*
* reset an object to its true class. Returns true always.
*/
return SOM_ResolveD(this,SOMTEntryC,SOMObject,somResetObj)
(this);
}
/* va_list method: somDispatchV */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
void SOMTEntryC_somDispatchV(somId methodId,
somId descriptor,
va_list ap)
{ SOM_ResolveD(this,SOMTEntryC,SOMObject,somDispatchV)
(this,methodId,descriptor,ap);
}
/* the varargs invocation form */
void somDispatchV(somId methodId,
somId descriptor,
...)
{
/*
* Obsolete. Use somDispatch instead.
*/
va_list ap;
va_start(ap, descriptor);
SOM_ResolveD(this,SOMTEntryC,SOMObject,somDispatchV)
(this,methodId,descriptor,ap);
va_end(ap);
}
/* va_list method: somDispatchL */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
long SOMTEntryC_somDispatchL(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,SOMTEntryC,SOMObject,somDispatchL)
(this,methodId,descriptor,ap);
}
/* the varargs invocation form */
long somDispatchL(somId methodId,
somId descriptor,
...)
{
/*
* Obsolete. Use somDispatch instead.
*/
va_list ap;
va_start(ap, descriptor);
long __somResult =
SOM_ResolveD(this,SOMTEntryC,SOMObject,somDispatchL)
(this,methodId,descriptor,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somDispatchA */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
void* SOMTEntryC_somDispatchA(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,SOMTEntryC,SOMObject,somDispatchA)
(this,methodId,descriptor,ap);
}
/* the varargs invocation form */
void* somDispatchA(somId methodId,
somId descriptor,
...)
{
/*
* Obsolete. Use somDispatch instead.
*/
va_list ap;
va_start(ap, descriptor);
void* __somResult =
SOM_ResolveD(this,SOMTEntryC,SOMObject,somDispatchA)
(this,methodId,descriptor,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somDispatchD */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
double SOMTEntryC_somDispatchD(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,SOMTEntryC,SOMObject,somDispatchD)
(this,methodId,descriptor,ap);
}
/* the varargs invocation form */
double somDispatchD(somId methodId,
somId descriptor,
...)
{
/*
* Obsolete. Use somDispatch instead.
*/
va_list ap;
va_start(ap, descriptor);
double __somResult =
SOM_ResolveD(this,SOMTEntryC,SOMObject,somDispatchD)
(this,methodId,descriptor,ap);
va_end(ap);
return __somResult;
}
/* method: somPrintSelf */
SOMObject* 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_ResolveD(this,SOMTEntryC,SOMObject,somPrintSelf)
(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_ResolveD(this,SOMTEntryC,SOMObject,somDumpSelf)
(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_ResolveD(this,SOMTEntryC,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* SOMTEntryC */
#endif /* SOM_SOMTEntryC_xh */