8 #include <boost/any.hpp> 10 #include <yaml-cpp/yaml.h> 43 if (!
node_.IsScalar())
49 std::string
str()
const;
52 std::vector<std::string>
keys()
const;
55 bool is_valid(
const std::string& key)
const;
57 void remove(
const std::string& key);
66 std::ostream&
print(std::ostream&
out)
const;
70 std::unique_ptr<std::vector<std::string>>
gen_keys()
const;
72 mutable std::unique_ptr<const std::vector<std::string>>
keys_;
The class returned by [] operators.
std::ostream & operator<<(std::ostream &out, const config::config_value &v)
friend void swap(config_value &first, config_value &second)
std::vector< std::string > keys() const
std::ostream & print(std::ostream &out) const
std::string configuration(const std::string &key)
Main interface to the configuration function key it the 'path' to the desired key using periofs as a ...
std::unique_ptr< std::vector< std::string > > gen_keys() const
void merge(const config_value &from)
Merge a value into another one - and modify the first.
detail::config & get_config()
Get the configuration singleton.
config_value & operator=(config_value rhs)
Assign a new value to this key.
auto out(const Aut &aut, state_t_of< Aut > s)
Indexes of visible transitions leaving state s.
std::string str() const
Get the node value as a string.
config_value operator[](const std::string &key) const
std::unique_ptr< const std::vector< std::string > > keys_
The YAML configuration (acts as the top of the configuration tree).
config()
Load all the configuration files.
bool is_valid(const std::string &key) const
Check that this node refers to a key that exists in the tree.