42 #ifndef __OPENFLUID_TOOLS_DATAHELPERS_HPP__
43 #define __OPENFLUID_TOOLS_DATAHELPERS_HPP__
67 [[deprecated]]
inline bool convertString(
const std::string& StrToConvert, T* Converted)
69 std::istringstream iss(StrToConvert);
71 return ((iss >> (*Converted)) && !iss.get(c));
112 [[deprecated]]
inline bool convertValue(
const T& ValueToConvert, std::string* StrConverted)
114 std::ostringstream oss;
115 bool IsOK = !(oss << ValueToConvert).fail();
119 (*StrConverted) = oss.str();
138 [[deprecated]]
inline std::string
convertValue(
const T& ValueToConvert)
140 std::string Converted;
163 std::vector<std::string>& Tokens,
164 const std::string& Delimiters);
176 const std::string& Separators,
177 bool ReturnsEmpty =
false);
190 bool ReturnsEmpty =
false);
201 const std::string& ToSearch,
const std::string& ReplaceStr);
Definition: FrameworkException.hpp:51
#define OPENFLUID_API
Definition: dllexport.hpp:86
Definition: ApplicationException.hpp:47