home *** CD-ROM | disk | FTP | other *** search
- #ifndef __RWCOLLTIME_H__
- #define __RWCOLLTIME_H__
- pragma push_align_members(64);
-
- /*
- * RWCollectableTime --- collectable times.
- *
- * $Header: E:/vcs/rw/colltime.h_v 1.3 18 Feb 1992 09:54:16 KEFFER $
- *
- ****************************************************************************
- *
- * Rogue Wave
- * P.O. Box 2328
- * Corvallis, OR 97339
- * Voice: (503) 754-3010 FAX: (503) 757-6650
- *
- * Copyright (C) 1989, 1990, 1991. This software is subject to copyright
- * protection under the laws of the United States and other countries.
- *
- ***************************************************************************
- *
- * $Log: E:/vcs/rw/colltime.h_v $
- *
- * Rev 1.3 18 Feb 1992 09:54:16 KEFFER
- *
- * Rev 1.2 28 Oct 1991 09:08:12 keffer
- * Changed inclusions to <rw/xxx.h>
- *
- * Rev 1.1 09 Oct 1991 18:28:56 keffer
- * Provided RWCollectableTime(const RWTime&) constructor.
- *
- * Rev 1.0 28 Jul 1991 08:14:00 keffer
- * Tools.h++ V4.0.5 PVCS baseline version
- *
- */
-
- #include "rw/rwtime.h"
- #include "rw/collect.h"
-
- class RWExport RWCollectableTime : public RWCollectable, public RWTime {
- public:
- RWCollectableTime();
- RWCollectableTime(clockTy s) : RWTime(s) { }
- RWCollectableTime(const RWTime& t) : RWTime(t) { }
- RWCollectableTime(hourTy h, minuteTy m, secondTy s = 0)
- : RWTime(h, m, s) { }
- RWCollectableTime(const RWDate& d, hourTy h=0, minuteTy m=0, secondTy s=0)
- : RWTime(d, h, m, s) { }
-
- /* Virtual functions inherited from RWCollectable */
- virtual unsigned binaryStoreSize() const {return RWTime::binaryStoreSize();}
- virtual int compareTo(const RWCollectable*) const;
- virtual unsigned hash() const;
- virtual ClassID isA() const {return __RWCOLLECTABLETIME;}
- virtual RWBoolean isEqual(const RWCollectable*) const;
- virtual RWCollectable* newSpecies() const;
- virtual void restoreGuts(RWvistream&);
- virtual void restoreGuts(RWFile&);
- virtual void saveGuts(RWvostream&) const;
- virtual void saveGuts(RWFile&) const;
- };
-
- pragma pop_align_members();
- #endif /* __RWCOLLTIME_H__ */
-