Module: Essential Tools Module Group: Date and Time Classes
RWCollectable RWCollectableDate RWDate
binaryStoreSize() compareTo() hash() |
isA() isEqual() restoreGuts() |
RWCollectableDate() saveGuts() stringID() |
~RWCollectableDate() |
typedef RWCollectableDate Date; // Smalltalk typedef #include <rw/colldate.h> RWCollectableDate d;
NOTE -- RWCollectableDate and RWDate are deprecated and no longer supported. They may be removed from future releases. Please use RWDateTimeCollectable and RWDateTime.
Collectable Dates. Inherits from classes RWDate and RWCollectable. This class is useful when dates are used as keys in the "dictionary" collection classes, or if dates are stored and retrieved as RWCollectables. The virtual functions of the base class RWCollectable have been redefined.
Polymorphic
RWCollectableDate(); RWCollectableDate(unsigned long julianDate); RWCollectableDate(unsigned day, unsigned year); RWCollectableDate(unsigned day, unsigned month, unsigned year); RWCollectableDate(unsigned day, const char* mon, unsigned year,const RWLocale& locale = RWLocale::global()); RWCollectableDate(istream& s, const RWLocale& locale = RWLocale::global()); RWCollectableDate(const RWCString& str,const RWLocale& locale = RWLocale::global()); RWCollectableDate(const RWTime& t, const RWZone& zone = RWZone::local()); RWCollectableDate(const struct tm* tmb); RWCollectableDate(const RWDate& d);
Calls the corresponding constructor of the base class RWDate.
virtual ~RWCollectableDate();
Empty destructor.
virtual RWspace binaryStoreSize() const;
Redefined from class RWCollectable.
virtual int compareTo(const RWCollectable* c) const;
Redefined from class RWCollectable. Returns the results of calling RWDate::compareTo.
virtual unsigned hash() const;
Redefined from class RWCollectable. Returns the results of calling RWDate::hash().
virtual RWClassID isA() const;
Redefined from class RWCollectable to return __RWCOLLECTABLEDATE.
virtual bool isEqual(const RWCollectable* t) const;
Redefined from class RWCollectable. Returns the results of calling operator==() for the base class RWDate by using appropriate casts.
virtual void restoreGuts(RWvistream&); virtual void restoreGuts(RWFile&); virtual void saveGuts(RWvostream&) const; virtual void saveGuts(RWFile&) const;
Redefined from class RWCollectable.
RWStringID stringID();
(acts virtual) Inherited from class RWCollectable.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.