SourcePro® API Reference Guide

Product Documentation:
   SourcePro
Documentation Home
List of all members | Public Member Functions | Static Public Member Functions
RWCollectableTime Class Reference

Deprecated. Inherits classes RWTime and RWCollectable. More...

#include <rw/colltime.h>

Inheritance diagram for RWCollectableTime:
RWCollectable RWTime

Public Member Functions

 RWCollectableTime ()
 
 RWCollectableTime (unsigned long s)
 
 RWCollectableTime (const RWTime &t)
 
 RWCollectableTime (unsigned h, unsigned m, unsigned s=0, const RWZone &zone=RWZone::local())
 
 RWCollectableTime (const RWDate &d, unsigned h=0, unsigned m=0, unsigned s=0, const RWZone &zone=RWZone::local())
 
 RWCollectableTime (const RWDate &d, const RWCString &str, const RWZone &z=RWZone::local(), const RWLocale &l=RWLocale::global())
 
 RWCollectableTime (const struct tm *tmb, const RWZone &zone=RWZone::local())
 
virtual ~RWCollectableTime ()
 
virtual RWspace binaryStoreSize () const
 
virtual int compareTo (const RWCollectable *c) const
 
virtual RWCollectablecopy () const
 
virtual unsigned hash () const
 
virtual RWClassID isA () const
 
virtual bool isEqual (const RWCollectable *) const
 
virtual RWCollectablenewSpecies () const
 
virtual void restoreGuts (RWvistream &)
 
virtual void restoreGuts (RWFile &)
 
virtual void saveGuts (RWvostream &) const
 
virtual void saveGuts (RWFile &) const
 
- Public Member Functions inherited from RWCollectable
virtual ~RWCollectable ()
 
RWspace recursiveStoreSize () const
 
RWStringID stringID () const
 
- Public Member Functions inherited from RWTime
 RWTime ()
 
 RWTime (unsigned long s)
 
 RWTime (unsigned hour, unsigned minute, unsigned second=0, const RWZone &zone=RWZone::local())
 
 RWTime (const RWDate &date, unsigned hour=0, unsigned minute=0, unsigned second=0, const RWZone &zone=RWZone::local())
 
 RWTime (const RWDate &date, const RWCString &str, const RWZone &zone=RWZone::local(), const RWLocale &locale=RWLocale::global())
 
 RWTime (const struct tm *ptm, const RWZone &zone=RWZone::local())
 
RWCString asString (char format= '\0', const RWZone &zone=RWZone::local(), const RWLocale &locale=RWLocale::global()) const
 
RWCString asString (const char *format, const RWZone &zone=RWZone::local(), const RWLocale &locale=RWLocale::global()) const
 
bool between (const RWTime &a, const RWTime &b) const
 
RWspace binaryStoreSize () const
 
int compareTo (const RWTime *t) const
 
void extract (struct tm *ptm, const RWZone &zone=RWZone::local()) const
 
unsigned hash () const
 
unsigned hour (const RWZone &zone=RWZone::local()) const
 
unsigned hourGMT () const
 
bool isDST (const RWZone &zone=RWZone::local()) const
 
bool isValid () const
 
RWTime max (const RWTime &t) const
 
RWTime min (const RWTime &t) const
 
unsigned minute (const RWZone &zone=RWZone::local()) const
 
unsigned minuteGMT () const
 
RWTime operator++ ()
 
RWTime operator++ (int)
 
RWTimeoperator+= (unsigned long s)
 
RWTime operator-- ()
 
RWTime operator-- (int)
 
RWTimeoperator-= (unsigned long s)
 
unsigned second () const
 
unsigned long seconds () const
 

Static Public Member Functions

static RWClassID classIsA ()
 
- Static Public Member Functions inherited from RWCollectable
static RWClassID classID (const RWStringID &name)
 
static RWClassID classIsA ()
 
static bool isAtom (RWClassID id)
 
static RWspace nilStoreSize ()
 
- Static Public Member Functions inherited from RWTime
static RWTime beginDST (unsigned year, const RWZone &zone=RWZone::local())
 
