home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tolkit45.zip
/
os2tk45
/
som
/
include
/
sctdef.xh
< prev
next >
Wrap
Text File
|
1999-02-22
|
35KB
|
1,098 lines
/*
* This file was generated by the SOM Compiler.
* FileName: sctdef.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_SOMTTypedefEntryC_xh
#define SOM_SOMTTypedefEntryC_xh
class SOMTTypedefEntryC;
#define SOMTTypedefEntryC_MajorVersion 2
#define SOMTTypedefEntryC_MinorVersion 2
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMTEntryC_xh
#include <scentry.xh>
#endif
#ifndef SOMTTypedefEntryC_API
#define SOMTTypedefEntryC_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 SOMTTypedefEntryC Class */
SOMEXTERN SOMClass * SOMLINK SOMTTypedefEntryCNewClass(
integer4 majorVersion,
integer4 minorVersion);
/* The API to the SOMTTypedefEntryC class object, and the methods it introduces. */
SOMEXTERN struct SOMTTypedefEntryCClassDataStructure {
SOMClass *classObject;
somMToken _get_somtTypedefType;
somMToken somtGetFirstDeclarator;
somMToken somtGetNextDeclarator;
} SOMDLINK SOMTTypedefEntryCClassData;
#define _SOMTTypedefEntryC SOMTTypedefEntryCClassData.classObject
/* The API to parentMtabs for SOMTTypedefEntryC, and the instance data it introduces. */
SOMEXTERN struct SOMTTypedefEntryCCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} SOMDLINK SOMTTypedefEntryCCClassData;
/*
* -- Typedefs for SOMTTypedefEntryC Method Procedures
*/
SOMEXTERN {
typedef SOMTEntryC* SOMLINK somTP_SOMTTypedefEntryC__get_somtTypedefType(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC__get_somtTypedefType *somTD_SOMTTypedefEntryC__get_somtTypedefType;
typedef SOMTCommonEntryC* SOMLINK somTP_SOMTTypedefEntryC_somtGetFirstDeclarator(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC_somtGetFirstDeclarator *somTD_SOMTTypedefEntryC_somtGetFirstDeclarator;
typedef SOMTCommonEntryC* SOMLINK somTP_SOMTTypedefEntryC_somtGetNextDeclarator(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC_somtGetNextDeclarator *somTD_SOMTTypedefEntryC_somtGetNextDeclarator;
/*
* -- Typedefs for Reintroduced Wrapper Methods
*/
typedef string SOMLINK somTP_SOMTTypedefEntryC__get_somtEntryName(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC__get_somtEntryName *somTD_SOMTTypedefEntryC__get_somtEntryName;
typedef void SOMLINK somTP_SOMTTypedefEntryC__set_somtEntryName(SOMTTypedefEntryC *somSelf,
string somtEntryName);
typedef somTP_SOMTTypedefEntryC__set_somtEntryName *somTD_SOMTTypedefEntryC__set_somtEntryName;
typedef SOMTTypes SOMLINK somTP_SOMTTypedefEntryC__get_somtElementType(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC__get_somtElementType *somTD_SOMTTypedefEntryC__get_somtElementType;
typedef void SOMLINK somTP_SOMTTypedefEntryC__set_somtElementType(SOMTTypedefEntryC *somSelf,
SOMTTypes somtElementType);
typedef somTP_SOMTTypedefEntryC__set_somtElementType *somTD_SOMTTypedefEntryC__set_somtElementType;
typedef string SOMLINK somTP_SOMTTypedefEntryC__get_somtElementTypeName(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC__get_somtElementTypeName *somTD_SOMTTypedefEntryC__get_somtElementTypeName;
typedef string SOMLINK somTP_SOMTTypedefEntryC__get_somtEntryComment(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC__get_somtEntryComment *somTD_SOMTTypedefEntryC__get_somtEntryComment;
typedef unsigned long SOMLINK somTP_SOMTTypedefEntryC__get_somtSourceLineNumber(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC__get_somtSourceLineNumber *somTD_SOMTTypedefEntryC__get_somtSourceLineNumber;
typedef TypeCode SOMLINK somTP_SOMTTypedefEntryC__get_somtTypeCode(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC__get_somtTypeCode *somTD_SOMTTypedefEntryC__get_somtTypeCode;
typedef boolean SOMLINK somTP_SOMTTypedefEntryC__get_somtIsReference(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC__get_somtIsReference *somTD_SOMTTypedefEntryC__get_somtIsReference;
typedef string SOMLINK somTP_SOMTTypedefEntryC__get_somtIDLScopedName(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC__get_somtIDLScopedName *somTD_SOMTTypedefEntryC__get_somtIDLScopedName;
typedef string SOMLINK somTP_SOMTTypedefEntryC__get_somtCScopedName(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC__get_somtCScopedName *somTD_SOMTTypedefEntryC__get_somtCScopedName;
typedef string SOMLINK somTP_SOMTTypedefEntryC_somtGetModifierValue(SOMTTypedefEntryC *somSelf,
string modifierName);
typedef somTP_SOMTTypedefEntryC_somtGetModifierValue *somTD_SOMTTypedefEntryC_somtGetModifierValue;
typedef boolean SOMLINK somTP_SOMTTypedefEntryC_somtGetFirstModifier(SOMTTypedefEntryC *somSelf,
string* modifierName,
string* modifierValue);
typedef somTP_SOMTTypedefEntryC_somtGetFirstModifier *somTD_SOMTTypedefEntryC_somtGetFirstModifier;
typedef boolean SOMLINK somTP_SOMTTypedefEntryC_somtGetNextModifier(SOMTTypedefEntryC *somSelf,
string* modifierName,
string* modifierValue);
typedef somTP_SOMTTypedefEntryC_somtGetNextModifier *somTD_SOMTTypedefEntryC_somtGetNextModifier;
typedef long SOMLINK somTP_SOMTTypedefEntryC_somtFormatModifier(SOMTTypedefEntryC *somSelf,
string buffer,
string name,
string value);
typedef somTP_SOMTTypedefEntryC_somtFormatModifier *somTD_SOMTTypedefEntryC_somtFormatModifier;
typedef long SOMLINK somTP_SOMTTypedefEntryC_somtGetModifierList(SOMTTypedefEntryC *somSelf,
string buffer);
typedef somTP_SOMTTypedefEntryC_somtGetModifierList *somTD_SOMTTypedefEntryC_somtGetModifierList;
typedef long SOMLINK somTP_SOMTTypedefEntryC_somtSetSymbolsOnEntry(SOMTTypedefEntryC *somSelf,
SOMTEmitC* emitter,
string prefix);
typedef somTP_SOMTTypedefEntryC_somtSetSymbolsOnEntry *somTD_SOMTTypedefEntryC_somtSetSymbolsOnEntry;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somtSetEntryStruct(SOMTTypedefEntryC *somSelf,
Entry* es);
typedef somTP_SOMTTypedefEntryC_somtSetEntryStruct *somTD_SOMTTypedefEntryC_somtSetEntryStruct;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somInit(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC_somInit *somTD_SOMTTypedefEntryC_somInit;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somUninit(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC_somUninit *somTD_SOMTTypedefEntryC_somUninit;
typedef SOMObject* SOMLINK somTP_SOMTTypedefEntryC_somPrintSelf(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC_somPrintSelf *somTD_SOMTTypedefEntryC_somPrintSelf;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somDumpSelfInt(SOMTTypedefEntryC *somSelf,
long level);
typedef somTP_SOMTTypedefEntryC_somDumpSelfInt *somTD_SOMTTypedefEntryC_somDumpSelfInt;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somDumpSelf(SOMTTypedefEntryC *somSelf,
long level);
typedef somTP_SOMTTypedefEntryC_somDumpSelf *somTD_SOMTTypedefEntryC_somDumpSelf;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somDefaultInit(SOMTTypedefEntryC *somSelf,
som3InitCtrl* ctrl);
typedef somTP_SOMTTypedefEntryC_somDefaultInit *somTD_SOMTTypedefEntryC_somDefaultInit;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somDestruct(SOMTTypedefEntryC *somSelf,
octet doFree,
som3DestructCtrl* ctrl);
typedef somTP_SOMTTypedefEntryC_somDestruct *somTD_SOMTTypedefEntryC_somDestruct;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somDefaultCopyInit(SOMTTypedefEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTTypedefEntryC_somDefaultCopyInit *somTD_SOMTTypedefEntryC_somDefaultCopyInit;
typedef SOMTTypedefEntryC* SOMLINK somTP_SOMTTypedefEntryC_somDefaultAssign(SOMTTypedefEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTTypedefEntryC_somDefaultAssign *somTD_SOMTTypedefEntryC_somDefaultAssign;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somDefaultConstCopyInit(SOMTTypedefEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTTypedefEntryC_somDefaultConstCopyInit *somTD_SOMTTypedefEntryC_somDefaultConstCopyInit;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somDefaultVCopyInit(SOMTTypedefEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTTypedefEntryC_somDefaultVCopyInit *somTD_SOMTTypedefEntryC_somDefaultVCopyInit;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somDefaultConstVCopyInit(SOMTTypedefEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTTypedefEntryC_somDefaultConstVCopyInit *somTD_SOMTTypedefEntryC_somDefaultConstVCopyInit;
typedef SOMTTypedefEntryC* SOMLINK somTP_SOMTTypedefEntryC_somDefaultConstAssign(SOMTTypedefEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTTypedefEntryC_somDefaultConstAssign *somTD_SOMTTypedefEntryC_somDefaultConstAssign;
typedef SOMTTypedefEntryC* SOMLINK somTP_SOMTTypedefEntryC_somDefaultVAssign(SOMTTypedefEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTTypedefEntryC_somDefaultVAssign *somTD_SOMTTypedefEntryC_somDefaultVAssign;
typedef SOMTTypedefEntryC* SOMLINK somTP_SOMTTypedefEntryC_somDefaultConstVAssign(SOMTTypedefEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTTypedefEntryC_somDefaultConstVAssign *somTD_SOMTTypedefEntryC_somDefaultConstVAssign;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somFree(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC_somFree *somTD_SOMTTypedefEntryC_somFree;
typedef SOMClass* SOMLINK somTP_SOMTTypedefEntryC_somGetClass(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC_somGetClass *somTD_SOMTTypedefEntryC_somGetClass;
typedef string SOMLINK somTP_SOMTTypedefEntryC_somGetClassName(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC_somGetClassName *somTD_SOMTTypedefEntryC_somGetClassName;
typedef long SOMLINK somTP_SOMTTypedefEntryC_somGetSize(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC_somGetSize *somTD_SOMTTypedefEntryC_somGetSize;
typedef boolean SOMLINK somTP_SOMTTypedefEntryC_somIsA(SOMTTypedefEntryC *somSelf,
SOMClass* aClassObj);
typedef somTP_SOMTTypedefEntryC_somIsA *somTD_SOMTTypedefEntryC_somIsA;
typedef boolean SOMLINK somTP_SOMTTypedefEntryC_somIsInstanceOf(SOMTTypedefEntryC *somSelf,
SOMClass* aClassObj);
typedef somTP_SOMTTypedefEntryC_somIsInstanceOf *somTD_SOMTTypedefEntryC_somIsInstanceOf;
typedef boolean SOMLINK somTP_SOMTTypedefEntryC_somRespondsTo(SOMTTypedefEntryC *somSelf,
somId mId);
typedef somTP_SOMTTypedefEntryC_somRespondsTo *somTD_SOMTTypedefEntryC_somRespondsTo;
typedef boolean SOMLINK somTP_SOMTTypedefEntryC_somDispatch(SOMTTypedefEntryC *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_SOMTTypedefEntryC_somDispatch *somTD_SOMTTypedefEntryC_somDispatch;
typedef boolean SOMLINK somTP_SOMTTypedefEntryC_somClassDispatch(SOMTTypedefEntryC *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_SOMTTypedefEntryC_somClassDispatch *somTD_SOMTTypedefEntryC_somClassDispatch;
typedef boolean SOMLINK somTP_SOMTTypedefEntryC_somCastObj(SOMTTypedefEntryC *somSelf,
SOMClass* cls);
typedef somTP_SOMTTypedefEntryC_somCastObj *somTD_SOMTTypedefEntryC_somCastObj;
typedef boolean SOMLINK somTP_SOMTTypedefEntryC_somResetObj(SOMTTypedefEntryC *somSelf);
typedef somTP_SOMTTypedefEntryC_somResetObj *somTD_SOMTTypedefEntryC_somResetObj;
typedef void SOMLINK somTP_SOMTTypedefEntryC_somDispatchV(SOMTTypedefEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTTypedefEntryC_somDispatchV *somTD_SOMTTypedefEntryC_somDispatchV;
typedef long SOMLINK somTP_SOMTTypedefEntryC_somDispatchL(SOMTTypedefEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTTypedefEntryC_somDispatchL *somTD_SOMTTypedefEntryC_somDispatchL;
typedef void* SOMLINK somTP_SOMTTypedefEntryC_somDispatchA(SOMTTypedefEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTTypedefEntryC_somDispatchA *somTD_SOMTTypedefEntryC_somDispatchA;
typedef double SOMLINK somTP_SOMTTypedefEntryC_somDispatchD(SOMTTypedefEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTTypedefEntryC_somDispatchD *somTD_SOMTTypedefEntryC_somDispatchD;
}
#endif /* SOMTTypedefEntryC_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 SOMTTypedefEntryC
*/
class SOMTTypedefEntryC : public SOMTEntryC
{
public:
// SOMTTypedefEntryC::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 (!_SOMTTypedefEntryC) SOMTTypedefEntryCNewClass(SOMTTypedefEntryC_MajorVersion,SOMTTypedefEntryC_MinorVersion);
return (void*)
SOM_Resolve(_SOMTTypedefEntryC,SOMClass,somNewNoInit)
((SOMClass *)((void*)_SOMTTypedefEntryC));
}
// SOMTTypedefEntryC::delete uses somDestruct.
void operator delete(void * obj)
{
if (obj && *(void**)obj) {
SOM_Resolve(obj,SOMObject,somFree)
((SOMObject*)obj);
}
}
SOMTTypedefEntryC& operator=(SOMTTypedefEntryC& fromObj)
{
this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
return *this;
}
SOMTTypedefEntryC()
{
if (*(void**)this !=
((somParentMtabStructPtr)
(SOMTTypedefEntryCCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultInit(0);
}
SOMTTypedefEntryC(SOMTTypedefEntryC* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(SOMTTypedefEntryCCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(nocnv,nopar)
#endif
SOMTTypedefEntryC(const SOMTTypedefEntryC* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(SOMTTypedefEntryCCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(restore)
#endif
/* method: _get_somtTypedefType */
SOMTEntryC* _get_somtTypedefType()
{
/*
* The type of the typedef. This does not include pointer stars or
* array declarators. These must be obtained by examining each
* of the declarators.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,SOMTTypedefEntryC,_get_somtTypedefType)
(this);
}
/* method: somtGetFirstDeclarator */
SOMTCommonEntryC* somtGetFirstDeclarator()
{
/*
* The first declarator for this typedef.
* Declarators of struct members will be instances of SOMTDataEntryC,
* while declarators of typedefs will be instances of SOMTUserDefinedTypeEntryC.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,SOMTTypedefEntryC,somtGetFirstDeclarator)
(this);
}
/* method: somtGetNextDeclarator */
SOMTCommonEntryC* somtGetNextDeclarator()
{
/*
* The next declarator for this typedef, relative to the previous
* call to this method or somtGetFirstDeclarator.
* Declarators of struct members will be instances of SOMTDataEntryC,
* while declarators of typedefs will be instances of SOMTUserDefinedTypeEntryC.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,SOMTTypedefEntryC,somtGetNextDeclarator)
(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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,SOMTEntryC,_set_somtElementType)
(this,somtElementType);
}
/* method: _get_somtElementTypeName */
string _get_somtElementTypeName()
{
/*
* String version of somtElementType.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,SOMTEntryC,_get_somtSourceLineNumber)
(this);
}
/* method: _get_somtTypeCode */
TypeCode _get_somtTypeCode()
{
/*
* The typecode, if appropriate, or NULL.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,SOMTEntryC,somtSetEntryStruct)
(this,es);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,SOMTTypedefEntryC,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,SOMTTypedefEntryC,SOMObject,somUninit)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,SOMTTypedefEntryC,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,SOMTTypedefEntryC,SOMObject,somDumpSelfInt)
(this,level);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,SOMObject,somDefaultCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultAssign */
SOMTTypedefEntryC* somDefaultAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator. Use this to "assign" the state of one
* object to another.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,SOMObject,somDefaultConstVCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultConstAssign */
SOMTTypedefEntryC* somDefaultConstAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a const fromObj.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,SOMObject,somDefaultConstAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultVAssign */
SOMTTypedefEntryC* somDefaultVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a volatile fromObj.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,SOMObject,somDefaultVAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultConstVAssign */
SOMTTypedefEntryC* somDefaultConstVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a const volatile fromObj.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,SOMObject,somDefaultConstVAssign)
(this,ctrl,fromObj);
}
/* method: somFree */
void somFree()
{
/*
* Use as directed by framework implementations.
*/
SOM_ResolveD(this,SOMTTypedefEntryC,SOMObject,somFree)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
/*
* Return the receiver's class.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
string somGetClassName()
{
/*
* Return the name of the receiver's class.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
/*
* Return the size of the receiver.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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 SOMTTypedefEntryC_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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 SOMTTypedefEntryC_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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,SOMTTypedefEntryC,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
/*
* reset an object to its true class. Returns true always.
*/
return SOM_ResolveD(this,SOMTTypedefEntryC,SOMObject,somResetObj)
(this);
}
/* va_list method: somDispatchV */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
void SOMTTypedefEntryC_somDispatchV(somId methodId,
somId descriptor,
va_list ap)
{ SOM_ResolveD(this,SOMTTypedefEntryC,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,SOMTTypedefEntryC,SOMObject,somDispatchV)
(this,methodId,descriptor,ap);
va_end(ap);
}
/* va_list method: somDispatchL */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
long SOMTTypedefEntryC_somDispatchL(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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* SOMTTypedefEntryC_somDispatchA(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,SOMTTypedefEntryC,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,SOMTTypedefEntryC,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 SOMTTypedefEntryC_somDispatchD(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,SOMTTypedefEntryC,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,SOMTTypedefEntryC,SOMObject,somDispatchD)
(this,methodId,descriptor,ap);
va_end(ap);
return __somResult;
}
}; /* SOMTTypedefEntryC */
#endif /* SOM_SOMTTypedefEntryC_xh */