ROSE 0.11.145.147
Rose::Yaml Namespace Reference

Description

Entities for operating on YAML.

Functions

JSON to YAML conversion.

Parse JSON input using nhlohhman::json and then convert to YAML.

Node parseJson (const boost::filesystem::path &fileName)
 
Node parseJson (const std::string &content)
 
YAML parsing.

Parse YAML from various types of inputs.

These are basically aliases for Sawyer::Yaml::parse.

The parseYaml(const boost::filesystem::path &fileName) overload differs from the other overloads in that it treats the input as a path to the input YAML, while the other overloads all assume the input itself is YAML.

Node parseYaml (const boost::filesystem::path &fileName)
 
Node parseYaml (std::istream &inputStream)
 
Node parseYaml (const std::string &content)
 
Node parseYaml (const char *content)
 

Function Documentation

◆ parseJson() [1/2]

Node Rose::Yaml::parseJson ( const boost::filesystem::path &  fileName)
Parameters
fileNameA path to the input JSON.

◆ parseJson() [2/2]

Node Rose::Yaml::parseJson ( const std::string &  content)
Parameters
contentAn input string, treated as JSON.

◆ parseYaml() [1/4]

Node Rose::Yaml::parseYaml ( const boost::filesystem::path &  fileName)
Parameters
fileNameA path to the input YAML.

◆ parseYaml() [2/4]

Node Rose::Yaml::parseYaml ( std::istream &  inputStream)
Parameters
inputStreamAn input stream, read as YAML.

◆ parseYaml() [3/4]

Node Rose::Yaml::parseYaml ( const std::string &  content)
Parameters
contentAn input C++ string, treated as a YAML object.

◆ parseYaml() [4/4]

Node Rose::Yaml::parseYaml ( const char *  content)
Parameters
contentAn input C-style string (null-terminated), treated as a YAML object.