rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWCollectableDate Class Reference
[Dates and Times]

Deprecated. Inherits from classes RWDate and RWCollectable. More...

#include <rw/colldate.h>

Inheritance diagram for RWCollectableDate:
RWCollectable RWDate

List of all members.

Public Member Functions

virtual RWCollectablenewSpecies () const
virtual RWClassID isA () const
 RWCollectableDate ()
 RWCollectableDate (unsigned long j)
 RWCollectableDate (unsigned d, unsigned y)
 RWCollectableDate (unsigned d, const char *s, unsigned y, const RWLocale &loc=RWLocale::global())
 RWCollectableDate (unsigned d, unsigned m, unsigned y)
 RWCollectableDate (std::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 RWDate &d)
 RWCollectableDate (const struct tm *tmb)
virtual ~RWCollectableDate ()
virtual RWspace binaryStoreSize () const
virtual int compareTo (const RWCollectable *) const
virtual unsigned hash () const
virtual bool isEqual (const RWCollectable *) const
virtual void restoreGuts (RWvistream &)
virtual void restoreGuts (RWFile &)
virtual void saveGuts (RWvostream &) const
virtual void saveGuts (RWFile &) const

Static Public Member Functions

static RWClassID classIsA ()

Detailed Description

Deprecated:
RWCollectableDate and RWDate are deprecated and no longer supported. They may be removed from future releases. Please use RWCollectableDateTime 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 RWCollectable instances.

The virtual functions of the base class RWCollectable have been redefined.

Synopsis

 typedef RWCollectableDate Date;  // Smalltalk typedef
 #include <rw/colldate.h>
 RWCollectableDate  d;

Persistence

Polymorphic


Constructor & Destructor Documentation

RWCollectableDate::RWCollectableDate (  ) 

Calls the corresponding constructor of the base class RWDate.

RWCollectableDate::RWCollectableDate ( unsigned long  j  )  [inline]

Calls the corresponding constructor of the base class RWDate.

RWCollectableDate::RWCollectableDate ( unsigned  d,
unsigned  y 
) [inline]

Calls the corresponding constructor of the base class RWDate.

RWCollectableDate::RWCollectableDate ( unsigned  d,
const char *  s,
unsigned  y,
const RWLocale loc = RWLocale::global() 
) [inline]

Calls the corresponding constructor of the base class RWDate.

RWCollectableDate::RWCollectableDate ( unsigned  d,
unsigned  m,
unsigned  y 
) [inline]

Calls the corresponding constructor of the base class RWDate.

RWCollectableDate::RWCollectableDate ( std::istream &  s,
const RWLocale locale = RWLocale::global() 
) [inline]

Calls the corresponding constructor of the base class RWDate.

RWCollectableDate::RWCollectableDate ( const RWCString str,
const RWLocale locale = RWLocale::global() 
) [inline]

Calls the corresponding constructor of the base class RWDate.

RWCollectableDate::RWCollectableDate ( const RWTime t,
const RWZone zone = RWZone::local() 
) [inline]

Calls the corresponding constructor of the base class RWDate.

RWCollectableDate::RWCollectableDate ( const RWDate d  )  [inline]

Calls the corresponding constructor of the base class RWDate.

RWCollectableDate::RWCollectableDate ( const struct tm *  tmb  )  [inline]

Calls the corresponding constructor of the base class RWDate.

virtual RWCollectableDate::~RWCollectableDate (  )  [virtual]

Empty destructor.


Member Function Documentation

virtual RWspace RWCollectableDate::binaryStoreSize (  )  const [inline, virtual]

Returns the number of bytes used by the virtual function saveGuts(RWFile&) to store an object. Typically, this involves adding up the space required to store all primitives, plus the results of calling recursiveStoreSize() for all objects inheriting from RWCollectable. See the Essential Tools Module User's Guide for details.

Reimplemented from RWCollectable.

static RWClassID RWCollectableDate::classIsA (  )  [static]

Returns the RWClassID of this class.

Reimplemented from RWCollectable.

virtual int RWCollectableDate::compareTo ( const RWCollectable  )  const [virtual]

Returns the results of calling RWDate::compareTo().

Reimplemented from RWCollectable.

virtual unsigned RWCollectableDate::hash (  )  const [virtual]

Returns the results of calling RWDate::hash().

Reimplemented from RWCollectable.

virtual RWClassID RWCollectableDate::isA (  )  const [virtual]

Returns the unique ID for RWCollectableDate.

Reimplemented from RWCollectable.

virtual bool RWCollectableDate::isEqual ( const RWCollectable  )  const [virtual]

Returns the results of calling operator==() for the base class RWDate by using appropriate casts.

Reimplemented from RWCollectable.

virtual RWCollectable* RWCollectableDate::newSpecies (  )  const [virtual]

Allocates a new object off the heap of the same type as self and returns a pointer to it. You are responsible for deleting the object when done with it.

Reimplemented from RWCollectable.

virtual void RWCollectableDate::restoreGuts ( RWFile  )  [virtual]

Reads an object's state from a binary file, using class RWFile, replacing the previous state.

Reimplemented from RWCollectable.

virtual void RWCollectableDate::restoreGuts ( RWvistream  )  [virtual]

Reads an object's state from an input stream, replacing the previous state.

Reimplemented from RWCollectable.

virtual void RWCollectableDate::saveGuts ( RWFile  )  const [virtual]

Writes an object's state to a binary file, using class RWFile.

Reimplemented from RWCollectable.

virtual void RWCollectableDate::saveGuts ( RWvostream  )  const [virtual]

Writes an object's state to an output stream.

Reimplemented from RWCollectable.

 All Classes Functions Variables Typedefs Enumerations Enumerator Friends

© 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.