Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide

RWCollectableDateTime

Module:  Essential Tools Module   Group:  Date and Time


RWDateTime RWCollectableDateTime RWCollectable

Local Index

Members

Synopsis

#include <rw/tools/ctdatetime.h>
RWCollectableDateTime d;

Description

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.

Persistence

Polymorphic

Public Constructors

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);
RWCollectableDateTime(const RWDate& d, unsigned h=0, 
                         unsigned m=0, unsigned s=0,
                         unsigned ms=0, const RWZone& zone = 
                         RWZone::local());
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());

Public Destructor

virtual ~RWCollectableDateTime();

Public Member Functions

virtual RWspace
binaryStoreSize() const;
virtual int 
compareTo(const RWCollectable* c) const;
virtual unsigned
hash() const;
virtual RWClassID
isA() const;
virtual RWBoolean 
isEqual(const RWCollectable* t) const;
virtual void
restoreGuts(RWvistream&);
virtual void
restoreGuts(RWFile&);
virtual void
saveGuts(RWvostream&) const;
virtual void
saveGuts(RWFile&) const;
RWStringID
stringID();


Previous fileTop of DocumentContentsIndex pageNext file

©2004 Copyright Quovadx, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Quovadx, 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.