Add unit to UDQInput class

This commit is contained in:
Joakim Hove
2019-07-29 10:17:20 +02:00
committed by Jostein Alvestad
parent 520df29bd8
commit 5e751bb26c
4 changed files with 21 additions and 17 deletions

View File

@@ -50,8 +50,8 @@ public:
class UDQInput{
public:
UDQInput(const UDQIndex& index, const UDQDefine& udq_define);
UDQInput(const UDQIndex& index, const UDQAssign& udq_assign);
UDQInput(const UDQIndex& index, const UDQDefine& udq_define, const std::string& unit);
UDQInput(const UDQIndex& index, const UDQAssign& udq_assign, const std::string& unit);
template<typename T>
const T& get() const;
@@ -61,12 +61,14 @@ public:
const std::string& keyword() const;
UDQVarType var_type() const;
const std::string& unit() const;
const UDQIndex index;
private:
UDQIndex index;
const UDQDefine * define;
const UDQAssign * assign;
const std::string m_keyword;
UDQVarType m_var_type;
const std::string m_unit;
};
}