home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / tassoc.h < prev    next >
C/C++ Source or Header  |  1999-02-22  |  11KB  |  325 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: tassoc.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 Apple Computer, Inc. All rights reserved.
  23.  * 
  24.  * CLASS_NAME: somf_TAssoc
  25.  * 
  26.  * DESCRIPTION: A somf_TAssoc is used to hold a pair of objects.  Typically, these
  27.  *              structures are owned by some other higher level object
  28.  *              (e.g. a dictionary) and are usually not returned to the user.
  29.  * 
  30.  *  This file was generated by the SOM Compiler.
  31.  *  FileName: TAssoc.id2.
  32.  *  Generated using:
  33.  *      SOM Precompiler spc: 6.13
  34.  *      SOM Emitter emitidl.dll: 6.18
  35.  */
  36.  
  37.  
  38. #ifndef SOM_somf_TAssoc_h
  39. #define SOM_somf_TAssoc_h
  40.  
  41.  
  42. #include <som.h>
  43.  
  44. /*
  45.  * -- This emitter treats Method Tokens as Thunks by default.
  46.  * -- Use the sc modifier "nothunks" to change this default
  47.  */
  48. #undef somresolve_
  49. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  50.  
  51. /*
  52.  * Define the class name as an object type
  53.  */
  54. #ifndef somf_TAssoc
  55. #define somf_TAssoc SOMObject
  56. #endif
  57. #include <mcollect.h>
  58.  
  59. /*
  60.  * Start of bindings for IDL types
  61.  */
  62.  
  63. #ifndef SOMClass
  64.     #define SOMClass SOMObject
  65. #endif /* SOMClass */
  66.  
  67. /*
  68.  * End of bindings for IDL types.
  69.  */
  70.  
  71. #define somf_TAssoc_MajorVersion 2
  72. #define somf_TAssoc_MinorVersion 1
  73.  
  74. /*
  75.  * External name shortening if required
  76.  */
  77. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  78. #define somf_TAssocNewClass c
  79. #pragma linkage(c, system)
  80. #define somf_TAssocClassData d
  81. #define somf_TAssocCClassData x
  82. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  83. /*--------------Migration------------*/
  84. #define somf_TAssoc_classObj somf_TAssocClassData.classObject
  85. #define _somf_TAssoc somf_TAssoc_classObj
  86.  
  87. /*
  88.  * Declare the class creation procedure
  89.  */
  90. SOMEXTERN SOMClass * SOMLINK somf_TAssocNewClass(integer4 somtmajorVersion,
  91.         integer4 somtminorVersion);
  92. #pragma linkage(somf_TAssocNewClass, system)
  93.  
  94. /*
  95.  * Declare the class data structure
  96.  */
  97. SOMEXTERN struct somf_TAssocClassDataStructure {
  98.     SOMClass *classObject;
  99.     somMToken somfGetKey;
  100.     somMToken somfGetValue;
  101.     somMToken somfSetKey;
  102.     somMToken somfSetValue;
  103.     somMToken somfTAssocInitMM;
  104.     somMToken somfTAssocInitM;
  105. } SOMDLINK somf_TAssocClassData;
  106.  
  107. /*
  108.  * Declare the C specific class data structure
  109.  */
  110. SOMEXTERN struct somf_TAssocCClassDataStructure {
  111.     somMethodTabs parentMtab;
  112.     somDToken instanceDataToken;
  113. } SOMDLINK somf_TAssocCClassData;
  114.  
  115. /*
  116.  * New and Renew macros for somf_TAssoc
  117.  */
  118. #define somf_TAssocNew() \
  119.    ( _somf_TAssoc ? \
  120.     _somNew(_somf_TAssoc) \
  121.     : ( somf_TAssocNewClass(\
  122.         somf_TAssoc_MajorVersion, \
  123.         somf_TAssoc_MinorVersion),\
  124.        _somNew(_somf_TAssoc)))
  125. #define somf_TAssocRenew(buf) \
  126.    ( _somf_TAssoc ? \
  127.     _somRenew(_somf_TAssoc, buf) \
  128.     : ( somf_TAssocNewClass(\
  129.         somf_TAssoc_MajorVersion, \
  130.         somf_TAssoc_MinorVersion),\
  131.        _somRenew(_somf_TAssoc, buf)))
  132.  
  133. /*
  134.  * Override method: somInit
  135.  */
  136. #define somf_TAssoc_somInit(somSelf) \
  137.     SOMObject_somInit(somSelf)
  138.  
  139. /*
  140.  * Override method: somUninit
  141.  */
  142. #define somf_TAssoc_somUninit(somSelf) \
  143.     SOMObject_somUninit(somSelf)
  144.  
  145. /*
  146.  * New Method: somfTAssocInitMM
  147.  */
  148. typedef somf_TAssoc*   SOMLINK somTP_somf_TAssoc_somfTAssocInitMM(somf_TAssoc *somSelf, Environment *ev, 
  149.         somf_MCollectible* k, 
  150.         somf_MCollectible* v);
  151. #pragma linkage(somTP_somf_TAssoc_somfTAssocInitMM, system)
  152. typedef somTP_somf_TAssoc_somfTAssocInitMM *somTD_somf_TAssoc_somfTAssocInitMM;
  153. /*
  154.  *  Initialize somf_TAssoc to an existing key (k) and value (v).
  155.  */
  156. #define somMD_somf_TAssoc_somfTAssocInitMM "::somf_TAssoc::somfTAssocInitMM"
  157. #define somf_TAssoc_somfTAssocInitMM(somSelf,ev,k,v) \
  158.     (SOM_Resolve(somSelf, somf_TAssoc, somfTAssocInitMM) \
  159.     (somSelf,ev,k,v))
  160. #ifndef SOMGD_somfTAssocInitMM
  161.     #if (defined(_somfTAssocInitMM) || defined(__somfTAssocInitMM))
  162.         #undef _somfTAssocInitMM
  163.         #undef __somfTAssocInitMM
  164.         #define SOMGD_somfTAssocInitMM 1
  165.     #else
  166.         #define _somfTAssocInitMM somf_TAssoc_somfTAssocInitMM
  167.     #endif /* _somfTAssocInitMM */
  168. #endif /* SOMGD_somfTAssocInitMM */
  169.  
  170. /*
  171.  * New Method: somfTAssocInitM
  172.  */
  173. typedef somf_TAssoc*   SOMLINK somTP_somf_TAssoc_somfTAssocInitM(somf_TAssoc *somSelf, Environment *ev, 
  174.         somf_MCollectible* k);
  175. #pragma linkage(somTP_somf_TAssoc_somfTAssocInitM, system)
  176. typedef somTP_somf_TAssoc_somfTAssocInitM *somTD_somf_TAssoc_somfTAssocInitM;
  177. /*
  178.  *  Initialize somf_TAssoc to an existing key (k).  The value is set to SOMF_NIL.
  179.  */
  180. #define somMD_somf_TAssoc_somfTAssocInitM "::somf_TAssoc::somfTAssocInitM"
  181. #define somf_TAssoc_somfTAssocInitM(somSelf,ev,k) \
  182.     (SOM_Resolve(somSelf, somf_TAssoc, somfTAssocInitM) \
  183.     (somSelf,ev,k))
  184. #ifndef SOMGD_somfTAssocInitM
  185.     #if (defined(_somfTAssocInitM) || defined(__somfTAssocInitM))
  186.         #undef _somfTAssocInitM
  187.         #undef __somfTAssocInitM
  188.         #define SOMGD_somfTAssocInitM 1
  189.     #else
  190.         #define _somfTAssocInitM somf_TAssoc_somfTAssocInitM
  191.     #endif /* _somfTAssocInitM */
  192. #endif /* SOMGD_somfTAssocInitM */
  193.  
  194. /*
  195.  * New Method: somfGetKey
  196.  */
  197. typedef somf_MCollectible*   SOMLINK somTP_somf_TAssoc_somfGetKey(somf_TAssoc *somSelf, Environment *ev);
  198. #pragma linkage(somTP_somf_TAssoc_somfGetKey, system)
  199. typedef somTP_somf_TAssoc_somfGetKey *somTD_somf_TAssoc_somfGetKey;
  200. /*
  201.  *  Get the key (fKey) to the associated pair.
  202.  */
  203. #define somMD_somf_TAssoc_somfGetKey "::somf_TAssoc::somfGetKey"
  204. #define somf_TAssoc_somfGetKey(somSelf,ev) \
  205.     (SOM_Resolve(somSelf, somf_TAssoc, somfGetKey) \
  206.     (somSelf,ev))
  207. #ifndef SOMGD_somfGetKey
  208.     #if (defined(_somfGetKey) || defined(__somfGetKey))
  209.         #undef _somfGetKey
  210.         #undef __somfGetKey
  211.         #define SOMGD_somfGetKey 1
  212.     #else
  213.         #define _somfGetKey somf_TAssoc_somfGetKey
  214.     #endif /* _somfGetKey */
  215. #endif /* SOMGD_somfGetKey */
  216.  
  217. /*
  218.  * New Method: somfGetValue
  219.  */
  220. typedef somf_MCollectible*   SOMLINK somTP_somf_TAssoc_somfGetValue(somf_TAssoc *somSelf, Environment *ev);
  221. #pragma linkage(somTP_somf_TAssoc_somfGetValue, system)
  222. typedef somTP_somf_TAssoc_somfGetValue *somTD_somf_TAssoc_somfGetValue;
  223. /*
  224.  *  Get the value (fValue) to the associated pair.
  225.  */
  226. #define somMD_somf_TAssoc_somfGetValue "::somf_TAssoc::somfGetValue"
  227. #define somf_TAssoc_somfGetValue(somSelf,ev) \
  228.     (SOM_Resolve(somSelf, somf_TAssoc, somfGetValue) \
  229.     (somSelf,ev))
  230. #ifndef SOMGD_somfGetValue
  231.     #if (defined(_somfGetValue) || defined(__somfGetValue))
  232.         #undef _somfGetValue
  233.         #undef __somfGetValue
  234.         #define SOMGD_somfGetValue 1
  235.     #else
  236.         #define _somfGetValue somf_TAssoc_somfGetValue
  237.     #endif /* _somfGetValue */
  238. #endif /* SOMGD_somfGetValue */
  239.  
  240. /*
  241.  * New Method: somfSetKey
  242.  */
  243. typedef void   SOMLINK somTP_somf_TAssoc_somfSetKey(somf_TAssoc *somSelf, Environment *ev, 
  244.         somf_MCollectible* k);
  245. #pragma linkage(somTP_somf_TAssoc_somfSetKey, system)
  246. typedef somTP_somf_TAssoc_somfSetKey *somTD_somf_TAssoc_somfSetKey;
  247. /*
  248.  *  Set the key (fKey) to the associated pair.
  249.  */
  250. #define somMD_somf_TAssoc_somfSetKey "::somf_TAssoc::somfSetKey"
  251. #define somf_TAssoc_somfSetKey(somSelf,ev,k) \
  252.     (SOM_Resolve(somSelf, somf_TAssoc, somfSetKey) \
  253.     (somSelf,ev,k))
  254. #ifndef SOMGD_somfSetKey
  255.     #if (defined(_somfSetKey) || defined(__somfSetKey))
  256.         #undef _somfSetKey
  257.         #undef __somfSetKey
  258.         #define SOMGD_somfSetKey 1
  259.     #else
  260.         #define _somfSetKey somf_TAssoc_somfSetKey
  261.     #endif /* _somfSetKey */
  262. #endif /* SOMGD_somfSetKey */
  263.  
  264. /*
  265.  * New Method: somfSetValue
  266.  */
  267. typedef void   SOMLINK somTP_somf_TAssoc_somfSetValue(somf_TAssoc *somSelf, Environment *ev, 
  268.         somf_MCollectible* v);
  269. #pragma linkage(somTP_somf_TAssoc_somfSetValue, system)
  270. typedef somTP_somf_TAssoc_somfSetValue *somTD_somf_TAssoc_somfSetValue;
  271. /*
  272.  *  Set the value (fValue) to the associated pair.
  273.  */
  274. #define somMD_somf_TAssoc_somfSetValue "::somf_TAssoc::somfSetValue"
  275. #define somf_TAssoc_somfSetValue(somSelf,ev,v) \
  276.     (SOM_Resolve(somSelf, somf_TAssoc, somfSetValue) \
  277.     (somSelf,ev,v))
  278. #ifndef SOMGD_somfSetValue
  279.     #if (defined(_somfSetValue) || defined(__somfSetValue))
  280.         #undef _somfSetValue
  281.         #undef __somfSetValue
  282.         #define SOMGD_somfSetValue 1
  283.     #else
  284.         #define _somfSetValue somf_TAssoc_somfSetValue
  285.     #endif /* _somfSetValue */
  286. #endif /* SOMGD_somfSetValue */
  287. #ifndef SOM_DONT_USE_INHERITED_MACROS
  288. #define somf_TAssoc_somfClone somf_MCollectible_somfClone
  289. #define somf_TAssoc_somfClonePointer somf_MCollectible_somfClonePointer
  290. #define somf_TAssoc_somfHash somf_MCollectible_somfHash
  291. #define somf_TAssoc_somfIsEqual somf_MCollectible_somfIsEqual
  292. #define somf_TAssoc_somfIsSame somf_MCollectible_somfIsSame
  293. #define somf_TAssoc_somfIsNotEqual somf_MCollectible_somfIsNotEqual
  294. #define somf_TAssoc_somDefaultInit SOMObject_somDefaultInit
  295. #define somf_TAssoc_somDestruct SOMObject_somDestruct
  296. #define somf_TAssoc_somDefaultCopyInit SOMObject_somDefaultCopyInit
  297. #define somf_TAssoc_somDefaultAssign SOMObject_somDefaultAssign
  298. #define somf_TAssoc_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
  299. #define somf_TAssoc_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
  300. #define somf_TAssoc_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
  301. #define somf_TAssoc_somDefaultConstAssign SOMObject_somDefaultConstAssign
  302. #define somf_TAssoc_somDefaultVAssign SOMObject_somDefaultVAssign
  303. #define somf_TAssoc_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
  304. #define somf_TAssoc_somFree SOMObject_somFree
  305. #define somf_TAssoc_somGetClass SOMObject_somGetClass
  306. #define somf_TAssoc_somGetClassName SOMObject_somGetClassName
  307. #define somf_TAssoc_somGetSize SOMObject_somGetSize
  308. #define somf_TAssoc_somIsA SOMObject_somIsA
  309. #define somf_TAssoc_somIsInstanceOf SOMObject_somIsInstanceOf
  310. #define somf_TAssoc_somRespondsTo SOMObject_somRespondsTo
  311. #define somf_TAssoc_somDispatch SOMObject_somDispatch
  312. #define somf_TAssoc_somClassDispatch SOMObject_somClassDispatch
  313. #define somf_TAssoc_somCastObj SOMObject_somCastObj
  314. #define somf_TAssoc_somResetObj SOMObject_somResetObj
  315. #define somf_TAssoc_somDispatchV SOMObject_somDispatchV
  316. #define somf_TAssoc_somDispatchL SOMObject_somDispatchL
  317. #define somf_TAssoc_somDispatchA SOMObject_somDispatchA
  318. #define somf_TAssoc_somDispatchD SOMObject_somDispatchD
  319. #define somf_TAssoc_somPrintSelf SOMObject_somPrintSelf
  320. #define somf_TAssoc_somDumpSelf SOMObject_somDumpSelf
  321. #define somf_TAssoc_somDumpSelfInt SOMObject_somDumpSelfInt
  322. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  323.  
  324. #endif       /* SOM_somf_TAssoc_h */
  325.