Zigbee Protocol Controller 1.6.0
yaml_parser Class Reference

#include <yaml_parser.hpp>

Static Public Member Functions

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...
 

Static Protected Member Functions

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)
 

Member Function Documentation

◆ 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
char
Parameters
nodeYAML::Node containing YAML configuration
descProgram 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
char
Parameters
istrmIstream containing YAML configuration
descProgram 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: