#include <OSGeneral.h>
Public Member Functions | |
TimeSpan () | |
Default constructor. More... | |
~TimeSpan () | |
Class destructor. More... | |
bool | IsEqual (TimeSpan *that) |
A function to check for the equality of two objects. More... | |
bool | setRandom (double density, bool conformant) |
A function to make a random instance of this class. More... | |
bool | deepCopyFrom (TimeSpan *that) |
A function to make a deep copy of an instance of this class. More... | |
Public Attributes | |
std::string | unit |
the unit in which time is measured More... | |
double | value |
the number of units More... | |
the TimeSpan class.
Definition at line 924 of file OSGeneral.h.
TimeSpan::TimeSpan | ( | ) |
Default constructor.
Definition at line 1622 of file OSGeneral.cpp.
TimeSpan::~TimeSpan | ( | ) |
Class destructor.
Definition at line 1628 of file OSGeneral.cpp.
bool TimeSpan::IsEqual | ( | TimeSpan * | that | ) |
A function to check for the equality of two objects.
Definition at line 1635 of file OSGeneral.cpp.
bool TimeSpan::setRandom | ( | double | density, |
bool | conformant | ||
) |
A function to make a random instance of this class.
density,: | corresponds to the probability that a particular child element is created |
conformant,: | if true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" attributes and <XXX> children) |
Definition at line 1683 of file OSGeneral.cpp.
bool TimeSpan::deepCopyFrom | ( | TimeSpan * | that | ) |
A function to make a deep copy of an instance of this class.
that,: | the instance from which information is to be copied |
Definition at line 1704 of file OSGeneral.cpp.
std::string TimeSpan::unit |
the unit in which time is measured
Definition at line 929 of file OSGeneral.h.
double TimeSpan::value |
the number of units
Definition at line 932 of file OSGeneral.h.