Scarab  v3.4.4
Project 8 C++ Utility Library
Public Member Functions | List of all members
param_input_yaml Class Reference

Convert YAML to Param. More...

#include <param_yaml.hh>

Inheritance diagram for param_input_yaml:
Inheritance graph

Public Member Functions

 param_input_yaml ()
 
virtual ~param_input_yaml ()
 
virtual param_ptr_t read_file (const std::string &a_filename, const param_node &a_options=param_node())
 
virtual param_ptr_t read_string (const std::string &a_string, const param_node &a_options=param_node())
 
param_ptr_t read_node_type (const YAML::Node &a_node)
 
std::unique_ptr< param_arraysequence_handler (const YAML::Node &a_node)
 
std::unique_ptr< param_nodemap_handler (const YAML::Node &a_node)
 
std::unique_ptr< param_valuescalar_handler (const YAML::Node &a_node)
 
- Public Member Functions inherited from param_input_codec
 param_input_codec ()
 
virtual ~param_input_codec ()
 

Detailed Description

Convert YAML to Param.

Author
N.S. Oblath

Options: None

Definition at line 34 of file param_yaml.hh.

Constructor & Destructor Documentation

◆ param_input_yaml()

Definition at line 27 of file param_yaml.cc.

◆ ~param_input_yaml()

~param_input_yaml ( )
virtual

Definition at line 30 of file param_yaml.cc.

Member Function Documentation

◆ map_handler()

std::unique_ptr< param_node > map_handler ( const YAML::Node &  a_node)

Definition at line 112 of file param_yaml.cc.

◆ read_file()

param_ptr_t read_file ( const std::string &  a_filename,
const param_node a_options = param_node() 
)
virtual

Implements param_input_codec.

Definition at line 33 of file param_yaml.cc.

◆ read_node_type()

param_ptr_t read_node_type ( const YAML::Node &  a_node)

Definition at line 61 of file param_yaml.cc.

◆ read_string()

std::unique_ptr< param > read_string ( const std::string &  a_string,
const param_node a_options = param_node() 
)
virtual

Implements param_input_codec.

Definition at line 47 of file param_yaml.cc.

◆ scalar_handler()

std::unique_ptr< param_value > scalar_handler ( const YAML::Node &  a_node)

Definition at line 132 of file param_yaml.cc.

◆ sequence_handler()

std::unique_ptr< param_array > sequence_handler ( const YAML::Node &  a_node)

Definition at line 92 of file param_yaml.cc.


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