1#ifndef Rcfile_h_included_
2#define Rcfile_h_included_
16 void addFile(YAML::Node*);
61 Rcmap& contents() {
return contents_; }
YAML-based RC file.
Definition: Rcfile.h:54
void load(const std::string &file)
first file takes priority
Definition: Rcfile.cc:159
Rcmap getMap(const std::string &keyname) const
get item as map
Definition: Rcfile.cc:44
bool getBool(const std::string &keyname) const
get item as scalar bool
Definition: Rcfile.cc:103
bool is_map(const std::string &keyname) const
Is this key a submap?
Definition: Rcfile.cc:34
std::string getString(const std::string &keyname) const
get item as scalar string
Definition: Rcfile.cc:84
bool is_vector(const std::string &keyname) const
Is this key a vector?
Definition: Rcfile.cc:23
bool has_key(const std::string &keyname) const
Does this map have the given key ?
Definition: Rcfile.cc:16
std::vector< int > getVInt(const std::string &keyname) const
get item as vector of ints
Definition: Rcfile.cc:65
std::vector< bool > getVBool(const std::string &keyname) const
get item as vector of bools
Definition: Rcfile.cc:74
std::vector< std::string > getVString(const std::string &keyname) const
get item as vector of strings
Definition: Rcfile.cc:55
int getInt(const std::string &keyname) const
get item as scalar int
Definition: Rcfile.cc:94