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

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: tdictitr.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_TDictionaryIterator
  25.  * 
  26.  * DESCRIPTION: An iterator for somf_TDictionary that will iterate over all of the
  27.  *              objects in a dictionary.
  28.  * 
  29.  */
  30.  
  31.  
  32. #ifndef SOM_somf_TDictionaryIterator_h
  33. #define SOM_somf_TDictionaryIterator_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_TDictionaryIterator
  49. #define somf_TDictionaryIterator SOMObject
  50. #endif
  51. #include <titeratr.h>
  52.  
  53. /*
  54.  * Start of bindings for IDL types
  55.  */
  56.  
  57. #ifndef SOMClass
  58.     #define SOMClass SOMObject
  59. #endif /* SOMClass */
  60. #ifndef somf_MCollectible
  61.     #define somf_MCollectible SOMObject
  62. #endif /* somf_MCollectible */
  63. #ifndef somf_THashTableIterator
  64.     #define somf_THashTableIterator SOMObject
  65. #endif /* somf_THashTableIterator */
  66. #ifndef somf_TDictionary
  67.     #define somf_TDictionary SOMObject
  68. #endif /* somf_TDictionary */
  69.  
  70. /*
  71.  * End of bindings for IDL types.
  72.  */
  73.  
  74. /*
  75.  * Passthru lines: File: "C.h", "after"
  76.  */
  77.  
  78. #include <tdict.h>
  79.  
  80. #define somf_TDictionaryIterator_MajorVersion 2
  81. #define somf_TDictionaryIterator_MinorVersion 1
  82.  
  83. /*
  84.  * External name shortening if required
  85.  */
  86. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  87. #define somf_TDictionaryIteratorNewClass c
  88. #pragma linkage(c, system)
  89. #define somf_TDictionaryIteratorClassData d
  90. #define somf_TDictionaryIteratorCClassData x
  91. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  92. /*--------------Migration------------*/
  93. #define somf_TDictionaryIterator_classObj somf_TDictionaryIteratorClassData.classObject
  94. #define _somf_TDictionaryIterator somf_TDictionaryIterator_classObj
  95.  
  96. /*
  97.  * Declare the class creation procedure
  98.  */
  99. SOMEXTERN SOMClass * SOMLINK somf_TDictionaryIteratorNewClass(integer4 somtmajorVersion,
  100.         integer4 somtminorVersion);
  101. #pragma linkage(somf_TDictionaryIteratorNewClass, system)
  102.  
  103. /*
  104.  * Declare the class data structure
  105.  */
  106. SOMEXTERN struct somf_TDictionaryIteratorClassDataStructure {
  107.     SOMClass *classObject;
  108.     somMToken somfTDictionaryIteratorInit;
  109. } SOMDLINK somf_TDictionaryIteratorClassData;
  110.  
  111. /*
  112.  * Declare the C specific class data structure
  113.  */
  114. SOMEXTERN struct somf_TDictionaryIteratorCClassDataStructure {
  115.     somMethodTabs parentMtab;
  116.     somDToken instanceDataToken;
  117. } SOMDLINK somf_TDictionaryIteratorCClassData;
  118.  
  119. /*
  120.  * New and Renew macros for somf_TDictionaryIterator
  121.  */
  122. #define somf_TDictionaryIteratorNew() \
  123.    ( _somf_TDictionaryIterator ? \
  124.     _somNew(_somf_TDictionaryIterator) \
  125.     : ( somf_TDictionaryIteratorNewClass(\
  126.         somf_TDictionaryIterator_MajorVersion, \
  127.         somf_TDictionaryIterator_MinorVersion),\
  128.        _somNew(_somf_TDictionaryIterator)))
  129. #define somf_TDictionaryIteratorRenew(buf) \
  130.    ( _somf_TDictionaryIterator ? \
  131.     _somRenew(_somf_TDictionaryIterator, buf) \
  132.     : ( somf_TDictionaryIteratorNewClass(\
  133.         somf_TDictionaryIterator_MajorVersion, \
  134.         somf_TDictionaryIterator_MinorVersion),\
  135.        _somRenew(_somf_TDictionaryIterator, buf)))
  136.  
  137. /*
  138.  * Override method: somInit
  139.  */
  140. #define somf_TDictionaryIterator_somInit(somSelf) \
  141.     SOMObject_somInit(somSelf)
  142.  
  143. /*
  144.  * Override method: somUninit
  145.  */
  146. #define somf_TDictionaryIterator_somUninit(somSelf) \
  147.     SOMObject_somUninit(somSelf)
  148.  
  149. /*
  150.  * Override method: somfNext
  151.  */
  152. #define somf_TDictionaryIterator_somfNext(somSelf,ev) \
  153.     somf_TIterator_somfNext(somSelf,ev)
  154.  
  155. /*
  156.  * Override method: somfFirst
  157.  */
  158. #define somf_TDictionaryIterator_somfFirst(somSelf,ev) \
  159.     somf_TIterator_somfFirst(somSelf,ev)
  160.  
  161. /*
  162.  * Override method: somfRemove
  163.  */
  164. #define somf_TDictionaryIterator_somfRemove(somSelf,ev) \
  165.     somf_TIterator_somfRemove(somSelf,ev)
  166.  
  167. /*
  168.  * New Method: somfTDictionaryIteratorInit
  169.  */
  170. typedef somf_TDictionaryIterator*   SOMLINK somTP_somf_TDictionaryIterator_somfTDictionaryIteratorInit(somf_TDictionaryIterator *somSelf, Environment *ev, 
  171.         somf_TDictionary* h);
  172. #pragma linkage(somTP_somf_TDictionaryIterator_somfTDictionaryIteratorInit, system)
  173. typedef somTP_somf_TDictionaryIterator_somfTDictionaryIteratorInit *somTD_somf_TDictionaryIterator_somfTDictionaryIteratorInit;
  174. /*
  175.  *  Initializes the new dictionary iterator.
  176.  */
  177. #define somMD_somf_TDictionaryIterator_somfTDictionaryIteratorInit "::somf_TDictionaryIterator::somfTDictionaryIteratorInit"
  178. #define somf_TDictionaryIterator_somfTDictionaryIteratorInit(somSelf,ev,h) \
  179.     (SOM_Resolve(somSelf, somf_TDictionaryIterator, somfTDictionaryIteratorInit) \
  180.     (somSelf,ev,h))
  181. #ifndef SOMGD_somfTDictionaryIteratorInit
  182.     #if (defined(_somfTDictionaryIteratorInit) || defined(__somfTDictionaryIteratorInit))
  183.         #undef _somfTDictionaryIteratorInit
  184.         #undef __somfTDictionaryIteratorInit
  185.         #define SOMGD_somfTDictionaryIteratorInit 1
  186.     #else
  187.         #define _somfTDictionaryIteratorInit somf_TDictionaryIterator_somfTDictionaryIteratorInit
  188.     #endif /* _somfTDictionaryIteratorInit */
  189. #endif /* SOMGD_somfTDictionaryIteratorInit */
  190. #ifndef SOM_DONT_USE_INHERITED_MACROS
  191. #define somf_TDictionaryIterator_somDefaultInit SOMObject_somDefaultInit
  192. #define somf_TDictionaryIterator_somDestruct SOMObject_somDestruct
  193. #define somf_TDictionaryIterator_somDefaultCopyInit SOMObject_somDefaultCopyInit
  194. #define somf_TDictionaryIterator_somDefaultAssign SOMObject_somDefaultAssign
  195. #define somf_TDictionaryIterator_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
  196. #define somf_TDictionaryIterator_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
  197. #define somf_TDictionaryIterator_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
  198. #define somf_TDictionaryIterator_somDefaultConstAssign SOMObject_somDefaultConstAssign
  199. #define somf_TDictionaryIterator_somDefaultVAssign SOMObject_somDefaultVAssign
  200. #define somf_TDictionaryIterator_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
  201. #define somf_TDictionaryIterator_somFree SOMObject_somFree
  202. #define somf_TDictionaryIterator_somGetClass SOMObject_somGetClass
  203. #define somf_TDictionaryIterator_somGetClassName SOMObject_somGetClassName
  204. #define somf_TDictionaryIterator_somGetSize SOMObject_somGetSize
  205. #define somf_TDictionaryIterator_somIsA SOMObject_somIsA
  206. #define somf_TDictionaryIterator_somIsInstanceOf SOMObject_somIsInstanceOf
  207. #define somf_TDictionaryIterator_somRespondsTo SOMObject_somRespondsTo
  208. #define somf_TDictionaryIterator_somDispatch SOMObject_somDispatch
  209. #define somf_TDictionaryIterator_somClassDispatch SOMObject_somClassDispatch
  210. #define somf_TDictionaryIterator_somCastObj SOMObject_somCastObj
  211. #define somf_TDictionaryIterator_somResetObj SOMObject_somResetObj
  212. #define somf_TDictionaryIterator_somDispatchV SOMObject_somDispatchV
  213. #define somf_TDictionaryIterator_somDispatchL SOMObject_somDispatchL
  214. #define somf_TDictionaryIterator_somDispatchA SOMObject_somDispatchA
  215. #define somf_TDictionaryIterator_somDispatchD SOMObject_somDispatchD
  216. #define somf_TDictionaryIterator_somPrintSelf SOMObject_somPrintSelf
  217. #define somf_TDictionaryIterator_somDumpSelf SOMObject_somDumpSelf
  218. #define somf_TDictionaryIterator_somDumpSelfInt SOMObject_somDumpSelfInt
  219. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  220.  
  221. #endif       /* SOM_somf_TDictionaryIterator_h */
  222.