/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/configuration_helper.hh Source File#
|
DiFfRG
Discretization Framework for functional Renormalization Group flows
|
configuration_helper.hh
Go to the documentation of this file.
28 ConfigurationHelper(int argc, char *argv[], const std::string parameter_file = "parameter.json");
69 [[deprecated("Use OutputPath(config).run_file(\".log\").filename().string() instead")]] std::string
73 [[deprecated("Use OutputPath(config).field_directory() instead")]] std::string get_output_folder() const;
87 static ConfigTree probe(int argc, char *argv[], const std::string parameter_file = "parameter.json");
A hierarchical configuration tree, readable from JSON and TOML files.
Definition config_tree.hh:32
Class to read parameters given from the command line and from a parameter file.
Definition configuration_helper.hh:16
ConfigTree & get_json()
Obtain the configuration tree containing all the parameters.
void parse_cli()
std::string parameter_file
Definition configuration_helper.hh:104
void append(std::string arg)
Add a CLI-like argument to the list of arguments.
ConfigurationHelper(int argc, char *argv[], const std::string parameter_file="parameter.json")
Construct a new Configuration Helper object To get an overview of the available arguments,...
const ConfigTree & get_config() const
Obtain the configuration tree containing all the parameters.
std::string get_output_name() const
std::string get_log_file() const
ConfigTree & get_config()
Obtain the configuration tree containing all the parameters.
void generate_parameter_file()
std::string get_parameter_file() const
const ConfigTree & get_json() const
Obtain the configuration tree containing all the parameters.
std::list< std::pair< std::string, std::string > > cli_parameters
Definition configuration_helper.hh:98
std::string get_top_folder() const
ConfigurationHelper(const ConfigurationHelper &)
Copy a Configuration Helper.
std::string get_output_folder() const
ConfigurationHelper(const ConfigTree &config)
Construct a new Configuration Helper object from a ConfigTree object.
ConfigurationHelper()=default
bool parameter_file_explicit
Definition configuration_helper.hh:108
void print_usage_message()
void parse()
static ConfigTree probe(int argc, char *argv[], const std::string parameter_file="parameter.json")
Read the configuration without producing any diagnostics or terminating.
Definition complex_math.hh:10
Generated by