Module: Essential Tools Module Group: Date and Time Classes
RWDateTime RWCollectableDateTime RWCollectable
compareTo() hash() isA() |
isEqual() restoreGuts() RWCollectableDateTime() |
RWspace saveGuts() stringID() |
#include <rw/tools/ctdatetime.h> RWCollectableDateTime d;
Collectable RWDateTimes. Inherits from classes RWDateTime and RWCollectable. This class is useful when date/time objects are used as keys in the "dictionary" collection classes, or if date/time objects are stored and retrieved as RWCollectables. Redefines the virtual functions of the base class RWCollectable.
Polymorphic
RWCollectableDateTime(InitialState init_state = invalid); RWCollectableDateTime(const RWDateTime& dt); RWCollectableDateTime(rwint64 msec); RWCollectableDateTime(const struct tm* t, unsigned ms=0,const RWZone& zone = RWZone::local()); RWCollectableDateTime(const RWTime& t, unsigned ms=0);
WARNING: This method is deprecated, and is no longer supported.
RWCollectableDateTime(const RWDate& d, unsigned h=0, unsigned m=0, unsigned s=0, unsigned ms=0, const RWZone& zone = RWZone::local());
WARNING: This method is deprecated, and is no longer supported.
RWCollectableDateTime(unsigned day, const char* month, unsigned year, unsigned h, unsigned m, unsigned s, unsigned ms, const RWLocale& loc = RWLocale::global(), const RWZone& zone = RWZone::local()); RWCollectableDateTime(unsigned d, unsigned mo, unsigned y, unsigned h=0, unsigned m=0, unsigned s=0, unsigned ms=0,
const RWZone& zone = RWZone::local()); RWCollectableDateTime(const RWCString& str, SetType set_type = setBoth, const RWLocale& loc = RWLocale::global(), const RWZone& zone = RWZone::local()); RWCollectableDateTime(RW_SL_IO_STD(istream)& s,
SetType set_type, const RWLocale& loc =
RWLocale::global(), const RWZone& zone = RWZone::local());
Calls the corresponding constructor of the base class RWDateTime.
virtual ~RWCollectableDateTime();
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 RWDateTime::compareTo.
virtual unsigned hash() const;
Redefined from class RWCollectable. Returns the results of calling RWDateTime::hash().
virtual RWClassID isA() const;
Redefined from class RWCollectable to return __RWCOLLECTABLEDATETIME.
virtual bool isEqual(const RWCollectable* t) const;
Redefined from class RWCollectable. Returns the results of calling compareTo() for the base class RWDateTime 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.