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:22
Definition: measurement-unit.h:10
bool operator>=(const Quantity &other) const
Definition: quantity.cpp:86
void setValue(const double &value)
Definition: quantity.cpp:45
double getValue() const
Definition: quantity.cpp:41
void setUnit(const std::string &unit)
Definition: quantity.cpp:53
bool operator>(const Quantity &other) const
Definition: quantity.cpp:81
std::string toString(const std::string &separator="") const
Definition: quantity.cpp:30
const MeasurementUnit & getMeasurementUnit() const
Definition: quantity.cpp:57
std::string getUnit() const
Definition: quantity.cpp:49
Quantity(const double &value_, const std::string &unit_, const MeasurementUnit &converter_)
Definition: quantity.cpp:7
bool operator<=(const Quantity &other) const
Definition: quantity.cpp:76
bool operator<(const Quantity &other) const
Definition: quantity.cpp:71
void convert(const std::string &unit)
Definition: quantity.cpp:36
Quantity & operator=(const Quantity &other)
Definition: quantity.cpp:61
bool operator==(const Quantity &other) const
Definition: quantity.cpp:91
Definition: quantity.h:16