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 str | filename() const Return the filename. |
virtual void | readFile(str name) Read in the YAML file. |
Additional inherited members
Public Functions inherited from Gambit::IniParser::Parser
Name | |
---|---|
YAML::Node | getParametersNode() const |
YAML::Node | getPriorsNode() const |
YAML::Node | getPrinterNode() const |
YAML::Node | getScannerNode() const |
YAML::Node | getLoggerNode() const |
YAML::Node | getKeyValuePairNode() 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 |
bool | hasModelParameterEntry(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 Options | getOptions(str key) const Getter for options. |
YAML::Node | getYAMLNode() const Getter for the full YAML node. |
Protected Functions inherited from Gambit::IniParser::Parser
Name | |
---|---|
YAML::Node | filename_to_node(str filename) Read in the actual YAML file. |
void | basicParse(YAML::Node root, str filename) Do the basic parsing of the YAML file. |
void | printNode(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