#include <yaml_parser.hpp>
|
template<typename char_T = char> |
static boost::program_options::basic_parsed_options< char_T > | parse (std::istream &istrm, const boost::program_options::options_description &desc) |
| Parse YAML configuration from istream. More...
|
|
template<typename char_T = char> |
static boost::program_options::basic_parsed_options< char_T > | parse (const YAML::Node &node, const boost::program_options::options_description &desc) |
| Pasre YAML configuration from YAML::Node. More...
|
|
|
template<typename char_T > |
static void | parse_subnode (const YAML::Node &node, const std::string &key, boost::program_options::basic_parsed_options< char_T > &result) |
|
template<typename char_T > |
static void | parse_subnode_sequence (const YAML::Node &node, const std::string &key, boost::program_options::basic_parsed_options< char_T > &result) |
|
template<typename char_T > |
static void | parse_subnode_map (const YAML::Node &node, const std::string &key, boost::program_options::basic_parsed_options< char_T > &result) |
|
template<typename char_T > |
static void | add_option (const std::string &key, const std::basic_string< char_T > &value, boost::program_options::basic_parsed_options< char_T > &result) |
|
◆ add_option()
template<typename char_T >
static void yaml_parser::add_option |
( |
const std::string & |
key, |
|
|
const std::basic_string< char_T > & |
value, |
|
|
boost::program_options::basic_parsed_options< char_T > & |
result |
|
) |
| |
|
inlinestaticprotected |
◆ parse() [1/2]
template<typename char_T = char>
static boost::program_options::basic_parsed_options< char_T > yaml_parser::parse |
( |
const YAML::Node & |
node, |
|
|
const boost::program_options::options_description & |
desc |
|
) |
| |
|
inlinestatic |
Pasre YAML configuration from YAML::Node.
- Template Parameters
-
- Parameters
-
node | YAML::Node containing YAML configuration |
desc | Program options description, only options described here will be parsed from the YAML configuraion, all other options will be ignored from the file |
- Returns
- boost::program_options::basic_parsed_options<char_T> Parsed options
◆ parse() [2/2]
template<typename char_T = char>
static boost::program_options::basic_parsed_options< char_T > yaml_parser::parse |
( |
std::istream & |
istrm, |
|
|
const boost::program_options::options_description & |
desc |
|
) |
| |
|
inlinestatic |
Parse YAML configuration from istream.
- Template Parameters
-
- Parameters
-
istrm | Istream containing YAML configuration |
desc | Program options description, only options described here will be parsed from the YAML configuraion, all other options will be ignored from the file |
- Returns
- boost::program_options::basic_parsed_options<char_T> Parsed options
◆ parse_subnode()
template<typename char_T >
static void yaml_parser::parse_subnode |
( |
const YAML::Node & |
node, |
|
|
const std::string & |
key, |
|
|
boost::program_options::basic_parsed_options< char_T > & |
result |
|
) |
| |
|
inlinestaticprotected |
◆ parse_subnode_map()
template<typename char_T >
static void yaml_parser::parse_subnode_map |
( |
const YAML::Node & |
node, |
|
|
const std::string & |
key, |
|
|
boost::program_options::basic_parsed_options< char_T > & |
result |
|
) |
| |
|
inlinestaticprotected |
◆ parse_subnode_sequence()
template<typename char_T >
static void yaml_parser::parse_subnode_sequence |
( |
const YAML::Node & |
node, |
|
|
const std::string & |
key, |
|
|
boost::program_options::basic_parsed_options< char_T > & |
result |
|
) |
| |
|
inlinestaticprotected |
The documentation for this class was generated from the following file: