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 >
C/C++ Source or Header  |  1999-02-22  |  9KB  |  249 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: tclong.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.17
  7.  *     SOM Emitter emith: 2.47
  8.  */
  9.  
  10. /*
  11.  *    COMPONENT_NAME: somuc
  12.  * 
  13.  *    ORIGINS: 82, 81, 27
  14.  * 
  15.  * 
  16.  *     25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1996,1996
  17.  *    All Rights Reserved
  18.  *    Licensed Materials - Property of IBM
  19.  *    US Government Users Restricted Rights - Use, duplication or
  20.  *    disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  21.  * 
  22.  *    Copyright ⌐ 1988, 1989 Apple Computer, Inc. All rights reserved.
  23.  * 
  24.  * CLASS_NAME: somf_TCollectibleLong
  25.  * 
  26.  * DESCRIPTION: This class provides the user with a generic MCollectible
  27.  *              containing a long value.
  28.  * 
  29.  */
  30.  
  31.  
  32. #ifndef SOM_somf_TCollectibleLong_h
  33. #define SOM_somf_TCollectibleLong_h
  34.  
  35.  
  36. #include <som.h>
  37.  
  38. /*
  39.  * -- This emitter treats Method Tokens as Thunks by default.
  40.  * -- Use the sc modifier "nothunks" to change this default
  41.  */
  42. #undef somresolve_
  43. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  44.  
  45. /*
  46.  * Define the class name as an object type
  47.  */
  48. #ifndef somf_TCollectibleLong
  49. #define somf_TCollectibleLong SOMObject
  50. #endif
  51. #include <mcollect.h>
  52.  
  53. /*
  54.  * Start of bindings for IDL types
  55.  */
  56.  
  57. #ifndef SOMClass
  58.     #define SOMClass SOMObject
  59. #endif /* SOMClass */
  60.  
  61. /*
  62.  * End of bindings for IDL types.
  63.  */
  64.  
  65. #define somf_TCollectibleLong_MajorVersion 2
  66. #define somf_TCollectibleLong_MinorVersion 1
  67.  
  68. /*
  69.  * External name shortening if required
  70.  */
  71. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  72. #define somf_TCollectibleLongNewClass c
  73. #pragma linkage(c, system)
  74. #define somf_TCollectibleLongClassData d
  75. #define somf_TCollectibleLongCClassData x
  76. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  77. /*--------------Migration------------*/
  78. #define somf_TCollectibleLong_classObj somf_TCollectibleLongClassData.classObject
  79. #define _somf_TCollectibleLong somf_TCollectibleLong_classObj
  80.  
  81. /*
  82.  * Declare the class creation procedure
  83.  */
  84. SOMEXTERN SOMClass * SOMLINK somf_TCollectibleLongNewClass(integer4 somtmajorVersion,
  85.         integer4 somtminorVersion);
  86. #pragma linkage(somf_TCollectibleLongNewClass, system)
  87.  
  88. /*
  89.  * Declare the class data structure
  90.  */
  91. SOMEXTERN struct somf_TCollectibleLongClassDataStructure {
  92.     SOMClass *classObject;
  93.     somMToken somfGetValue;
  94.     somMToken somfSetValue;
  95.     somMToken somfTCollectibleLongInit;
  96. } SOMDLINK somf_TCollectibleLongClassData;
  97.  
  98. /*
  99.  * Declare the C specific class data structure
  100.  */
  101. SOMEXTERN struct somf_TCollectibleLongCClassDataStructure {
  102.     somMethodTabs parentMtab;
  103.     somDToken instanceDataToken;
  104. } SOMDLINK somf_TCollectibleLongCClassData;
  105.  
  106. /*
  107.  * New and Renew macros for somf_TCollectibleLong
  108.  */
  109. #define somf_TCollectibleLongNew() \
  110.    ( _somf_TCollectibleLong ? \
  111.     _somNew(_somf_TCollectibleLong) \
  112.     : ( somf_TCollectibleLongNewClass(\
  113.         somf_TCollectibleLong_MajorVersion, \
  114.         somf_TCollectibleLong_MinorVersion),\
  115.        _somNew(_somf_TCollectibleLong)))
  116. #define somf_TCollectibleLongRenew(buf) \
  117.    ( _somf_TCollectibleLong ? \
  118.     _somRenew(_somf_TCollectibleLong, buf) \
  119.     : ( somf_TCollectibleLongNewClass(\
  120.         somf_TCollectibleLong_MajorVersion, \
  121.         somf_TCollectibleLong_MinorVersion),\
  122.        _somRenew(_somf_TCollectibleLong, buf)))
  123.  
  124. /*
  125.  * Override method: somInit
  126.  */
  127. #define somf_TCollectibleLong_somInit(somSelf) \
  128.     SOMObject_somInit(somSelf)
  129.  
  130. /*
  131.  * Override method: somfIsEqual
  132.  */
  133. #define somf_TCollectibleLong_somfIsEqual(somSelf,ev,obj) \
  134.     somf_MCollectible_somfIsEqual(somSelf,ev,obj)
  135.  
  136. /*
  137.  * Override method: somfHash
  138.  */
  139. #define somf_TCollectibleLong_somfHash(somSelf,ev) \
  140.     somf_MCollectible_somfHash(somSelf,ev)
  141.  
  142. /*
  143.  * New Method: somfTCollectibleLongInit
  144.  */
  145. typedef somf_TCollectibleLong*   SOMLINK somTP_somf_TCollectibleLong_somfTCollectibleLongInit(somf_TCollectibleLong *somSelf, Environment *ev, 
  146.         long v);
  147. #pragma linkage(somTP_somf_TCollectibleLong_somfTCollectibleLongInit, system)
  148. typedef somTP_somf_TCollectibleLong_somfTCollectibleLongInit *somTD_somf_TCollectibleLong_somfTCollectibleLongInit;
  149. /*
  150.  *  Initializes the new set.
  151.  */
  152. #define somMD_somf_TCollectibleLong_somfTCollectibleLongInit "::somf_TCollectibleLong::somfTCollectibleLongInit"
  153. #define somf_TCollectibleLong_somfTCollectibleLongInit(somSelf,ev,v) \
  154.     (SOM_Resolve(somSelf, somf_TCollectibleLong, somfTCollectibleLongInit) \
  155.     (somSelf,ev,v))
  156. #ifndef SOMGD_somfTCollectibleLongInit
  157.     #if (defined(_somfTCollectibleLongInit) || defined(__somfTCollectibleLongInit))
  158.         #undef _somfTCollectibleLongInit
  159.         #undef __somfTCollectibleLongInit
  160.         #define SOMGD_somfTCollectibleLongInit 1
  161.     #else
  162.         #define _somfTCollectibleLongInit somf_TCollectibleLong_somfTCollectibleLongInit
  163.     #endif /* _somfTCollectibleLongInit */
  164. #endif /* SOMGD_somfTCollectibleLongInit */
  165.  
  166. /*
  167.  * New Method: somfGetValue
  168.  */
  169. typedef long   SOMLINK somTP_somf_TCollectibleLong_somfGetValue(somf_TCollectibleLong *somSelf, Environment *ev);
  170. #pragma linkage(somTP_somf_TCollectibleLong_somfGetValue, system)
  171. typedef somTP_somf_TCollectibleLong_somfGetValue *somTD_somf_TCollectibleLong_somfGetValue;
  172. /*
  173.  *  Determine the value of the long.
  174.  */
  175. #define somMD_somf_TCollectibleLong_somfGetValue "::somf_TCollectibleLong::somfGetValue"
  176. #define somf_TCollectibleLong_somfGetValue(somSelf,ev) \
  177.     (SOM_Resolve(somSelf, somf_TCollectibleLong, somfGetValue) \
  178.     (somSelf,ev))
  179. #ifndef SOMGD_somfGetValue
  180.     #if (defined(_somfGetValue) || defined(__somfGetValue))
  181.         #undef _somfGetValue
  182.         #undef __somfGetValue
  183.         #define SOMGD_somfGetValue 1
  184.     #else
  185.         #define _somfGetValue somf_TCollectibleLong_somfGetValue
  186.     #endif /* _somfGetValue */
  187. #endif /* SOMGD_somfGetValue */
  188.  
  189. /*
  190.  * New Method: somfSetValue
  191.  */
  192. typedef void   SOMLINK somTP_somf_TCollectibleLong_somfSetValue(somf_TCollectibleLong *somSelf, Environment *ev, 
  193.         long v);
  194. #pragma linkage(somTP_somf_TCollectibleLong_somfSetValue, system)
  195. typedef somTP_somf_TCollectibleLong_somfSetValue *somTD_somf_TCollectibleLong_somfSetValue;
  196. /*
  197.  *  Set the value of the long in the TCollectibleLong
  198.  */
  199. #define somMD_somf_TCollectibleLong_somfSetValue "::somf_TCollectibleLong::somfSetValue"
  200. #define somf_TCollectibleLong_somfSetValue(somSelf,ev,v) \
  201.     (SOM_Resolve(somSelf, somf_TCollectibleLong, somfSetValue) \
  202.     (somSelf,ev,v))
  203. #ifndef SOMGD_somfSetValue
  204.     #if (defined(_somfSetValue) || defined(__somfSetValue))
  205.         #undef _somfSetValue
  206.         #undef __somfSetValue
  207.         #define SOMGD_somfSetValue 1
  208.     #else
  209.         #define _somfSetValue somf_TCollectibleLong_somfSetValue
  210.     #endif /* _somfSetValue */
  211. #endif /* SOMGD_somfSetValue */
  212. #ifndef SOM_DONT_USE_INHERITED_MACROS
  213. #define somf_TCollectibleLong_somfClone somf_MCollectible_somfClone
  214. #define somf_TCollectibleLong_somfClonePointer somf_MCollectible_somfClonePointer
  215. #define somf_TCollectibleLong_somfIsSame somf_MCollectible_somfIsSame
  216. #define somf_TCollectibleLong_somfIsNotEqual somf_MCollectible_somfIsNotEqual
  217. #define somf_TCollectibleLong_somDefaultInit SOMObject_somDefaultInit
  218. #define somf_TCollectibleLong_somDestruct SOMObject_somDestruct
  219. #define somf_TCollectibleLong_somDefaultCopyInit SOMObject_somDefaultCopyInit
  220. #define somf_TCollectibleLong_somDefaultAssign SOMObject_somDefaultAssign
  221. #define somf_TCollectibleLong_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
  222. #define somf_TCollectibleLong_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
  223. #define somf_TCollectibleLong_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
  224. #define somf_TCollectibleLong_somDefaultConstAssign SOMObject_somDefaultConstAssign
  225. #define somf_TCollectibleLong_somDefaultVAssign SOMObject_somDefaultVAssign
  226. #define somf_TCollectibleLong_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
  227. #define somf_TCollectibleLong_somFree SOMObject_somFree
  228. #define somf_TCollectibleLong_somUninit SOMObject_somUninit
  229. #define somf_TCollectibleLong_somGetClass SOMObject_somGetClass
  230. #define somf_TCollectibleLong_somGetClassName SOMObject_somGetClassName
  231. #define somf_TCollectibleLong_somGetSize SOMObject_somGetSize
  232. #define somf_TCollectibleLong_somIsA SOMObject_somIsA
  233. #define somf_TCollectibleLong_somIsInstanceOf SOMObject_somIsInstanceOf
  234. #define somf_TCollectibleLong_somRespondsTo SOMObject_somRespondsTo
  235. #define somf_TCollectibleLong_somDispatch SOMObject_somDispatch
  236. #define somf_TCollectibleLong_somClassDispatch SOMObject_somClassDispatch
  237. #define somf_TCollectibleLong_somCastObj SOMObject_somCastObj
  238. #define somf_TCollectibleLong_somResetObj SOMObject_somResetObj
  239. #define somf_TCollectibleLong_somDispatchV SOMObject_somDispatchV
  240. #define somf_TCollectibleLong_somDispatchL SOMObject_somDispatchL
  241. #define somf_TCollectibleLong_somDispatchA SOMObject_somDispatchA
  242. #define somf_TCollectibleLong_somDispatchD SOMObject_somDispatchD
  243. #define somf_TCollectibleLong_somPrintSelf SOMObject_somPrintSelf
  244. #define somf_TCollectibleLong_somDumpSelf SOMObject_somDumpSelf
  245. #define somf_TCollectibleLong_somDumpSelfInt SOMObject_somDumpSelfInt
  246. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  247.  
  248. #endif       /* SOM_somf_TCollectibleLong_h */
  249.