hydrobricks
Loading...
Searching...
No Matches
HydroUnitProperty.h
1#ifndef HYDROBRICKS_HYDRO_UNIT_PROPERTY_H
2#define HYDROBRICKS_HYDRO_UNIT_PROPERTY_H
3
4#include "Includes.h"
5
6class HydroUnitProperty : public wxObject {
7 public:
9
10 HydroUnitProperty(string name, double value, string unit = "");
11
12 HydroUnitProperty(string name, string valueString, string unit = "");
13
14 ~HydroUnitProperty() override = default;
15
22 double GetValue(const string& unit = "") const;
23
29 string GetValueString() const;
30
36 string GetName() {
37 return m_name;
38 }
39
40 private:
41 string m_name;
42 string m_unit;
43 double m_value;
44 string m_valueString;
45};
46
47#endif // HYDROBRICKS_HYDRO_UNIT_PROPERTY_H
Definition HydroUnitProperty.h:6
string GetName()
Definition HydroUnitProperty.h:36
string GetValueString() const
Definition HydroUnitProperty.cpp:42
double GetValue(const string &unit="") const
Definition HydroUnitProperty.cpp:19