yaml_parser_base.cpp
Go to the documentation of this file.
74 msg << "Please check that file exists! Error occurred during parsing of YAML file '"<<filename<<"'" << endl; 187 // Postprocessor is currently incompatible with 'print_timing_data', so need to pass this option on for checking 191 scannerNode["model_invalid_for_lnlike_below"] = getValueOrDef<double>(0.9*std::numeric_limits<double>::lowest(), "likelihood", "model_invalid_for_lnlike_below"); 200 for (iter = exception::all_exceptions().begin(); iter != exception::all_exceptions().end(); ++iter) 217 str error_msg = "Unrecognised entry \"" + value + "\" for exceptions key \"" + iter->first + "\" in input file."; 304 bool Parser::hasModelParameterEntry(std::string model, std::string param, std::string key) const 326 for (YAML::const_iterator it = parametersNode[model].begin(); it!=parametersNode[model].end(); ++it) EXPORT_SYMBOLS str dir_name(const str &path) Get directory name from full path+filename (POSIX) Definition: util_functions.cpp:245 YAML::Node parametersNode Definition: yaml_parser_base.hpp:116 void recursiveImport(const YAML::Node &node, const std::string &filename) Definition: yaml_parser_base.cpp:102 Header for logging classes. Base class for ini-file parsers using yaml-cpp. Logging access header for GAMBIT. General small utility functions. const std::vector< str > getModelParameters(str model) const Definition: yaml_parser_base.cpp:321 YAML::Node getPriorsNode() const Definition: yaml_parser_base.cpp:295 int importRound(YAML::Node node, const std::string &filename) Recursive import. Definition: yaml_parser_base.cpp:37 YAML::Node getPrinterNode() const Definition: yaml_parser_base.cpp:296 YAML::Node keyValuePairNode Definition: yaml_parser_base.hpp:115 void set_log_debug_messages(bool flag) Choose whether "Debug" tagged log messages will be ignored (i.e. not logged) Definition: logmaster.hpp:138 Logging::LogMaster & logger() Function to retrieve a reference to the Gambit global log object. Definition: logger.cpp:95 EXPORT_SYMBOLS const str & ensure_path_exists(const str &) Ensure that a path exists (and then return the path, for chaining purposes) Definition: util_functions.cpp:196 void initialise(std::vector< std::pair< std::set< std::string >, std::string >> &) Function to construct loggers according to blueprint. Definition: logmaster.cpp:223 bool hasModelParameterEntry(str model, str param, str key) const Getters for model/parameter section. Definition: yaml_parser_base.cpp:304 A simple C++ wrapper for the MPI C bindings. YAML::Node getScannerNode() const Definition: yaml_parser_base.cpp:297 const std::set< str > getModelNames() const Return list of model names (without "adhoc" model!) Definition: yaml_parser_base.cpp:310 YAML::Node getLoggerNode() const Definition: yaml_parser_base.cpp:298 YAML::Node getParametersNode() const Getters for key/value section. Definition: yaml_parser_base.cpp:294 void basicParse(YAML::Node, str) Do the basic parsing of the YAML file. Definition: yaml_parser_base.cpp:154 YAML::Node getKeyValuePairNode() const Definition: yaml_parser_base.cpp:299 |