4 #include "measurement-unit.h"
26 Quantity(
const double &value,
const std::string &unit,
80 std::string
toString(
const std::string &separator=
"")
const;
87 void convert(
const std::string &unit);
115 void setUnit(
const std::string &unit);
void fromString(const std::string &str)
Definition: quantity.cpp:29
Definition: measurement-unit.h:10
bool operator>=(const Quantity &other) const
Definition: quantity.cpp:93
void setValue(const double &value)
Definition: quantity.cpp:52
double getValue() const
Definition: quantity.cpp:48
void setUnit(const std::string &unit)
Definition: quantity.cpp:60
bool operator>(const Quantity &other) const
Definition: quantity.cpp:88
Quantity(const double &value, const std::string &unit, const MeasurementUnit &converter)
Definition: quantity.cpp:7
std::string toString(const std::string &separator="") const
Definition: quantity.cpp:37
const MeasurementUnit & getMeasurementUnit() const
Definition: quantity.cpp:64
std::string getUnit() const
Definition: quantity.cpp:56
bool operator<=(const Quantity &other) const
Definition: quantity.cpp:83
bool operator<(const Quantity &other) const
Definition: quantity.cpp:78
void convert(const std::string &unit)
Definition: quantity.cpp:43
Quantity & operator=(const Quantity &other)
Definition: quantity.cpp:68
bool operator==(const Quantity &other) const
Definition: quantity.cpp:98
Definition: quantity.h:16