tmp.append(line);
get_estr(inp, tmp.c_str(), nullptr);
}
+
void setStringEntry(std::vector<t_inpfile>* inp, const char* name, char* newName, const char* def)
{
+ GMX_RELEASE_ASSERT(newName != nullptr, "Need a valid char buffer");
+
const char* found = nullptr;
found = get_estr(inp, name, def);
if (found != nullptr)
std::strcpy(newName, found);
}
}
+
+std::string setStringEntry(std::vector<t_inpfile>* inp, const std::string& name, const std::string& def)
+{
+ GMX_RELEASE_ASSERT(!name.empty(), "Need a valid string");
+
+ return get_estr(inp, name.c_str(), def.c_str());
+}