82 const std::string& type,
117 equal = Line.find(
'=');
118 Name = Line.substr(0, equal);
120 Value = Line.substr(equal + 1);
127 name ==
"Compartment" &&
128 Name ==
"Compartment")
139 if ((mode & CReadConfig::SEARCH) &&
156 if (mode & CReadConfig::SEARCH)
179 if (type ==
"string")
181 *(std::string *) pout = Value;
183 else if (type ==
"C_FLOAT64")
188 else if (type ==
"C_INT32")
191 *(
C_INT32 *) pout = atoi(Value.c_str());
193 else if (type ==
"C_INT16")
196 *(
C_INT16 *) pout = atoi(Value.c_str());
198 else if (type ==
"bool")
201 *(
bool *) pout = (atoi(Value.c_str()) != 0);
203 else if (type ==
"multiline")
228 if (Line ==
"End" + name)
237 *(std::string *) pout = Value;
250 const std::string& type,
264 komma = Value.find(
",");
266 std::string Type = Value.substr(0, komma);
267 *(
char*) pout1 = (
char) atoi(Type.c_str());
269 std::string Subtype = Value.substr(komma + 1);
270 *(
char*) pout2 = (
char) atoi(Subtype.c_str());
326 std::streampos pos =
mpBuffer->tellg();
333 return Line.substr(0, Line.find(
"="));
339 mpBuffer->seekg(0, std::ios_base::beg);
std::stringstream mFileBuffer
double strToDouble(const char *str, char const **pTail)
C_INT32 getVariable(const std::string &name, const std::string &type, void *pout, CReadConfig::Mode mode=CReadConfig::NEXT)
static CLocaleString fromUtf8(const std::string &utf8)