home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tolkit45.zip
/
os2tk45
/
som
/
include
/
scmeta.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-02-22
|
11KB
|
289 lines
/*
* This file was generated by the SOM Compiler.
* FileName: scmeta.h.
* Generated using:
* SOM Precompiler somipc: 2.29.1.17
* SOM Emitter emith: 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_SOMTMetaClassEntryC_h
#define SOM_SOMTMetaClassEntryC_h
#include <som.h>
/*
* -- 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))
/*
* Define the class name as an object type
*/
#ifndef SOMTMetaClassEntryC
#define SOMTMetaClassEntryC SOMObject
#endif
#include <scentry.h>
/*
* Start of bindings for IDL types
*/
#ifndef SOMClass
#define SOMClass SOMObject
#endif /* SOMClass */
#ifndef SOMTEntryC
#define SOMTEntryC SOMObject
#endif /* SOMTEntryC */
#ifndef SOMTEmitC
#define SOMTEmitC SOMObject
#endif /* SOMTEmitC */
#ifndef SOMTMetaClassEntryC
#define SOMTMetaClassEntryC SOMObject
#endif /* SOMTMetaClassEntryC */
#ifndef SOMTAttributeEntryC
#define SOMTAttributeEntryC SOMObject
#endif /* SOMTAttributeEntryC */
#ifndef SOMTTypedefEntryC
#define SOMTTypedefEntryC SOMObject
#endif /* SOMTTypedefEntryC */
#ifndef SOMTBaseClassEntryC
#define SOMTBaseClassEntryC SOMObject
#endif /* SOMTBaseClassEntryC */
#ifndef SOMTPassthruEntryC
#define SOMTPassthruEntryC SOMObject
#endif /* SOMTPassthruEntryC */
#ifndef SOMTDataEntryC
#define SOMTDataEntryC SOMObject
#endif /* SOMTDataEntryC */
#ifndef SOMTMethodEntryC
#define SOMTMethodEntryC SOMObject
#endif /* SOMTMethodEntryC */
#ifndef SOMTClassEntryC
#define SOMTClassEntryC SOMObject
#endif /* SOMTClassEntryC */
#ifndef SOMTModuleEntryC
#define SOMTModuleEntryC SOMObject
#endif /* SOMTModuleEntryC */
#ifndef SOMTParameterEntryC
#define SOMTParameterEntryC SOMObject
#endif /* SOMTParameterEntryC */
#ifndef SOMTStructEntryC
#define SOMTStructEntryC SOMObject
#endif /* SOMTStructEntryC */
#ifndef SOMTUnionEntryC
#define SOMTUnionEntryC SOMObject
#endif /* SOMTUnionEntryC */
#ifndef SOMTEnumEntryC
#define SOMTEnumEntryC SOMObject
#endif /* SOMTEnumEntryC */
#ifndef SOMTConstEntryC
#define SOMTConstEntryC SOMObject
#endif /* SOMTConstEntryC */
#ifndef SOMTSequenceEntryC
#define SOMTSequenceEntryC SOMObject
#endif /* SOMTSequenceEntryC */
#ifndef SOMTStringEntryC
#define SOMTStringEntryC SOMObject
#endif /* SOMTStringEntryC */
#ifndef SOMTEnumNameEntryC
#define SOMTEnumNameEntryC SOMObject
#endif /* SOMTEnumNameEntryC */
#ifndef SOMTCommonEntryC
#define SOMTCommonEntryC SOMObject
#endif /* SOMTCommonEntryC */
#ifndef SOMTUserDefinedTypeEntryC
#define SOMTUserDefinedTypeEntryC SOMObject
#endif /* SOMTUserDefinedTypeEntryC */
/*
* End of bindings for IDL types.
*/
#define SOMTMetaClassEntryC_MajorVersion 2
#define SOMTMetaClassEntryC_MinorVersion 1
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define SOMTMetaClassEntryCNewClass c
#pragma linkage(c, system)
#define SOMTMetaClassEntryCClassData d
#define SOMTMetaClassEntryCCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define SOMTMetaClassEntryC_classObj SOMTMetaClassEntryCClassData.classObject
#define _SOMTMetaClassEntryC SOMTMetaClassEntryC_classObj
/*
* Declare the class creation procedure
*/
SOMEXTERN SOMClass * SOMLINK SOMTMetaClassEntryCNewClass(integer4 somtmajorVersion,
integer4 somtminorVersion);
#pragma linkage(SOMTMetaClassEntryCNewClass, system)
/*
* Declare the class data structure
*/
SOMEXTERN struct SOMTMetaClassEntryCClassDataStructure {
SOMClass *classObject;
somMToken _get_somtMetaFile;
somMToken _get_somtMetaClassDef;
} SOMDLINK SOMTMetaClassEntryCClassData;
/*
* Declare the C specific class data structure
*/
SOMEXTERN struct SOMTMetaClassEntryCCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} SOMDLINK SOMTMetaClassEntryCCClassData;
/*
* New and Renew macros for SOMTMetaClassEntryC
*/
#define SOMTMetaClassEntryCNew() \
( _SOMTMetaClassEntryC ? \
_somNew(_SOMTMetaClassEntryC) \
: ( SOMTMetaClassEntryCNewClass(\
SOMTMetaClassEntryC_MajorVersion, \
SOMTMetaClassEntryC_MinorVersion),\
_somNew(_SOMTMetaClassEntryC)))
#define SOMTMetaClassEntryCRenew(buf) \
( _SOMTMetaClassEntryC ? \
_somRenew(_SOMTMetaClassEntryC, buf) \
: ( SOMTMetaClassEntryCNewClass(\
SOMTMetaClassEntryC_MajorVersion, \
SOMTMetaClassEntryC_MinorVersion),\
_somRenew(_SOMTMetaClassEntryC, buf)))
/*
* Override method: somtSetSymbolsOnEntry
*/
#define SOMTMetaClassEntryC_somtSetSymbolsOnEntry(somSelf,emitter,prefix) \
SOMTEntryC_somtSetSymbolsOnEntry(somSelf,emitter,prefix)
/*
* Override method: somDumpSelfInt
*/
#define SOMTMetaClassEntryC_somDumpSelfInt(somSelf,level) \
SOMObject_somDumpSelfInt(somSelf,level)
/*
* New Method: _get_somtMetaFile
*/
typedef string SOMLINK somTP_SOMTMetaClassEntryC__get_somtMetaFile(SOMTMetaClassEntryC *somSelf);
#pragma linkage(somTP_SOMTMetaClassEntryC__get_somtMetaFile, system)
typedef somTP_SOMTMetaClassEntryC__get_somtMetaFile *somTD_SOMTMetaClassEntryC__get_somtMetaFile;
/*
* Returns the name of the file containing the definition of the
* meta class named in this entry.
*/
#define somMD_SOMTMetaClassEntryC__get_somtMetaFile "::SOMTMetaClassEntryC::_get_somtMetaFile"
#define SOMTMetaClassEntryC__get_somtMetaFile(somSelf) \
(SOM_Resolve(somSelf, SOMTMetaClassEntryC, _get_somtMetaFile) \
(somSelf))
#ifndef SOMGD_get_somtMetaFile
#if (defined(_get_somtMetaFile) || defined(__get_somtMetaFile))
#undef _get_somtMetaFile
#undef __get_somtMetaFile
#define SOMGD_get_somtMetaFile 1
#else
#define __get_somtMetaFile SOMTMetaClassEntryC__get_somtMetaFile
#endif /* __get_somtMetaFile */
#endif /* SOMGD_get_somtMetaFile */
/*
* New Method: _get_somtMetaClassDef
*/
typedef SOMTClassEntryC* SOMLINK somTP_SOMTMetaClassEntryC__get_somtMetaClassDef(SOMTMetaClassEntryC *somSelf);
#pragma linkage(somTP_SOMTMetaClassEntryC__get_somtMetaClassDef, system)
typedef somTP_SOMTMetaClassEntryC__get_somtMetaClassDef *somTD_SOMTMetaClassEntryC__get_somtMetaClassDef;
/*
* Returns the class definition entry for the meta class named in
* this entry.
*/
#define somMD_SOMTMetaClassEntryC__get_somtMetaClassDef "::SOMTMetaClassEntryC::_get_somtMetaClassDef"
#define SOMTMetaClassEntryC__get_somtMetaClassDef(somSelf) \
(SOM_Resolve(somSelf, SOMTMetaClassEntryC, _get_somtMetaClassDef) \
(somSelf))
#ifndef SOMGD_get_somtMetaClassDef
#if (defined(_get_somtMetaClassDef) || defined(__get_somtMetaClassDef))
#undef _get_somtMetaClassDef
#undef __get_somtMetaClassDef
#define SOMGD_get_somtMetaClassDef 1
#else
#define __get_somtMetaClassDef SOMTMetaClassEntryC__get_somtMetaClassDef
#endif /* __get_somtMetaClassDef */
#endif /* SOMGD_get_somtMetaClassDef */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define SOMTMetaClassEntryC__get_somtEntryName SOMTEntryC__get_somtEntryName
#define SOMTMetaClassEntryC__set_somtEntryName SOMTEntryC__set_somtEntryName
#define SOMTMetaClassEntryC__get_somtElementType SOMTEntryC__get_somtElementType
#define SOMTMetaClassEntryC__set_somtElementType SOMTEntryC__set_somtElementType
#define SOMTMetaClassEntryC__get_somtElementTypeName SOMTEntryC__get_somtElementTypeName
#define SOMTMetaClassEntryC__get_somtEntryComment SOMTEntryC__get_somtEntryComment
#define SOMTMetaClassEntryC__get_somtSourceLineNumber SOMTEntryC__get_somtSourceLineNumber
#define SOMTMetaClassEntryC__get_somtTypeCode SOMTEntryC__get_somtTypeCode
#define SOMTMetaClassEntryC__get_somtIsReference SOMTEntryC__get_somtIsReference
#define SOMTMetaClassEntryC__get_somtIDLScopedName SOMTEntryC__get_somtIDLScopedName
#define SOMTMetaClassEntryC__get_somtCScopedName SOMTEntryC__get_somtCScopedName
#define SOMTMetaClassEntryC_somtGetModifierValue SOMTEntryC_somtGetModifierValue
#define SOMTMetaClassEntryC_somtGetFirstModifier SOMTEntryC_somtGetFirstModifier
#define SOMTMetaClassEntryC_somtGetNextModifier SOMTEntryC_somtGetNextModifier
#define SOMTMetaClassEntryC_somtFormatModifier SOMTEntryC_somtFormatModifier
#define SOMTMetaClassEntryC_somtGetModifierList SOMTEntryC_somtGetModifierList
#define SOMTMetaClassEntryC_somtSetEntryStruct SOMTEntryC_somtSetEntryStruct
#define SOMTMetaClassEntryC_somInit SOMObject_somInit
#define SOMTMetaClassEntryC_somUninit SOMObject_somUninit
#define SOMTMetaClassEntryC_somPrintSelf SOMObject_somPrintSelf
#define SOMTMetaClassEntryC_somDumpSelf SOMObject_somDumpSelf
#define SOMTMetaClassEntryC_somDefaultInit SOMObject_somDefaultInit
#define SOMTMetaClassEntryC_somDestruct SOMObject_somDestruct
#define SOMTMetaClassEntryC_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define SOMTMetaClassEntryC_somDefaultAssign SOMObject_somDefaultAssign
#define SOMTMetaClassEntryC_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define SOMTMetaClassEntryC_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define SOMTMetaClassEntryC_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define SOMTMetaClassEntryC_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define SOMTMetaClassEntryC_somDefaultVAssign SOMObject_somDefaultVAssign
#define SOMTMetaClassEntryC_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define SOMTMetaClassEntryC_somFree SOMObject_somFree
#define SOMTMetaClassEntryC_somGetClass SOMObject_somGetClass
#define SOMTMetaClassEntryC_somGetClassName SOMObject_somGetClassName
#define SOMTMetaClassEntryC_somGetSize SOMObject_somGetSize
#define SOMTMetaClassEntryC_somIsA SOMObject_somIsA
#define SOMTMetaClassEntryC_somIsInstanceOf SOMObject_somIsInstanceOf
#define SOMTMetaClassEntryC_somRespondsTo SOMObject_somRespondsTo
#define SOMTMetaClassEntryC_somDispatch SOMObject_somDispatch
#define SOMTMetaClassEntryC_somClassDispatch SOMObject_somClassDispatch
#define SOMTMetaClassEntryC_somCastObj SOMObject_somCastObj
#define SOMTMetaClassEntryC_somResetObj SOMObject_somResetObj
#define SOMTMetaClassEntryC_somDispatchV SOMObject_somDispatchV
#define SOMTMetaClassEntryC_somDispatchL SOMObject_somDispatchL
#define SOMTMetaClassEntryC_somDispatchA SOMObject_somDispatchA
#define SOMTMetaClassEntryC_somDispatchD SOMObject_somDispatchD
#endif /* SOM_DONT_USE_INHERITED_MACROS */
#endif /* SOM_SOMTMetaClassEntryC_h */