/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/configuration_helper.hh Source File#
|
DiFfRG
|
configuration_helper.hh
Go to the documentation of this file.
26 ConfigurationHelper(int argc, char *argv[], const std::string parameter_file = "parameter.json");
Class to read parameters given from the command line and from a parameter file.
Definition configuration_helper.hh:16
static bool logger_initialized
Definition configuration_helper.hh:75
void parse_cli()
ConfigurationHelper(const JSONValue &json)
Construct a new Configuration Helper object from a JSONValue object.
std::string parameter_file
Definition configuration_helper.hh:73
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,...
std::string get_output_name() const
std::string get_log_file() const
void generate_parameter_file()
std::string get_parameter_file() const
std::list< std::pair< std::string, std::string > > cli_parameters
Definition configuration_helper.hh:67
std::string get_top_folder() const
ConfigurationHelper(const ConfigurationHelper &)
Copy a Configuration Helper.
std::string get_output_folder() const
const JSONValue & get_json() const
Obtain the JSON object containing all the parameters.
void setup_logging()
JSONValue & get_json()
Obtain the JSON object containing all the parameters.
void print_usage_message()
void parse()
Definition complex_math.hh:10
Generated by