#include <timeStamp.h>
Public Member Functions | |
Constructors and Destructors | |
TimeStamp () throw () | |
Default constructor. | |
virtual | ~TimeStamp () throw () |
Destructor. | |
Predicates | |
bool | isNewerThan (const PreciseTime &time) const throw () |
Check the time stamp. | |
bool | isOlderThan (const PreciseTime &time) const throw () |
Check the time stamp. | |
bool | isNewerThan (const TimeStamp &stamp) const throw () |
Check the time stamp. | |
bool | isOlderThan (const TimeStamp &stamp) const throw () |
Check the time stamp. | |
bool | operator== (const TimeStamp &stamp) const throw () |
Equality operator. | |
Accessors | |
virtual void | stamp (const PreciseTime &time=PreciseTime::ZERO) throw () |
Update the time stamp. | |
const PreciseTime & | getTime () const throw () |
Return the time of last modification. | |
Assignment | |
const PreciseTime & | operator= (const PreciseTime &time) throw () |
Assignment operator. | |
virtual void | clear () throw () |
Clear method. | |
Storable interface. | |
void | write (PersistenceManager &pm) const throw () |
Persistent stream writing. | |
bool | read (PersistenceManager &pm) throw () |
Persistent stream reading. | |
Protected Attributes | |
PreciseTime | time_ |
The time stamp. |
This class implements a so-called time stamp. It is used to store modification or creation times of objects. Interface: Storable
|
Return the time of last modification.
|
|
Check the time stamp.
|
|
Check the time stamp.
|
|
Check the time stamp.
|
|
Check the time stamp.
|
|
Persistent stream reading.
This method reads the contents of a TimeStamp object from the persistent stream using the
|
|
Update the time stamp.
Store the value of
|
|
Persistent stream writing.
This method writes the contents of the TimeStamp objects to the persistent stream using the
|
|
The time stamp.
|