class Gambit::IniParser::IniFile

Main inifile class.

#include <yaml_parser.hpp>

Inherits from Gambit::IniParser::Parser

Public Functions

Name
const std::vector< DRes::Observable > &getObservables() const
const std::vector< DRes::ModuleRule > &getModuleRules() const
const std::vector< DRes::BackendRule > &getBackendRules() const
const strfilename() const
Return the filename.
virtual voidreadFile(str name)
Read in the YAML file.

Additional inherited members

Public Functions inherited from Gambit::IniParser::Parser

Name
YAML::NodegetParametersNode() const
YAML::NodegetPriorsNode() const
YAML::NodegetPrinterNode() const
YAML::NodegetScannerNode() const
YAML::NodegetLoggerNode() const
YAML::NodegetKeyValuePairNode() const
template <typename… args>
bool
hasKey(args… keys) const
template <typename TYPE ,typename… args>
TYPE
getValue(args… keys) const
template <typename TYPE ,typename… args>
TYPE
getValueOrDef(TYPE def, const args &… keys) const
template <typename TYPE >
TYPE
getModelParameterEntry(str model, str param, str key) const
boolhasModelParameterEntry(str model, str param, str key) const
const std::set< str >getModelNames() const
Return list of model names (without “adhoc” model!)
const std::vector< str >getModelParameters(str model) const
const OptionsgetOptions(str key) const
Getter for options.
YAML::NodegetYAMLNode() const
Getter for the full YAML node.

Protected Functions inherited from Gambit::IniParser::Parser

Name
YAML::Nodefilename_to_node(str filename)
Read in the actual YAML file.
voidbasicParse(YAML::Node root, str filename)
Do the basic parsing of the YAML file.
voidprintNode(YAML::Node node, str filename, bool replace_yaml_file)
Print a node to file.

Public Functions Documentation

function getObservables

const std::vector< DRes::Observable > & getObservables() const

Getters for private observable and rules entries

function getModuleRules

const std::vector< DRes::ModuleRule > & getModuleRules() const

function getBackendRules

const std::vector< DRes::BackendRule > & getBackendRules() const

function filename

const str filename() const

Return the filename.

function readFile

virtual void readFile(
    str name
)

Read in the YAML file.

Reimplements: Gambit::IniParser::Parser::readFile


Updated on 2024-07-18 at 13:53:31 +0000