home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / bento / headers / pftypst.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-02  |  1.9 KB  |  76 lines

  1. /*
  2.     File:        PfTypSt.h
  3.  
  4.     Contains:    Class definition for XMPPlatformTypeSet.
  5.  
  6.     Written by:    Vincent Lo
  7.  
  8.     Copyright:    ⌐ 1993 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <3>     2/15/94    CC        Bug #1142949 - Standardize method names,
  13.                                     remove Copy method.
  14.          <2>      2/9/94    Té        made destructor explicitly virtual to
  15.                                     pacify ASLM
  16.          <1>      2/4/94    VL        first checked in
  17.  
  18.     To Do:
  19.  
  20. */
  21.  
  22. #ifndef _PFTYPST_
  23. #define _PFTYPST_
  24.  
  25. #ifndef _XMPTYPES_
  26. #include "XMPTypes.h"
  27. #endif
  28.  
  29. //=====================================================================================
  30. // Classes defined in this interface
  31. //=====================================================================================
  32. class XMPPlatformTypeSet;
  33.  
  34. //=====================================================================================
  35. // Classes used by this interface
  36. //=====================================================================================
  37. class OrderedCollection;
  38.  
  39. //=====================================================================================
  40. // Class XMPPlatformTypeSet
  41. //=====================================================================================
  42.  
  43. #define kXMPPlatformTypeSetID "appl:xmpplatformtypeset$class,1.0.0"
  44.  
  45. class XMPPlatformTypeSet
  46. {
  47.     friend class XMPPlatformTypeSetIterator;
  48.     
  49. public:
  50.  
  51.     XMPPlatformTypeSet();
  52.     
  53.     virtual ~XMPPlatformTypeSet();
  54.         
  55.     XMPMethod void Add(XMPPlatformType type);
  56.     
  57.     XMPMethod void Union(XMPPlatformTypeSet* typeSet);
  58.  
  59.     XMPMethod void Remove(XMPPlatformType type);
  60.         
  61.     XMPMethod void Difference(XMPPlatformTypeSet* typeSet);
  62.     
  63.     XMPMethod XMPBoolean Contains(XMPPlatformType type);
  64.     
  65.     XMPMethod XMPULong Count();
  66.         
  67.     XMPVMethod XMPPlatformTypeSetIterator* CreatePlatformTypeSetIterator();
  68.  
  69. private:
  70.  
  71.     OrderedCollection*    fSet;
  72.  
  73. };
  74.  
  75. #endif    // _PFTYPST_
  76.