utils/include/arguments_extra
-
namespace feasst
Functions
-
std::string str(const std::string &key, const argtype &args)
Read an argument, but do not remove it. WARNING: This should typically only be used for error checking.
-
std::pair<std::string, argtype> parse_line(const std::string line, argtype *variables, bool *assign_to_list)
Parse a text interface line. These typically begin with an object Name, then space-separated arguments. Each space seprated argument begins with the argument name, and equal sign and then the argument values. Backwards compatible with the old interface which uses a space instead of an equal sign. First, look for set_variable, to generate a list of variables to use for name substitution. Finally, replace any value beginnig with /feasst with the install_dir().
-
std::vector<arglist> parse_mcs(std::istream &is, argtype variables = argtype())
Parse MonteCarlo arguments from a stream.
-
void replace_value(const std::string search, const std::string replace, arglist *args)
Find all values equal to “search” in args and replace with “replace”.
-
std::string str(const std::string &key, const argtype &args)