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

  1. #ifndef __RWCOLLTIME_H__
  2. #define __RWCOLLTIME_H__
  3. pragma push_align_members(64);
  4.  
  5. /*
  6.  * RWCollectableTime --- collectable times.
  7.  *
  8.  * $Header:   E:/vcs/rw/colltime.h_v   1.3   18 Feb 1992 09:54:16   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/colltime.h_v  $
  23.  * 
  24.  *    Rev 1.3   18 Feb 1992 09:54:16   KEFFER
  25.  * 
  26.  *    Rev 1.2   28 Oct 1991 09:08:12   keffer
  27.  * Changed inclusions to <rw/xxx.h>
  28.  * 
  29.  *    Rev 1.1   09 Oct 1991 18:28:56   keffer
  30.  * Provided RWCollectableTime(const RWTime&) constructor.
  31.  * 
  32.  *    Rev 1.0   28 Jul 1991 08:14:00   keffer
  33.  * Tools.h++ V4.0.5 PVCS baseline version
  34.  *
  35.  */
  36.  
  37. #include "rw/rwtime.h"
  38. #include "rw/collect.h"
  39.  
  40. class RWExport RWCollectableTime : public RWCollectable, public RWTime {
  41. public:
  42.   RWCollectableTime();
  43.   RWCollectableTime(clockTy s)       : RWTime(s) { }
  44.   RWCollectableTime(const RWTime& t) : RWTime(t) { }
  45.   RWCollectableTime(hourTy h, minuteTy m, secondTy s = 0)
  46.     : RWTime(h, m, s) { }
  47.   RWCollectableTime(const RWDate& d, hourTy h=0, minuteTy m=0, secondTy s=0)
  48.     : RWTime(d, h, m, s)   { }
  49.  
  50.   /* Virtual functions inherited from RWCollectable */
  51.   virtual unsigned        binaryStoreSize() const {return RWTime::binaryStoreSize();}
  52.   virtual int            compareTo(const RWCollectable*) const;
  53.   virtual unsigned        hash() const;
  54.   virtual ClassID        isA() const {return __RWCOLLECTABLETIME;}
  55.   virtual RWBoolean        isEqual(const RWCollectable*) const;
  56.   virtual RWCollectable*    newSpecies() const;
  57.   virtual void            restoreGuts(RWvistream&);
  58.   virtual void            restoreGuts(RWFile&);
  59.   virtual void            saveGuts(RWvostream&) const;
  60.   virtual void            saveGuts(RWFile&) const;
  61. };
  62.  
  63. pragma pop_align_members();
  64. #endif /* __RWCOLLTIME_H__ */
  65.