42 #ifndef __STRINGVALUE_HPP___
43 #define __STRINGVALUE_HPP___
55 namespace openfluid {
namespace core {
97 static bool convertStringToDouble(
const std::string& Str,
double& Dbl);
99 static std::vector<std::string> splitString(
const std::string& StrToSplit,
100 const std::string& Separators,
101 bool ReturnsEmpty =
false);
103 std::vector<std::string> split(
const std::string& Separators,
104 bool ReturnsEmpty =
false)
const;
128 operator std::string()
const {
return m_Value; };
140 inline std::string&
get() {
return m_Value; };
146 inline const std::string&
get()
const {
return m_Value; };
152 inline void set(
const std::string& Val) { m_Value = Val; };
154 void writeToStream(std::ostream& OutStm)
const;
160 inline unsigned long getSize()
const {
return m_Value.size(); };
166 unsigned long size()
const {
return m_Value.size(); };
172 bool toDouble(
double& Val)
const;
186 bool toBoolean(
bool& Val)
const;
200 bool toInteger(
long& Val)
const;
222 bool toVectorValue(
const std::string& Sep,
VectorValue& Val)
const;
231 bool toMatrixValue(
const std::string& ColSep,
const std::string& RowSep,
MatrixValue& Val)
const;
240 bool toMatrixValue(
const std::string& Sep,
const unsigned int& RowLength,
MatrixValue& Val)
const;
248 bool toMapValue(
const std::string& Sep,
MapValue& Val)
const;
Definition: StringValue.hpp:91
unsigned long getSize() const
Definition: StringValue.hpp:160
Type getType() const
Definition: StringValue.hpp:132
StringValue()
Definition: StringValue.hpp:111
Definition: IntegerValue.hpp:106
Definition: DoubleValue.hpp:103
unsigned long size() const
Definition: StringValue.hpp:166
Definition: MapValue.hpp:134
StringValue(const std::string &POD)
Definition: StringValue.hpp:121
virtual ~StringValue()
Definition: StringValue.hpp:130
Definition: NullValue.hpp:59
Type
Definition: Value.hpp:68
Definition: SimpleValue.hpp:50
Definition: MatrixValue.hpp:115
void set(const std::string &Val)
Definition: StringValue.hpp:152
Value * clone() const
Definition: StringValue.hpp:134
StringValue(const StringValue &Val)
Definition: StringValue.hpp:116
Definition: VectorValue.hpp:119
Definition: BooleanValue.hpp:104
#define DLLEXPORT
Definition: dllexport.hpp:51