Vcsn  2.8
Be Rational
vcsn::detail::config Class Reference

A YAML configuration. More...

#include <configuration.hh>

Collaboration diagram for vcsn::detail::config:

Classes

class  value
 The class returned by [] operators. More...
 

Public Types

using Node = YAML::Node
 

Public Member Functions

 config ()
 Load all the configuration files. More...
 
value operator[] (const std::string &key)
 Access a subkey. More...
 

Private Attributes

Node config_tree_
 

Detailed Description

A YAML configuration.

Acts as the top of the configuration tree.

Definition at line 22 of file configuration.hh.

Member Typedef Documentation

◆ Node

using vcsn::detail::config::Node = YAML::Node

Definition at line 25 of file configuration.hh.

Constructor & Destructor Documentation

◆ config()

vcsn::detail::config::config ( )

Load all the configuration files.

Definition at line 148 of file configuration.cc.

References config_tree_, vcsn::expand_tilda(), and vcsn::xgetenv().

Referenced by vcsn::configuration().

Here is the call graph for this function:

Member Function Documentation

◆ operator[]()

config::value vcsn::detail::config::operator[] ( const std::string &  key)

Access a subkey.

Definition at line 167 of file configuration.cc.

References config_tree_, and vcsn::detail::config::value::value().

Here is the call graph for this function:

Member Data Documentation

◆ config_tree_

Node vcsn::detail::config::config_tree_
private

Definition at line 84 of file configuration.hh.

Referenced by config(), operator[](), and vcsn::detail::config::value::value().


The documentation for this class was generated from the following files: