the StorageCapacity class. More...
#include <OSGeneral.h>
Public Member Functions | |
StorageCapacity () | |
Default constructor. | |
~StorageCapacity () | |
Class destructor. | |
bool | IsEqual (StorageCapacity *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 storage capacity is measured | |
std::string | description |
additional description about the storage | |
double | value |
the number of units of storage capacity |
the StorageCapacity class.
Definition at line 658 of file OSGeneral.h.
StorageCapacity::StorageCapacity | ( | ) |
Default constructor.
Definition at line 1024 of file OSGeneral.cpp.
StorageCapacity::~StorageCapacity | ( | ) |
Class destructor.
Definition at line 1031 of file OSGeneral.cpp.
bool StorageCapacity::IsEqual | ( | StorageCapacity * | that | ) |
A function to check for the equality of two objects.
Definition at line 1038 of file OSGeneral.cpp.
bool StorageCapacity::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 1079 of file OSGeneral.cpp.
std::string StorageCapacity::unit |
the unit in which storage capacity is measured
Definition at line 663 of file OSGeneral.h.
std::string StorageCapacity::description |
additional description about the storage
Definition at line 666 of file OSGeneral.h.
double StorageCapacity::value |
the number of units of storage capacity
Definition at line 669 of file OSGeneral.h.