25 #include <SimoxUtility/algorithm/string/string_conversion.h>
29 #include <ArmarXCore/interface/core/UserException.h>
87 const std::string&
string,
91 int i =
string.empty() ? 0 : std::stoi(
string);
98 const std::string&
string,
102 float f =
string.empty() ? 0 : std::stof(
string);
109 const std::string&
string,
113 double d =
string.empty() ? 0 : std::stod(
string);
120 const std::string&
string,
124 if (
string ==
"true")
128 else if (
string ==
"false" or
string.
empty())
132 throw armarx::InvalidArgumentException(
"Boolean string has to be either true or false");
138 const std::string&
string,
143 return make_int(
string.
empty() ? 0 : std::stoi(
string), path);
149 const std::string&
string,
153 std::string formatted_string =
"";
154 if (not
string.
empty())
166 const std::string&
string)
const
176 const std::string&
string)
const
186 const std::string&
string)
const
196 const std::string&
string)
const
206 const std::string&
string)
const
216 const std::string&
string)
const