39 #ifndef __OPENFLUID_TOOLS_VARHELPERS_HPP__
40 #define __OPENFLUID_TOOLS_VARHELPERS_HPP__
47 #include <openfluid/config.hpp>
49 #include <openfluid/core/TypeDefs.hpp>
67 UnitsClass(Classes), VariableName(Vars)
73 std::vector<std::string> TmpV(Data);
77 VariableName = TmpV[1];
82 "Bad unit class/variable pair format");
113 std::vector<std::string> TmpV(Data);
114 if (TmpV.size() == 2)
116 UnitsClass = TmpV[0];
117 UnitsIDsStr = openfluid::config::CHAR_JOKER;
118 VariableName = TmpV[1];
120 else if (Data.size() == 3)
122 UnitsClass = TmpV[0];
123 UnitsIDsStr = TmpV[1];
124 VariableName = TmpV[2];
129 "Bad unit class/variable pair format");
137 return (UnitVarPair::operator==(P) && UnitsIDsStr==P.
UnitsIDsStr);
149 bool HasPrecision =
false;
159 unsigned int P, std::string FFormat) :
160 ClassIDVar(Classes, IDs, Vars), Precision(P), FloatFormat(FFormat)
Definition: FrameworkException.hpp:51
#define OPENFLUID_API
Definition: dllexport.hpp:86
std::string VariableName_t
Definition: TypeDefs.hpp:131
std::string UnitsClass_t
Definition: TypeDefs.hpp:98
Definition: ApplicationException.hpp:47