#include <Measurement.h>
Public Member Functions | |
Measurement (double v=0.0, double ep=0.0, double em=0.0) | |
Standard constructor. | |
Measurement (const Measurement &m) | |
Copy constructor. | |
virtual | ~Measurement () |
Destructor. | |
double | value () const |
Get the value of the Measurement. | |
double | errorPlus () const |
Get the plus error of the IMeasurement. | |
double | errorMinus () const |
Get the minus error of the IMeasurement. | |
bool | setValue (double v) |
Set the value of the IMeasurement. | |
bool | setErrorPlus (double ep) |
Set the plus error of the IMeasurement. | |
bool | setErrorMinus (double em) |
Set the minus error of the IMeasurement. | |
Private Attributes | |
double | val |
The value. | |
double | errp |
The plus error. | |
double | errm |
The minus error. |
"IMeasurement" = "value" + "errorPlus" - "errorMinus"
Definition at line 30 of file Measurement.h.
double LWH::Measurement::value | ( | ) | const [inline] |
Get the value of the Measurement.
Definition at line 55 of file Measurement.h.
References val.
double LWH::Measurement::errorPlus | ( | ) | const [inline] |
Get the plus error of the IMeasurement.
Definition at line 63 of file Measurement.h.
References errp.
double LWH::Measurement::errorMinus | ( | ) | const [inline] |
Get the minus error of the IMeasurement.
Definition at line 71 of file Measurement.h.
References errm.
bool LWH::Measurement::setValue | ( | double | v | ) | [inline] |
Set the value of the IMeasurement.
v | The new value of the IMeasurement. |
Definition at line 80 of file Measurement.h.
References val.
bool LWH::Measurement::setErrorPlus | ( | double | ep | ) | [inline] |
Set the plus error of the IMeasurement.
ep | The new plus error of the IMeasurement. |
Definition at line 90 of file Measurement.h.
References errp.
bool LWH::Measurement::setErrorMinus | ( | double | em | ) | [inline] |
Set the minus error of the IMeasurement.
em | The new minus error of the IMeasurement. |
Definition at line 100 of file Measurement.h.
References errm.