home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / titeratr.idl < prev    next >
Text File  |  1999-02-22  |  3KB  |  90 lines

  1. //#  @(#) 2.10 src/somuc/titeratr.idl, somuc, som2.1 12/26/95 15:38:52 [7/30/96 14:50:07]
  2. //
  3. //   COMPONENT_NAME: somuc
  4. //
  5. //   ORIGINS: 82, 81, 27
  6. //
  7. //
  8. //    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1996,1996  
  9. //   All Rights Reserved
  10. //   Licensed Materials - Property of IBM
  11. //   US Government Users Restricted Rights - Use, duplication or
  12. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  13. //
  14. //   Copyright ⌐ 1988-92 Apple Computer, Inc.  All rights reserved.
  15.  
  16. /*
  17.  * CLASS_NAME: somf_TIterator
  18.  *
  19.  * DESCRIPTION: All of the Utility Classes have corresponding iterator
  20.  *              classes.  An iterator for a particular object will iterate over
  21.  *              all of the objects in a class.  somf_TIterator is the
  22.  *              Abstract base class for all iterators.
  23.  *
  24.  */
  25.  
  26. // This file was generated by the SOM Compiler.
  27. // FileName: TIteratr.id2.
  28. // Generated using:
  29. //     SOM Precompiler spc: 6.13
  30. //     SOM Emitter emitidl.dll: 6.18
  31. #ifndef TIteratr_idl
  32. #define TIteratr_idl
  33.  
  34. #include <somobj.idl>
  35.  
  36. interface somf_MCollectible;
  37.  
  38. interface somf_TIterator : SOMObject
  39. {
  40.  
  41.   const unsigned long  kIteratorOutOfSync              = 0x384;
  42.  
  43.   somf_MCollectible somfNext();
  44.  
  45.   // Retrieve the next object in the collection and return it.  The order that
  46.   // objects are retrieved is in an order that reflects the "ordered-ness"
  47.   // of the collection (or the lack of ordering on the collection elements).
  48.   // If the collection has changed since the last time somfFirst was called,
  49.   // this method will FAIL.
  50.   //#   virtual MCollectible* Next() = 0;
  51.  
  52.   somf_MCollectible somfFirst();
  53.  
  54.   // Reset the iterator and return the first element of the collection.  This
  55.   // resyncs the iterator to the collection if other operations on the
  56.   // collection caused the iterator to be invalidated.
  57.   //#   virtual MCollectible* First() = 0;
  58.  
  59.   void    somfRemove();
  60.   // Remove the current object, the one just returned by First or Next,
  61.   // from the Collection.
  62.  
  63.  
  64.  
  65. #ifdef __SOMIDL__
  66.   implementation {
  67.  
  68.     releaseorder: somfNext,somfFirst,somfRemove;
  69.  
  70.     //# Class Modifiers
  71.     majorversion = 2;
  72.     minorversion = 1;
  73.     filestem = titeratr;
  74.     dllname = "somuc.dll";
  75.  
  76.     passthru C_xh =     ""
  77. "#include <mcollect.xh>";
  78.  
  79.     passthru C_h =      ""
  80. "#include <mcollect.h>";
  81.  
  82.  
  83.     //# Method Modifiers
  84.  
  85.   };
  86. #endif /* __SOMIDL__ */
  87. };
  88.  
  89. #endif  /* TIteratr_idl */
  90.