fixed: update UDAValue constructors for new dim member

This commit is contained in:
Arne Morten Kvarving 2020-01-13 11:49:17 +01:00
parent 7ac2febae2
commit c4936d55e1
2 changed files with 16 additions and 0 deletions

View File

@ -35,6 +35,8 @@ public:
explicit UDAValue(double);
explicit UDAValue(const std::string&);
UDAValue(const UDAValue& src, const Dimension& dim);
UDAValue(double data, const Dimension& dim);
UDAValue(const std::string& data, const Dimension& dim);
/*
The get<double>() and get<std::string>() methods will throw an

View File

@ -29,6 +29,13 @@ UDAValue::UDAValue(double value):
{
}
UDAValue::UDAValue(double value, const Dimension& dim_):
numeric_value(true),
double_value(value),
dim(dim_)
{
}
UDAValue::UDAValue() :
UDAValue(0)
@ -40,6 +47,13 @@ UDAValue::UDAValue(const std::string& value):
{
}
UDAValue::UDAValue(const std::string& value, const Dimension& dim_):
numeric_value(false),
string_value(value),
dim(dim_)
{
}
UDAValue::UDAValue(const UDAValue& src, const Dimension& new_dim):
UDAValue(src)
{