#include <OSGeneral.h>
Public Member Functions | |
TimeSpan () | |
Default constructor. | |
~TimeSpan () | |
Class destructor. | |
bool | IsEqual (TimeSpan *that) |
A function to check for the equality of two objects. | |
bool | setRandom (double density, bool conformant) |
A function to make a random instance of this class. | |
Public Attributes | |
std::string | unit |
the unit in which time is measured | |
double | value |
the number of units |
the TimeSpan class.
Definition at line 813 of file OSGeneral.h.
TimeSpan::TimeSpan | ( | ) |
Default constructor.
Definition at line 1249 of file OSGeneral.cpp.
TimeSpan::~TimeSpan | ( | ) |
Class destructor.
Definition at line 1255 of file OSGeneral.cpp.
bool TimeSpan::IsEqual | ( | TimeSpan * | that | ) |
A function to check for the equality of two objects.
Reimplemented in TimeMeasurement.
Definition at line 1262 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) |
Reimplemented in TimeMeasurement.
Definition at line 1302 of file OSGeneral.cpp.
std::string TimeSpan::unit |
the unit in which time is measured
Definition at line 818 of file OSGeneral.h.
double TimeSpan::value |
the number of units
Definition at line 821 of file OSGeneral.h.