home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tolkit45.zip
/
os2tk45
/
som
/
include
/
scpass.xh
< prev
next >
Wrap
Text File
|
1999-02-22
|
35KB
|
1,110 lines
/*
* This file was generated by the SOM Compiler.
* FileName: scpass.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_SOMTPassthruEntryC_xh
#define SOM_SOMTPassthruEntryC_xh
class SOMTPassthruEntryC;
#define SOMTPassthruEntryC_MajorVersion 2
#define SOMTPassthruEntryC_MinorVersion 1
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMTEntryC_xh
#include <scentry.xh>
#endif
#ifndef SOMTPassthruEntryC_API
#define SOMTPassthruEntryC_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 SOMTPassthruEntryC Class */
SOMEXTERN SOMClass * SOMLINK SOMTPassthruEntryCNewClass(
integer4 majorVersion,
integer4 minorVersion);
/* The API to the SOMTPassthruEntryC class object, and the methods it introduces. */
SOMEXTERN struct SOMTPassthruEntryCClassDataStructure {
SOMClass *classObject;
somMToken _get_somtPassthruBody;
somMToken _get_somtPassthruTarget;
somMToken _get_somtPassthruLanguage;
somMToken somtIsBeforePassthru;
} SOMDLINK SOMTPassthruEntryCClassData;
#define _SOMTPassthruEntryC SOMTPassthruEntryCClassData.classObject
/* The API to parentMtabs for SOMTPassthruEntryC, and the instance data it introduces. */
SOMEXTERN struct SOMTPassthruEntryCCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} SOMDLINK SOMTPassthruEntryCCClassData;
/*
* -- Typedefs for SOMTPassthruEntryC Method Procedures
*/
SOMEXTERN {
typedef string SOMLINK somTP_SOMTPassthruEntryC__get_somtPassthruBody(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC__get_somtPassthruBody *somTD_SOMTPassthruEntryC__get_somtPassthruBody;
typedef string SOMLINK somTP_SOMTPassthruEntryC__get_somtPassthruLanguage(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC__get_somtPassthruLanguage *somTD_SOMTPassthruEntryC__get_somtPassthruLanguage;
typedef string SOMLINK somTP_SOMTPassthruEntryC__get_somtPassthruTarget(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC__get_somtPassthruTarget *somTD_SOMTPassthruEntryC__get_somtPassthruTarget;
typedef boolean SOMLINK somTP_SOMTPassthruEntryC_somtIsBeforePassthru(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC_somtIsBeforePassthru *somTD_SOMTPassthruEntryC_somtIsBeforePassthru;
/*
* -- Typedefs for Reintroduced Wrapper Methods
*/
typedef string SOMLINK somTP_SOMTPassthruEntryC__get_somtEntryName(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC__get_somtEntryName *somTD_SOMTPassthruEntryC__get_somtEntryName;
typedef void SOMLINK somTP_SOMTPassthruEntryC__set_somtEntryName(SOMTPassthruEntryC *somSelf,
string somtEntryName);
typedef somTP_SOMTPassthruEntryC__set_somtEntryName *somTD_SOMTPassthruEntryC__set_somtEntryName;
typedef SOMTTypes SOMLINK somTP_SOMTPassthruEntryC__get_somtElementType(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC__get_somtElementType *somTD_SOMTPassthruEntryC__get_somtElementType;
typedef void SOMLINK somTP_SOMTPassthruEntryC__set_somtElementType(SOMTPassthruEntryC *somSelf,
SOMTTypes somtElementType);
typedef somTP_SOMTPassthruEntryC__set_somtElementType *somTD_SOMTPassthruEntryC__set_somtElementType;
typedef string SOMLINK somTP_SOMTPassthruEntryC__get_somtElementTypeName(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC__get_somtElementTypeName *somTD_SOMTPassthruEntryC__get_somtElementTypeName;
typedef string SOMLINK somTP_SOMTPassthruEntryC__get_somtEntryComment(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC__get_somtEntryComment *somTD_SOMTPassthruEntryC__get_somtEntryComment;
typedef unsigned long SOMLINK somTP_SOMTPassthruEntryC__get_somtSourceLineNumber(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC__get_somtSourceLineNumber *somTD_SOMTPassthruEntryC__get_somtSourceLineNumber;
typedef TypeCode SOMLINK somTP_SOMTPassthruEntryC__get_somtTypeCode(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC__get_somtTypeCode *somTD_SOMTPassthruEntryC__get_somtTypeCode;
typedef boolean SOMLINK somTP_SOMTPassthruEntryC__get_somtIsReference(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC__get_somtIsReference *somTD_SOMTPassthruEntryC__get_somtIsReference;
typedef string SOMLINK somTP_SOMTPassthruEntryC__get_somtIDLScopedName(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC__get_somtIDLScopedName *somTD_SOMTPassthruEntryC__get_somtIDLScopedName;
typedef string SOMLINK somTP_SOMTPassthruEntryC__get_somtCScopedName(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC__get_somtCScopedName *somTD_SOMTPassthruEntryC__get_somtCScopedName;
typedef string SOMLINK somTP_SOMTPassthruEntryC_somtGetModifierValue(SOMTPassthruEntryC *somSelf,
string modifierName);
typedef somTP_SOMTPassthruEntryC_somtGetModifierValue *somTD_SOMTPassthruEntryC_somtGetModifierValue;
typedef boolean SOMLINK somTP_SOMTPassthruEntryC_somtGetFirstModifier(SOMTPassthruEntryC *somSelf,
string* modifierName,
string* modifierValue);
typedef somTP_SOMTPassthruEntryC_somtGetFirstModifier *somTD_SOMTPassthruEntryC_somtGetFirstModifier;
typedef boolean SOMLINK somTP_SOMTPassthruEntryC_somtGetNextModifier(SOMTPassthruEntryC *somSelf,
string* modifierName,
string* modifierValue);
typedef somTP_SOMTPassthruEntryC_somtGetNextModifier *somTD_SOMTPassthruEntryC_somtGetNextModifier;
typedef long SOMLINK somTP_SOMTPassthruEntryC_somtFormatModifier(SOMTPassthruEntryC *somSelf,
string buffer,
string name,
string value);
typedef somTP_SOMTPassthruEntryC_somtFormatModifier *somTD_SOMTPassthruEntryC_somtFormatModifier;
typedef long SOMLINK somTP_SOMTPassthruEntryC_somtGetModifierList(SOMTPassthruEntryC *somSelf,
string buffer);
typedef somTP_SOMTPassthruEntryC_somtGetModifierList *somTD_SOMTPassthruEntryC_somtGetModifierList;
typedef long SOMLINK somTP_SOMTPassthruEntryC_somtSetSymbolsOnEntry(SOMTPassthruEntryC *somSelf,
SOMTEmitC* emitter,
string prefix);
typedef somTP_SOMTPassthruEntryC_somtSetSymbolsOnEntry *somTD_SOMTPassthruEntryC_somtSetSymbolsOnEntry;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somtSetEntryStruct(SOMTPassthruEntryC *somSelf,
Entry* es);
typedef somTP_SOMTPassthruEntryC_somtSetEntryStruct *somTD_SOMTPassthruEntryC_somtSetEntryStruct;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somInit(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC_somInit *somTD_SOMTPassthruEntryC_somInit;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somUninit(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC_somUninit *somTD_SOMTPassthruEntryC_somUninit;
typedef SOMObject* SOMLINK somTP_SOMTPassthruEntryC_somPrintSelf(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC_somPrintSelf *somTD_SOMTPassthruEntryC_somPrintSelf;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somDumpSelfInt(SOMTPassthruEntryC *somSelf,
long level);
typedef somTP_SOMTPassthruEntryC_somDumpSelfInt *somTD_SOMTPassthruEntryC_somDumpSelfInt;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somDumpSelf(SOMTPassthruEntryC *somSelf,
long level);
typedef somTP_SOMTPassthruEntryC_somDumpSelf *somTD_SOMTPassthruEntryC_somDumpSelf;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somDefaultInit(SOMTPassthruEntryC *somSelf,
som3InitCtrl* ctrl);
typedef somTP_SOMTPassthruEntryC_somDefaultInit *somTD_SOMTPassthruEntryC_somDefaultInit;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somDestruct(SOMTPassthruEntryC *somSelf,
octet doFree,
som3DestructCtrl* ctrl);
typedef somTP_SOMTPassthruEntryC_somDestruct *somTD_SOMTPassthruEntryC_somDestruct;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somDefaultCopyInit(SOMTPassthruEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTPassthruEntryC_somDefaultCopyInit *somTD_SOMTPassthruEntryC_somDefaultCopyInit;
typedef SOMTPassthruEntryC* SOMLINK somTP_SOMTPassthruEntryC_somDefaultAssign(SOMTPassthruEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTPassthruEntryC_somDefaultAssign *somTD_SOMTPassthruEntryC_somDefaultAssign;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somDefaultConstCopyInit(SOMTPassthruEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTPassthruEntryC_somDefaultConstCopyInit *somTD_SOMTPassthruEntryC_somDefaultConstCopyInit;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somDefaultVCopyInit(SOMTPassthruEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTPassthruEntryC_somDefaultVCopyInit *somTD_SOMTPassthruEntryC_somDefaultVCopyInit;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somDefaultConstVCopyInit(SOMTPassthruEntryC *somSelf,
som3InitCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTPassthruEntryC_somDefaultConstVCopyInit *somTD_SOMTPassthruEntryC_somDefaultConstVCopyInit;
typedef SOMTPassthruEntryC* SOMLINK somTP_SOMTPassthruEntryC_somDefaultConstAssign(SOMTPassthruEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTPassthruEntryC_somDefaultConstAssign *somTD_SOMTPassthruEntryC_somDefaultConstAssign;
typedef SOMTPassthruEntryC* SOMLINK somTP_SOMTPassthruEntryC_somDefaultVAssign(SOMTPassthruEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTPassthruEntryC_somDefaultVAssign *somTD_SOMTPassthruEntryC_somDefaultVAssign;
typedef SOMTPassthruEntryC* SOMLINK somTP_SOMTPassthruEntryC_somDefaultConstVAssign(SOMTPassthruEntryC *somSelf,
som3AssignCtrl* ctrl,
SOMObject* fromObj);
typedef somTP_SOMTPassthruEntryC_somDefaultConstVAssign *somTD_SOMTPassthruEntryC_somDefaultConstVAssign;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somFree(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC_somFree *somTD_SOMTPassthruEntryC_somFree;
typedef SOMClass* SOMLINK somTP_SOMTPassthruEntryC_somGetClass(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC_somGetClass *somTD_SOMTPassthruEntryC_somGetClass;
typedef string SOMLINK somTP_SOMTPassthruEntryC_somGetClassName(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC_somGetClassName *somTD_SOMTPassthruEntryC_somGetClassName;
typedef long SOMLINK somTP_SOMTPassthruEntryC_somGetSize(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC_somGetSize *somTD_SOMTPassthruEntryC_somGetSize;
typedef boolean SOMLINK somTP_SOMTPassthruEntryC_somIsA(SOMTPassthruEntryC *somSelf,
SOMClass* aClassObj);
typedef somTP_SOMTPassthruEntryC_somIsA *somTD_SOMTPassthruEntryC_somIsA;
typedef boolean SOMLINK somTP_SOMTPassthruEntryC_somIsInstanceOf(SOMTPassthruEntryC *somSelf,
SOMClass* aClassObj);
typedef somTP_SOMTPassthruEntryC_somIsInstanceOf *somTD_SOMTPassthruEntryC_somIsInstanceOf;
typedef boolean SOMLINK somTP_SOMTPassthruEntryC_somRespondsTo(SOMTPassthruEntryC *somSelf,
somId mId);
typedef somTP_SOMTPassthruEntryC_somRespondsTo *somTD_SOMTPassthruEntryC_somRespondsTo;
typedef boolean SOMLINK somTP_SOMTPassthruEntryC_somDispatch(SOMTPassthruEntryC *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_SOMTPassthruEntryC_somDispatch *somTD_SOMTPassthruEntryC_somDispatch;
typedef boolean SOMLINK somTP_SOMTPassthruEntryC_somClassDispatch(SOMTPassthruEntryC *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef somTP_SOMTPassthruEntryC_somClassDispatch *somTD_SOMTPassthruEntryC_somClassDispatch;
typedef boolean SOMLINK somTP_SOMTPassthruEntryC_somCastObj(SOMTPassthruEntryC *somSelf,
SOMClass* cls);
typedef somTP_SOMTPassthruEntryC_somCastObj *somTD_SOMTPassthruEntryC_somCastObj;
typedef boolean SOMLINK somTP_SOMTPassthruEntryC_somResetObj(SOMTPassthruEntryC *somSelf);
typedef somTP_SOMTPassthruEntryC_somResetObj *somTD_SOMTPassthruEntryC_somResetObj;
typedef void SOMLINK somTP_SOMTPassthruEntryC_somDispatchV(SOMTPassthruEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTPassthruEntryC_somDispatchV *somTD_SOMTPassthruEntryC_somDispatchV;
typedef long SOMLINK somTP_SOMTPassthruEntryC_somDispatchL(SOMTPassthruEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTPassthruEntryC_somDispatchL *somTD_SOMTPassthruEntryC_somDispatchL;
typedef void* SOMLINK somTP_SOMTPassthruEntryC_somDispatchA(SOMTPassthruEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTPassthruEntryC_somDispatchA *somTD_SOMTPassthruEntryC_somDispatchA;
typedef double SOMLINK somTP_SOMTPassthruEntryC_somDispatchD(SOMTPassthruEntryC *somSelf,
somId methodId,
somId descriptor,
va_list ap);
typedef somTP_SOMTPassthruEntryC_somDispatchD *somTD_SOMTPassthruEntryC_somDispatchD;
}
#endif /* SOMTPassthruEntryC_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 SOMTPassthruEntryC
*/
class SOMTPassthruEntryC : public SOMTEntryC
{
public:
// SOMTPassthruEntryC::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 (!_SOMTPassthruEntryC) SOMTPassthruEntryCNewClass(SOMTPassthruEntryC_MajorVersion,SOMTPassthruEntryC_MinorVersion);
return (void*)
SOM_Resolve(_SOMTPassthruEntryC,SOMClass,somNewNoInit)
((SOMClass *)((void*)_SOMTPassthruEntryC));
}
// SOMTPassthruEntryC::delete uses somDestruct.
void operator delete(void * obj)
{
if (obj && *(void**)obj) {
SOM_Resolve(obj,SOMObject,somFree)
((SOMObject*)obj);
}
}
SOMTPassthruEntryC& operator=(SOMTPassthruEntryC& fromObj)
{
this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
return *this;
}
SOMTPassthruEntryC()
{
if (*(void**)this !=
((somParentMtabStructPtr)
(SOMTPassthruEntryCCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultInit(0);
}
SOMTPassthruEntryC(SOMTPassthruEntryC* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(SOMTPassthruEntryCCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(nocnv,nopar)
#endif
SOMTPassthruEntryC(const SOMTPassthruEntryC* fromObj)
{
if (*(void**)this !=
((somParentMtabStructPtr)
(SOMTPassthruEntryCCClassData.parentMtab))->mtab)
return;
((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}
#ifdef __IBMCPP__
#pragma info(restore)
#endif
/* method: _get_somtPassthruBody */
string _get_somtPassthruBody()
{
/*
* The source content text of this passthru entry without
* any modification. Newlines that were present in the source will
* still be present.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,SOMTPassthruEntryC,_get_somtPassthruBody)
(this);
}
/* method: _get_somtPassthruLanguage */
string _get_somtPassthruLanguage()
{
/*
* Returns the name of the language for which this passthru entry
* is intended. Language names are always all upper case.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,SOMTPassthruEntryC,_get_somtPassthruLanguage)
(this);
}
/* method: _get_somtPassthruTarget */
string _get_somtPassthruTarget()
{
/*
* Returns the target for this passthru entry.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,SOMTPassthruEntryC,_get_somtPassthruTarget)
(this);
}
/* method: somtIsBeforePassthru */
boolean somtIsBeforePassthru()
{
/*
* Returns 1 (true) if this passthru entry is to be put at the
* beginning of the file or 0 (false) if this passthru entry is to
* go later in the file.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,SOMTPassthruEntryC,somtIsBeforePassthru)
(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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,SOMTEntryC,_set_somtElementType)
(this,somtElementType);
}
/* method: _get_somtElementTypeName */
string _get_somtElementTypeName()
{
/*
* String version of somtElementType.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,SOMTEntryC,_get_somtSourceLineNumber)
(this);
}
/* method: _get_somtTypeCode */
TypeCode _get_somtTypeCode()
{
/*
* The typecode, if appropriate, or NULL.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,SOMTEntryC,somtSetEntryStruct)
(this,es);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,SOMTPassthruEntryC,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,SOMTPassthruEntryC,SOMObject,somUninit)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,SOMTPassthruEntryC,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,SOMTPassthruEntryC,SOMObject,somDumpSelfInt)
(this,level);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,SOMObject,somDefaultCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultAssign */
SOMTPassthruEntryC* somDefaultAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator. Use this to "assign" the state of one
* object to another.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,SOMObject,somDefaultConstVCopyInit)
(this,ctrl,fromObj);
}
/* method: somDefaultConstAssign */
SOMTPassthruEntryC* somDefaultConstAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a const fromObj.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,SOMObject,somDefaultConstAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultVAssign */
SOMTPassthruEntryC* somDefaultVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a volatile fromObj.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,SOMObject,somDefaultVAssign)
(this,ctrl,fromObj);
}
/* method: somDefaultConstVAssign */
SOMTPassthruEntryC* somDefaultConstVAssign(som3AssignCtrl* ctrl,
SOMObject* fromObj)
{
/*
* A default assignment operator that uses a const volatile fromObj.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,SOMObject,somDefaultConstVAssign)
(this,ctrl,fromObj);
}
/* method: somFree */
void somFree()
{
/*
* Use as directed by framework implementations.
*/
SOM_ResolveD(this,SOMTPassthruEntryC,SOMObject,somFree)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
/*
* Return the receiver's class.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
string somGetClassName()
{
/*
* Return the name of the receiver's class.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
/*
* Return the size of the receiver.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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 SOMTPassthruEntryC_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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 SOMTPassthruEntryC_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{return SOM_ResolveD(this,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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,SOMTPassthruEntryC,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
/*
* reset an object to its true class. Returns true always.
*/
return SOM_ResolveD(this,SOMTPassthruEntryC,SOMObject,somResetObj)
(this);
}
/* va_list method: somDispatchV */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
void SOMTPassthruEntryC_somDispatchV(somId methodId,
somId descriptor,
va_list ap)
{ SOM_ResolveD(this,SOMTPassthruEntryC,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,SOMTPassthruEntryC,SOMObject,somDispatchV)
(this,methodId,descriptor,ap);
va_end(ap);
}
/* va_list method: somDispatchL */
/*
* Obsolete. Use somDispatch instead.
*/
/* the va_list invocation form */
long SOMTPassthruEntryC_somDispatchL(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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* SOMTPassthruEntryC_somDispatchA(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,SOMTPassthruEntryC,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,SOMTPassthruEntryC,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 SOMTPassthruEntryC_somDispatchD(somId methodId,
somId descriptor,
va_list ap)
{return SOM_ResolveD(this,SOMTPassthruEntryC,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,SOMTPassthruEntryC,SOMObject,somDispatchD)
(this,methodId,descriptor,ap);
va_end(ap);
return __somResult;
}
}; /* SOMTPassthruEntryC */
#endif /* SOM_SOMTPassthruEntryC_xh */