static RWTime endDST (unsigned year, const RWZone &zone=RWZone::local())
 
static unsigned hash (const RWTime &t)
 
static RWTime now ()
 

Additional Inherited Members

Detailed Description

Deprecated:
As of SourcePro 11.1, use RWCollectableDateTime instead.

RWCollectableTime and RWTime are deprecated and are no longer supported. They may be removed from future releases. Please use RWCollectableDateTime and RWDateTime.

Inherits classes RWTime and RWCollectable. This class is useful when times are used as keys in the "dictionary" collection classes, or if times are stored and retrieved as RWCollectable instances.

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

Synopsis
typedef RWCollectableTime Time; // Smalltalk typedef
#include <rw/colltime.h>
Persistence
Polymorphic

Constructor & Destructor Documentation

RWCollectableTime::RWCollectableTime ( )

Calls the corresponding constructor of RWTime.

RWCollectableTime::RWCollectableTime ( unsigned long  s)
inline

Calls the corresponding constructor of RWTime.

RWCollectableTime::RWCollectableTime ( const RWTime t)
inline

Calls the corresponding constructor of RWTime.

RWCollectableTime::RWCollectableTime ( unsigned  h,
unsigned  m,
unsigned  s = 0,
const RWZone zone = RWZone::local() 
)
inline

Calls the corresponding constructor of RWTime.

RWCollectableTime::RWCollectableTime ( const RWDate d,
unsigned  h = 0,
unsigned  m = 0,
unsigned  s = 0,
const RWZone zone = RWZone::local() 
)
inline

Calls the corresponding constructor of RWTime.

RWCollectableTime::RWCollectableTime ( const RWDate d,
const RWCString str,
const RWZone z = RWZone::local(),
const RWLocale l = RWLocale::global() 
)
inline

Calls the corresponding constructor of RWTime.

RWCollectableTime::RWCollectableTime ( const struct tm *  tmb,
const RWZone zone = RWZone::local() 
)
inline

Calls the corresponding constructor of RWTime.

virtual RWCollectableTime::~RWCollectableTime ( )
virtual

Empty destructor.

Member Function Documentation

virtual RWspace RWCollectableTime::binaryStoreSize ( ) const
inlinevirtual

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 RWCollectableTime::classIsA ( )
static

Returns the RWClassID of this class.

virtual int RWCollectableTime::compareTo ( const RWCollectable c) const
virtual

If c is an RWCollectableTime, returns the result of calling RWTime::compareTo(), otherwise returns a nonzero value based on the type of c.

Reimplemented from RWCollectable.

virtual RWCollectable* RWCollectableTime::copy ( ) const
virtual

Returns a new, copy-constructed object of the same type as self. The caller is responsible for deleting the object.

Reimplemented from RWCollectable.

virtual unsigned RWCollectableTime::hash ( ) const
virtual

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

Reimplemented from RWCollectable.

virtual RWClassID RWCollectableTime::isA ( ) const
virtual

Returns the unique ID for RWCollectableTime.

Reimplemented from RWCollectable.

virtual bool RWCollectableTime::isEqual ( const RWCollectable t) const
virtual

Behaves as if compareTo(t) was invoked, returning true if the result equals 0, false otherwise.

Reimplemented from RWCollectable.

virtual RWCollectable* RWCollectableTime::newSpecies ( ) const
virtual

Returns a new, default-constructed object of the same type as self. The caller is responsible for deleting the object.

Reimplemented from RWCollectable.

virtual void RWCollectableTime::restoreGuts ( RWvistream )
virtual

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

Reimplemented from RWCollectable.

virtual void RWCollectableTime::restoreGuts ( RWFile )
virtual

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

Reimplemented from RWCollectable.

virtual void RWCollectableTime::saveGuts ( RWvostream ) const
virtual

Writes an object's state to an output stream.

Reimplemented from RWCollectable.

virtual void RWCollectableTime::saveGuts ( RWFile ) const
virtual

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

Reimplemented from RWCollectable.

Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.