A given distance has a measurement and a unit-of-measure. More...
#include <Distance.h>
Public Member Functions | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| Distance (const double &value, size_t uomIdx) | |
| It initializes a new Distance. More... | |
| ~Distance () | |
| Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
| void | setDistance (const double &value) |
| const double & | getDistance () const |
| void | setUom (size_t uom) |
| size_t | getUom () const |
Private Attributes | |
| size_t | m_uom |
| double | m_value |
A given distance has a measurement and a unit-of-measure.
Definition at line 44 of file Distance.h.
| te::common::Distance::Distance | ( | const double & | value, |
| size_t | uomIdx | ||
| ) |
It initializes a new Distance.
| value | The value associated to the measure. |
| uomIdx | An index to a valid unit-of-measure. See the Unit-of-measure manager class for more information on it. |
Definition at line 29 of file Distance.cpp.
| te::common::Distance::~Distance | ( | ) |
Destructor.
Definition at line 35 of file Distance.cpp.
| const double & te::common::Distance::getDistance | ( | ) | const |
Definition at line 44 of file Distance.cpp.
| size_t te::common::Distance::getUom | ( | ) | const |
Definition at line 54 of file Distance.cpp.
| void te::common::Distance::setDistance | ( | const double & | value | ) |
Definition at line 39 of file Distance.cpp.
| void te::common::Distance::setUom | ( | size_t | uom | ) |
Definition at line 49 of file Distance.cpp.
|
private |
Definition at line 84 of file Distance.h.
|
private |
Definition at line 83 of file Distance.h.