home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tolkit45.zip
/
os2tk45
/
som
/
include
/
scstruct.xh
< prev
next >
Wrap
Text File
|
1999-02-22
|
34KB
|
1,106 lines
/*
* This file was generated by the SOM Compiler.
* FileName: scstruct.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_SOMTStructEntryC_xh
#define SOM_SOMTStructEntryC_xh
class SOMTStructEntryC;
#define SOMTStructEntryC_MajorVersion 2
#define SOMTStructEntryC_MinorVersion 1
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMTEntryC_xh
#include <scentry.xh>
#endif
#ifndef SOMTStructEntryC_API
#define SOMTStructEntryC_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.
*/
/* A procedure to create the SOMTStructEntryC Class */
SOMEXTERN SOMClass * SOMLINK SOMTStructEntryCNewClass(
integer4 majorVersion,
integer4 minorVersion);
/* The API to the SOMTStructEntryC class object, and the methods it introduces. */
SOMEXTERN struct SOMTStructEntryCClassDataStructure {
SOMClass *classObject;
somMToken _get_somtStructClass;
somMToken _get_somtIsException;
somMToken somtGetFirstMember;
somMToken somtGetNextMember;
} SOMDLINK SOMTStructEntryCClassData;
#define _SOMTStructEntryC SOMTStructEntryCClassData.classObject
/* The API to parentMtabs for SOMTStructEntryC, and the instance data it introduces. */
SOMEXTERN struct SOMTStructEntryCCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} SOMDLINK SOMTStructEntryCCClassData;
/*
* -- Typedefs for SOMTStructEntryC Method Procedures
*/
SOMEXTERN {
typedef SOMTTypedefEntryC* SOMLINK somTP_SOMTStructEntryC_somtGetFirstMember(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC_somtGetFirstMember *somTD_SOMTStructEntryC_somtGetFirstMember;
typedef SOMTTypedefEntryC* SOMLINK somTP_SOMTStructEntryC_somtGetNextMember(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC_somtGetNextMember *somTD_SOMTStructEntryC_somtGetNextMember;
typedef SOMTClassEntryC* SOMLINK somTP_SOMTStructEntryC__get_somtStructClass(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC__get_somtStructClass *somTD_SOMTStructEntryC__get_somtStructClass;
typedef boolean SOMLINK somTP_SOMTStructEntryC__get_somtIsException(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC__get_somtIsException *somTD_SOMTStructEntryC__get_somtIsException;
/*
* -- Typedefs for Reintroduced Wrapper Methods
*/
typedef string SOMLINK somTP_SOMTStructEntryC__get_somtEntryName(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC__get_somtEntryName *somTD_SOMTStructEntryC__get_somtEntryName;
typedef void SOMLINK somTP_SOMTStructEntryC__set_somtEntryName(SOMTStructEntryC *somSelf,
string somtEntryName);
typedef somTP_SOMTStructEntryC__set_somtEntryName *somTD_SOMTStructEntryC__set_somtEntryName;
typedef SOMTTypes SOMLINK somTP_SOMTStructEntryC__get_somtElementType(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC__get_somtElementType *somTD_SOMTStructEntryC__get_somtElementType;
typedef void SOMLINK somTP_SOMTStructEntryC__set_somtElementType(SOMTStructEntryC *somSelf,
SOMTTypes somtElementType);
typedef somTP_SOMTStructEntryC__set_somtElementType *somTD_SOMTStructEntryC__set_somtElementType;
typedef string SOMLINK somTP_SOMTStructEntryC__get_somtElementTypeName(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC__get_somtElementTypeName *somTD_SOMTStructEntryC__get_somtElementTypeName;
typedef string SOMLINK somTP_SOMTStructEntryC__get_somtEntryComment(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC__get_somtEntryComment *somTD_SOMTStructEntryC__get_somtEntryComment;
typedef unsigned long SOMLINK somTP_SOMTStructEntryC__get_somtSourceLineNumber(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC__get_somtSourceLineNumber *somTD_SOMTStructEntryC__get_somtSourceLineNumber;
typedef TypeCode SOMLINK somTP_SOMTStructEntryC__get_somtTypeCode(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC__get_somtTypeCode *somTD_SOMTStructEntryC__get_somtTypeCode;
typedef boolean SOMLINK somTP_SOMTStructEntryC__get_somtIsReference(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC__get_somtIsReference *somTD_SOMTStructEntryC__get_somtIsReference;
typedef string SOMLINK somTP_SOMTStructEntryC__get_somtIDLScopedName(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC__get_somtIDLScopedName *somTD_SOMTStructEntryC__get_somtIDLScopedName;
typedef string SOMLINK somTP_SOMTStructEntryC__get_somtCScopedName(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC__get_somtCScopedName *somTD_SOMTStructEntryC__get_somtCScopedName;
typedef string SOMLINK somTP_SOMTStructEntryC_somtGetModifierValue(SOMTStructEntryC *somSelf,
string modifierName);
typedef somTP_SOMTStructEntryC_somtGetModifierValue *somTD_SOMTStructEntryC_somtGetModifierValue;
typedef boolean SOMLINK somTP_SOMTStructEntryC_somtGetFirstModifier(SOMTStructEntryC *somSelf,
string* modifierName,
string* modifierValue);
typedef somTP_SOMTStructEntryC_somtGetFirstModifier *somTD_SOMTStructEntryC_somtGetFirstModifier;
typedef boolean SOMLINK somTP_SOMTStructEntryC_somtGetNextModifier(SOMTStructEntryC *somSelf,
string* modifierName,
string* modifierValue);
typedef somTP_SOMTStructEntryC_somtGetNextModifier *somTD_SOMTStructEntryC_somtGetNextModifier;
typedef long SOMLINK somTP_SOMTStructEntryC_somtFormatModifier(SOMTStructEntryC *somSelf,
string buffer,
string name,
string value);
typedef somTP_SOMTStructEntryC_somtFormatModifier *somTD_SOMTStructEntryC_somtFormatModifier;
typedef long SOMLINK somTP_SOMTStructEntryC_somtGetModifierList(SOMTStructEntryC *somSelf,
string buffer);
typedef somTP_SOMTStructEntryC_somtGetModifierList *somTD_SOMTStructEntryC_somtGetModifierList;
typedef long SOMLINK somTP_SOMTStructEntryC_somtSetSymbolsOnEntry(SOMTStructEntryC *somSelf,
SOMTEmitC* emitter,
string prefix);
typedef somTP_SOMTStructEntryC_somtSetSymbolsOnEntry *somTD_SOMTStructEntryC_somtSetSymbolsOnEntry;
typedef void SOMLINK somTP_SOMTStructEntryC_somtSetEntryStruct(SOMTStructEntryC *somSelf,
Entry* es);
typedef somTP_SOMTStructEntryC_somtSetEntryStruct *somTD_SOMTStructEntryC_somtSetEntryStruct;
typedef void SOMLINK somTP_SOMTStructEntryC_somInit(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC_somInit *somTD_SOMTStructEntryC_somInit;
typedef void SOMLINK somTP_SOMTStructEntryC_somUninit(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC_somUninit *somTD_SOMTStructEntryC_somUninit;
typedef SOMObject* SOMLINK somTP_SOMTStructEntryC_somPrintSelf(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC_somPrintSelf *somTD_SOMTStructEntryC_somPrintSelf;
typedef void SOMLINK somTP_SOMTStructEntryC_somDumpSelfInt(SOMTStructEntryC *somSelf,
long level);
typedef somTP_SOMTStructEntryC_somDumpSelfInt *somTD_SOMTStructEntryC_somDumpSelfInt;
typedef void SOMLINK somTP_SOMTStructEntryC_somDumpSelf(SOMTStructEntryC *somSelf,
long level);
typedef somTP_SOMTStructEntryC_somDumpSelf *somTD_SOMTStructEntryC_somDumpSelf;
typedef void SOMLINK somTP_SOMTStructEntryC_somDefaultInit(SOMTStructEntryC *somSelf,
som3InitCtrl* ctrl);
typedef somTP_SOMTStructEntryC_somDefaultInit *somTD_SOMTStructEntryC_somDefaultInit;
typedef void SOMLINK somTP_SOMTStructEntryC_somDestruct(SOMTStructEntryC *somSelf,
octet doFree,
som3DestructCtrl* ctrl);
typedef somTP_SOMTStructEntryC_somDestruct *somTD_SOMTStructEntryC_somDestruct;
typedef void SOMLINK somTP_SOMTStructEntryC_somDefaultCopyInit(SOMTStructEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTStructEntryC_somDefaultCopyInit *somTD_SOMTStructEntryC_somDefaultCopyInit;
typedef SOMTStructEntryC* SOMLINK somTP_SOMTStructEntryC_somDefaultAssign(SOMTStructEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTStructEntryC_somDefaultAssign *somTD_SOMTStructEntryC_somDefaultAssign;
typedef void SOMLINK somTP_SOMTStructEntryC_somDefaultConstCopyInit(SOMTStructEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTStructEntryC_somDefaultConstCopyInit *somTD_SOMTStructEntryC_somDefaultConstCopyInit;
typedef void SOMLINK somTP_SOMTStructEntryC_somDefaultVCopyInit(SOMTStructEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTStructEntryC_somDefaultVCopyInit *somTD_SOMTStructEntryC_somDefaultVCopyInit;
typedef void SOMLINK somTP_SOMTStructEntryC_somDefaultConstVCopyInit(SOMTStructEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTStructEntryC_somDefaultConstVCopyInit *somTD_SOMTStructEntryC_somDefaultConstVCopyInit;
typedef SOMTStructEntryC* SOMLINK somTP_SOMTStructEntryC_somDefaultConstAssign(SOMTStructEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTStructEntryC_somDefaultConstAssign *somTD_SOMTStructEntryC_somDefaultConstAssign;
typedef SOMTStructEntryC* SOMLINK somTP_SOMTStructEntryC_somDefaultVAssign(SOMTStructEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTStructEntryC_somDefaultVAssign *somTD_SOMTStructEntryC_somDefaultVAssign;
typedef SOMTStructEntryC* SOMLINK somTP_SOMTStructEntryC_somDefaultConstVAssign(SOMTStructEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTStructEntryC_somDefaultConstVAssign *somTD_SOMTStructEntryC_somDefaultConstVAssign;
typedef void SOMLINK somTP_SOMTStructEntryC_somFree(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC_somFree *somTD_SOMTStructEntryC_somFree;
typedef SOMClass* SOMLINK somTP_SOMTStructEntryC_somGetClass(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC_somGetClass *somTD_SOMTStructEntryC_somGetClass;
typedef string SOMLINK somTP_SOMTStructEntryC_somGetClassName(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC_somGetClassName *somTD_SOMTStructEntryC_somGetClassName;
typedef long SOMLINK somTP_SOMTStructEntryC_somGetSize(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC_somGetSize *somTD_SOMTStructEntryC_somGetSize;
typedef boolean SOMLINK somTP_SOMTStructEntryC_somIsA(SOMTStructEntryC *somSelf,
SOMClass* aClassObj);
typedef somTP_SOMTStructEntryC_somIsA *somTD_SOMTStructEntryC_somIsA;
typedef boolean SOMLINK somTP_SOMTStructEntryC_somIsInstanceOf(SOMTStructEntryC *somSelf,
SOMClass* aClassObj);
typedef somTP_SOMTStructEntryC_somIsInstanceOf *somTD_SOMTStructEntryC_somIsInstanceOf;
typedef boolean SOMLINK somTP_SOMTStructEntryC_somRespondsTo(SOMTStructEntryC *somSelf,
somId mId);
typedef somTP_SOMTStructEntryC_somRespondsTo *somTD_SOMTStructEntryC_somRespondsTo;
typedef boolean SOMLINK somTP_SOMTStructEntryC_somDispatch(SOMTStructEntryC *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_SOMTStructEntryC_somDispatch *somTD_SOMTStructEntryC_somDispatch;
typedef boolean SOMLINK somTP_SOMTStructEntryC_somClassDispatch(SOMTStructEntryC *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_SOMTStructEntryC_somClassDispatch *somTD_SOMTStructEntryC_somClassDispatch;
typedef boolean SOMLINK somTP_SOMTStructEntryC_somCastObj(SOMTStructEntryC *somSelf,
SOMClass* cls);
typedef somTP_SOMTStructEntryC_somCastObj *somTD_SOMTStructEntryC_somCastObj;
typedef boolean SOMLINK somTP_SOMTStructEntryC_somResetObj(SOMTStructEntryC *somSelf);
typedef somTP_SOMTStructEntryC_somResetObj *somTD_SOMTStructEntryC_somResetObj;
typedef void SOMLINK somTP_SOMTStructEntryC_somDispatchV(SOMTStructEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTStructEntryC_somDispatchV *somTD_SOMTStructEntryC_somDispatchV;
typedef long SOMLINK somTP_SOMTStructEntryC_somDispatchL(SOMTStructEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTStructEntryC_somDispatchL *somTD_SOMTStructEntryC_somDispatchL;
typedef void* SOMLINK somTP_SOMTStructEntryC_somDispatchA(SOMTStructEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTStructEntryC_somDispatchA *somTD_SOMTStructEntryC_somDispatchA;
typedef double SOMLINK somTP_SOMTStructEntryC_somDispatchD(SOMTStructEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTStructEntryC_somDispatchD *somTD_SOMTStructEntryC_somDispatchD;
}
#endif /* SOMTStructEntryC_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 SOMTStructEntryC
*/
class SOMTStructEntryC : public SOMTEntryC
{
public:
// SOMTStructEntryC::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 (!_SOMTStructEntryC) SOMTStructEntryCNewClass(SOMTStructEntryC_MajorVersion,SOMTStructEntryC_MinorVersion);
return (void*)
SOM_Resolve(_SOMTStructEntryC,SOMClass,somNewNoInit)
((SOMClass *)((void*)_SOMTStructEntryC));
}
// SOMTStructEntryC::delete uses somDestruct.
void operator delete(void * obj)
{
if (obj && *(void**)obj) {
SOM_Resolve(obj,SOMObject,somFree)
((SOMObject*)obj);
}
}
SOMTStructEntryC& operator=(SOMTStructEntryC& fromObj)
{
this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
return *this;
}
SOMTStructEntryC()
{
if (*(void**)this !=
((somParentMtabStructPtr)
(SOMTStructEntryCCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultInit(0);
}
SOMTStructEntryC(SOMTStructEntryC* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(SOMTStructEntryCCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(nocnv,nopar)
#endif
SOMTStructEntryC(const SOMTStructEntryC* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(SOMTStructEntryCCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(restore)
#endif
/* method: somtGetFirstMember */
SOMTTypedefEntryC* somtGetFirstMember()
{
/*
* The first member of the struct.
*/
return SOM_ResolveD(this,SOMTStructEntryC,SOMTStructEntryC,somtGetFirstMember)
(this);
}
/* method: somtGetNextMember */
SOMTTypedefEntryC* somtGetNextMember()
{
/*
* The next member of the struct, relative to the previous call
* to this method or somtGetFirstMember.
*/
return SOM_ResolveD(this,SOMTStructEntryC,SOMTStructEntryC,somtGetNextMember)
(this);
}
/* method: _get_somtStructClass */
SOMTClassEntryC* _get_somtStructClass()
{
/*
* The class in which the structure was defined.
*/
return SOM_ResolveD(this,SOMTStructEntryC,SOMTStructEntryC,_get_somtStructClass)
(this);
}
/* method: _get_somtIsException */
boolean _get_somtIsException()
{
/*
* Whether the structure is really an exception.
*/
return SOM_ResolveD(this,SOMTStructEntryC,SOMTStructEntryC,_get_somtIsException)
(this);
}
/*
* Reintroduce inherited methods
*/
/* 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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,SOMTEntryC,_set_somtElementType)
(this,somtElementType);
}
/* method: _get_somtElementTypeName */
string _get_somtElementTypeName()
{
/*
* String version of somtElementType.
*/
return SOM_ResolveD(this,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,SOMTEntryC,_get_somtSourceLineNumber)
(this);
}
/* method: _get_somtTypeCode */
TypeCode _get_somtTypeCode()
{
/*
* The typecode, if appropriate, or NULL.
*/
return SOM_ResolveD(this,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,SOMTEntryC,somtSetEntryStruct)
(this,es);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,SOMTStructEntryC,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,SOMTStructEntryC,SOMObject,somUninit)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,SOMTStructEntryC,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,SOMTStructEntryC,SOMObject,somDumpSelfInt)
(this,level);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,SOMTStructEntryC,SOMObject,somDumpSelf)
(this,level);
}
/* 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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,SOMObject,somDefaultCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultAssign */
SOMTStructEntryC* somDefaultAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator. Use this to "assign" the state of one
* object to another.
*/
return SOM_ResolveD(this,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,SOMObject,somDefaultConstVCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultConstAssign */
SOMTStructEntryC* somDefaultConstAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a const fromObj.
*/
return SOM_ResolveD(this,SOMTStructEntryC,SOMObject,somDefaultConstAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultVAssign */
SOMTStructEntryC* somDefaultVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a volatile fromObj.
*/
return SOM_ResolveD(this,SOMTStructEntryC,SOMObject,somDefaultVAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultConstVAssign */
SOMTStructEntryC* somDefaultConstVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a const volatile fromObj.
*/
return SOM_ResolveD(this,SOMTStructEntryC,SOMObject,somDefaultConstVAssign)
(this,ctrl,fromObj);
}
/* method: somFree */
void somFree()
{
/*
* Use as directed by framework implementations.
*/
SOM_ResolveD(this,SOMTStructEntryC,SOMObject,somFree)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
/*
* Return the receiver's class.
*/
return SOM_ResolveD(this,SOMTStructEntryC,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
string somGetClassName()
{
/*
* Return the name of the receiver's class.
*/
return SOM_ResolveD(this,SOMTStructEntryC,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
/*
* Return the size of the receiver.
*/
return SOM_ResolveD(this,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,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 SOMTStructEntryC_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,SOMTStructEntryC,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,SOMTStructEntryC,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 SOMTStructEntryC_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,SOMTStructEntryC,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,SOMTStructEntryC,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,SOMTStructEntryC,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
/*
* reset an object to its true class. Returns true always.
*/
return SOM_ResolveD(this,SOMTStructEntryC,SOMObject,somResetObj)
(this);
}
/* va_list method: somDispatchV */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
void SOMTStructEntryC_somDispatchV(somId methodId,
somId descriptor,
va_list ap)
{ SOM_ResolveD(this,SOMTStructEntryC,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,SOMTStructEntryC,SOMObject,somDispatchV)
(this,methodId,descriptor,ap);
va_end(ap);
}
/* va_list method: somDispatchL */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
long SOMTStructEntryC_somDispatchL(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,SOMTStructEntryC,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,SOMTStructEntryC,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* SOMTStructEntryC_somDispatchA(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,SOMTStructEntryC,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,SOMTStructEntryC,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 SOMTStructEntryC_somDispatchD(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,SOMTStructEntryC,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,SOMTStructEntryC,SOMObject,somDispatchD)
(this,methodId,descriptor,ap);
va_end(ap);
return __somResult;
}
}; /* SOMTStructEntryC */
#endif /* SOM_SOMTStructEntryC_xh */