home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample PMSAM / PMSAM Framework / Common / CResourceIterator.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  911 b   |  46 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        CResourceIterator.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    Tim Harnett
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <1>    10/25/94    TMH        used is TX25Channel::MakeConnection()
  13.                 10/25/94    TMH        xxx put comment here xxx
  14.  
  15.     To Do:
  16. */
  17.  
  18. #ifndef __CResourceIterator__
  19. #define __CResourceIterator__
  20.  
  21. #ifndef __RESOURCES__
  22. #include "Resources.h"
  23. #endif
  24.  
  25.  
  26. //--------------------------------------
  27. //    C R e s o u r c e I t e r a t o r
  28. //--------------------------------------
  29.  
  30.  
  31. class CResourceIterator {
  32. public:
  33.     CResourceIterator(ResType resType,short refNum = 0);    // defaults to user the App's resource fork.
  34.             Handle     FirstResource();
  35.     virtual Boolean More();
  36.             Handle    NextResource();
  37. protected:
  38.     short            fRefNum;        // Assumes the file is open.
  39.     ResType            fResType;
  40.     short            fCount;
  41.     short            fIndex;
  42. };
  43.  
  44.  
  45. #endif __CResourceIterator__
  46.