home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / S0 < prev    next >
Encoding:
Text File  |  1992-06-07  |  1.8 KB  |  60 lines

  1. #ifndef __RWCOLLINT_H__
  2. #define __RWCOLLINT_H__
  3. pragma push_align_members(64);
  4.  
  5. /*
  6.  * RWCollectableInt --- RWCollectable Integers.
  7.  *
  8.  * $Header:   E:/vcs/rw/collint.h_v   1.2   18 Feb 1992 09:54:14   KEFFER  $
  9.  *
  10.  ****************************************************************************
  11.  *
  12.  * Rogue Wave 
  13.  * P.O. Box 2328
  14.  * Corvallis, OR 97339
  15.  * Voice: (503) 754-3010    FAX: (503) 757-6650
  16.  *
  17.  * Copyright (C) 1989, 1990, 1991. This software is subject to copyright 
  18.  * protection under the laws of the United States and other countries.
  19.  *
  20.  ***************************************************************************
  21.  *
  22.  * $Log:   E:/vcs/rw/collint.h_v  $
  23.  * 
  24.  *    Rev 1.2   18 Feb 1992 09:54:14   KEFFER
  25.  * 
  26.  *    Rev 1.1   28 Oct 1991 09:08:10   keffer
  27.  * Changed inclusions to <rw/xxx.h>
  28.  * 
  29.  *    Rev 1.0   28 Jul 1991 08:13:50   keffer
  30.  * Tools.h++ V4.0.5 PVCS baseline version
  31.  *
  32.  */
  33.  
  34. #include "rw/rwint.h"
  35. #include "rw/collect.h"
  36.  
  37. class RWExport RWCollectableInt : public RWCollectable, public RWInteger {
  38. public:
  39.   RWCollectableInt();
  40.   RWCollectableInt(int j) :     RWInteger(j) { }
  41.   RWCollectableInt(const RWCollectableInt& ci) : RWInteger(ci.value()) { }
  42.  
  43.   RWBoolean            operator==(const RWCollectableInt& c) const
  44.     {return value()==c.value();}
  45.  
  46.   virtual unsigned        binaryStoreSize() const {return RWInteger::binaryStoreSize();}
  47.   virtual int            compareTo(const RWCollectable*) const;
  48.   virtual unsigned        hash() const;
  49.   virtual ClassID        isA() const {return __RWCOLLECTABLEINT;}
  50.   virtual RWBoolean        isEqual(const RWCollectable*) const;
  51.   virtual RWCollectable*    newSpecies() const;
  52.   virtual void            restoreGuts(RWvistream&);
  53.   virtual void            restoreGuts(RWFile&);
  54.   virtual void            saveGuts(RWvostream&) const;
  55.   virtual void            saveGuts(RWFile&) const;
  56. };      
  57.  
  58. pragma pop_align_members();
  59. #endif /* __RWCOLLINT_H__ */
  60.