home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tolkit45.zip
/
os2tk45
/
som
/
include
/
tclong.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-02-22
|
9KB
|
249 lines
/*
* This file was generated by the SOM Compiler.
* FileName: tclong.h.
* Generated using:
* SOM Precompiler somipc: 2.29.1.17
* SOM Emitter emith: 2.47
*/
/*
* COMPONENT_NAME: somuc
*
* ORIGINS: 82, 81, 27
*
*
* 25H7912 (C) COPYRIGHT International Business Machines Corp. 1992,1996,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.
*
* Copyright ⌐ 1988, 1989 Apple Computer, Inc. All rights reserved.
*
* CLASS_NAME: somf_TCollectibleLong
*
* DESCRIPTION: This class provides the user with a generic MCollectible
* containing a long value.
*
*/
#ifndef SOM_somf_TCollectibleLong_h
#define SOM_somf_TCollectibleLong_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 somf_TCollectibleLong
#define somf_TCollectibleLong SOMObject
#endif
#include <mcollect.h>
/*
* Start of bindings for IDL types
*/
#ifndef SOMClass
#define SOMClass SOMObject
#endif /* SOMClass */
/*
* End of bindings for IDL types.
*/
#define somf_TCollectibleLong_MajorVersion 2
#define somf_TCollectibleLong_MinorVersion 1
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define somf_TCollectibleLongNewClass c
#pragma linkage(c, system)
#define somf_TCollectibleLongClassData d
#define somf_TCollectibleLongCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define somf_TCollectibleLong_classObj somf_TCollectibleLongClassData.classObject
#define _somf_TCollectibleLong somf_TCollectibleLong_classObj
/*
* Declare the class creation procedure
*/
SOMEXTERN SOMClass * SOMLINK somf_TCollectibleLongNewClass(integer4 somtmajorVersion,
integer4 somtminorVersion);
#pragma linkage(somf_TCollectibleLongNewClass, system)
/*
* Declare the class data structure
*/
SOMEXTERN struct somf_TCollectibleLongClassDataStructure {
SOMClass *classObject;
somMToken somfGetValue;
somMToken somfSetValue;
somMToken somfTCollectibleLongInit;
} SOMDLINK somf_TCollectibleLongClassData;
/*
* Declare the C specific class data structure
*/
SOMEXTERN struct somf_TCollectibleLongCClassDataStructure {
somMethodTabs parentMtab;
somDToken instanceDataToken;
} SOMDLINK somf_TCollectibleLongCClassData;
/*
* New and Renew macros for somf_TCollectibleLong
*/
#define somf_TCollectibleLongNew() \
( _somf_TCollectibleLong ? \
_somNew(_somf_TCollectibleLong) \
: ( somf_TCollectibleLongNewClass(\
somf_TCollectibleLong_MajorVersion, \
somf_TCollectibleLong_MinorVersion),\
_somNew(_somf_TCollectibleLong)))
#define somf_TCollectibleLongRenew(buf) \
( _somf_TCollectibleLong ? \
_somRenew(_somf_TCollectibleLong, buf) \
: ( somf_TCollectibleLongNewClass(\
somf_TCollectibleLong_MajorVersion, \
somf_TCollectibleLong_MinorVersion),\
_somRenew(_somf_TCollectibleLong, buf)))
/*
* Override method: somInit
*/
#define somf_TCollectibleLong_somInit(somSelf) \
SOMObject_somInit(somSelf)
/*
* Override method: somfIsEqual
*/
#define somf_TCollectibleLong_somfIsEqual(somSelf,ev,obj) \
somf_MCollectible_somfIsEqual(somSelf,ev,obj)
/*
* Override method: somfHash
*/
#define somf_TCollectibleLong_somfHash(somSelf,ev) \
somf_MCollectible_somfHash(somSelf,ev)
/*
* New Method: somfTCollectibleLongInit
*/
typedef somf_TCollectibleLong* SOMLINK somTP_somf_TCollectibleLong_somfTCollectibleLongInit(somf_TCollectibleLong *somSelf, Environment *ev,
long v);
#pragma linkage(somTP_somf_TCollectibleLong_somfTCollectibleLongInit, system)
typedef somTP_somf_TCollectibleLong_somfTCollectibleLongInit *somTD_somf_TCollectibleLong_somfTCollectibleLongInit;
/*
* Initializes the new set.
*/
#define somMD_somf_TCollectibleLong_somfTCollectibleLongInit "::somf_TCollectibleLong::somfTCollectibleLongInit"
#define somf_TCollectibleLong_somfTCollectibleLongInit(somSelf,ev,v) \
(SOM_Resolve(somSelf, somf_TCollectibleLong, somfTCollectibleLongInit) \
(somSelf,ev,v))
#ifndef SOMGD_somfTCollectibleLongInit
#if (defined(_somfTCollectibleLongInit) || defined(__somfTCollectibleLongInit))
#undef _somfTCollectibleLongInit
#undef __somfTCollectibleLongInit
#define SOMGD_somfTCollectibleLongInit 1
#else
#define _somfTCollectibleLongInit somf_TCollectibleLong_somfTCollectibleLongInit
#endif /* _somfTCollectibleLongInit */
#endif /* SOMGD_somfTCollectibleLongInit */
/*
* New Method: somfGetValue
*/
typedef long SOMLINK somTP_somf_TCollectibleLong_somfGetValue(somf_TCollectibleLong *somSelf, Environment *ev);
#pragma linkage(somTP_somf_TCollectibleLong_somfGetValue, system)
typedef somTP_somf_TCollectibleLong_somfGetValue *somTD_somf_TCollectibleLong_somfGetValue;
/*
* Determine the value of the long.
*/
#define somMD_somf_TCollectibleLong_somfGetValue "::somf_TCollectibleLong::somfGetValue"
#define somf_TCollectibleLong_somfGetValue(somSelf,ev) \
(SOM_Resolve(somSelf, somf_TCollectibleLong, somfGetValue) \
(somSelf,ev))
#ifndef SOMGD_somfGetValue
#if (defined(_somfGetValue) || defined(__somfGetValue))
#undef _somfGetValue
#undef __somfGetValue
#define SOMGD_somfGetValue 1
#else
#define _somfGetValue somf_TCollectibleLong_somfGetValue
#endif /* _somfGetValue */
#endif /* SOMGD_somfGetValue */
/*
* New Method: somfSetValue
*/
typedef void SOMLINK somTP_somf_TCollectibleLong_somfSetValue(somf_TCollectibleLong *somSelf, Environment *ev,
long v);
#pragma linkage(somTP_somf_TCollectibleLong_somfSetValue, system)
typedef somTP_somf_TCollectibleLong_somfSetValue *somTD_somf_TCollectibleLong_somfSetValue;
/*
* Set the value of the long in the TCollectibleLong
*/
#define somMD_somf_TCollectibleLong_somfSetValue "::somf_TCollectibleLong::somfSetValue"
#define somf_TCollectibleLong_somfSetValue(somSelf,ev,v) \
(SOM_Resolve(somSelf, somf_TCollectibleLong, somfSetValue) \
(somSelf,ev,v))
#ifndef SOMGD_somfSetValue
#if (defined(_somfSetValue) || defined(__somfSetValue))
#undef _somfSetValue
#undef __somfSetValue
#define SOMGD_somfSetValue 1
#else
#define _somfSetValue somf_TCollectibleLong_somfSetValue
#endif /* _somfSetValue */
#endif /* SOMGD_somfSetValue */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define somf_TCollectibleLong_somfClone somf_MCollectible_somfClone
#define somf_TCollectibleLong_somfClonePointer somf_MCollectible_somfClonePointer
#define somf_TCollectibleLong_somfIsSame somf_MCollectible_somfIsSame
#define somf_TCollectibleLong_somfIsNotEqual somf_MCollectible_somfIsNotEqual
#define somf_TCollectibleLong_somDefaultInit SOMObject_somDefaultInit
#define somf_TCollectibleLong_somDestruct SOMObject_somDestruct
#define somf_TCollectibleLong_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define somf_TCollectibleLong_somDefaultAssign SOMObject_somDefaultAssign
#define somf_TCollectibleLong_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define somf_TCollectibleLong_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define somf_TCollectibleLong_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define somf_TCollectibleLong_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define somf_TCollectibleLong_somDefaultVAssign SOMObject_somDefaultVAssign
#define somf_TCollectibleLong_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define somf_TCollectibleLong_somFree SOMObject_somFree
#define somf_TCollectibleLong_somUninit SOMObject_somUninit
#define somf_TCollectibleLong_somGetClass SOMObject_somGetClass
#define somf_TCollectibleLong_somGetClassName SOMObject_somGetClassName
#define somf_TCollectibleLong_somGetSize SOMObject_somGetSize
#define somf_TCollectibleLong_somIsA SOMObject_somIsA
#define somf_TCollectibleLong_somIsInstanceOf SOMObject_somIsInstanceOf
#define somf_TCollectibleLong_somRespondsTo SOMObject_somRespondsTo
#define somf_TCollectibleLong_somDispatch SOMObject_somDispatch
#define somf_TCollectibleLong_somClassDispatch SOMObject_somClassDispatch
#define somf_TCollectibleLong_somCastObj SOMObject_somCastObj
#define somf_TCollectibleLong_somResetObj SOMObject_somResetObj
#define somf_TCollectibleLong_somDispatchV SOMObject_somDispatchV
#define somf_TCollectibleLong_somDispatchL SOMObject_somDispatchL
#define somf_TCollectibleLong_somDispatchA SOMObject_somDispatchA
#define somf_TCollectibleLong_somDispatchD SOMObject_somDispatchD
#define somf_TCollectibleLong_somPrintSelf SOMObject_somPrintSelf
#define somf_TCollectibleLong_somDumpSelf SOMObject_somDumpSelf
#define somf_TCollectibleLong_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */
#endif /* SOM_somf_TCollectibleLong_h */