library/param/codec/yaml/param_yaml.hh

namespace scarab

The standard scarab namespace.

class param_input_yaml
#include <param_yaml.hh>

Convert YAML to Param.

Options: None

Author
N.S. Oblath

Inherits from param_input_codec

Public Functions

param_input_yaml()
~param_input_yaml()
param *read_file(const std::string &a_filename, const param_node *a_options = nullptr)
param *read_string(const std::string &a_json_str, const param_node *a_options = nullptr)
param *read_node_type(const YAML::Node &a_node)
param_array *sequence_handler(const YAML::Node &a_node)
param_node *map_handler(const YAML::Node &a_node)
param_value *scalar_handler(const YAML::Node &a_node)
class param_output_yaml
#include <param_yaml.hh>

Convert YAMl to JSON.

Options: None

Author
N.S. Oblath

Inherits from param_output_codec

Public Functions

param_output_yaml()
~param_output_yaml()
bool write_file(const param &a_to_write, const std::string &a_filename, const param_node *a_options = nullptr)
bool write_string(const param &a_to_write, std::string &a_string, const param_node *a_options = nullptr)
YAML::Node check_param_type(const param &a_to_write)
YAML::Node param_node_handler(const param &a_to_write)
YAML::Node param_array_handler(const param &a_to_write)
YAML::Node param_value_handler(const param &a_to_write)