ROSE 0.11.145.192
|
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) |
Node Rose::Yaml::parseJson | ( | const boost::filesystem::path & | fileName | ) |
fileName | A path to the input JSON. |
Node Rose::Yaml::parseJson | ( | const std::string & | content | ) |
content | An input string, treated as JSON. |
Node Rose::Yaml::parseYaml | ( | const boost::filesystem::path & | fileName | ) |
fileName | A path to the input YAML. |
Node Rose::Yaml::parseYaml | ( | std::istream & | inputStream | ) |
inputStream | An input stream, read as YAML. |
Node Rose::Yaml::parseYaml | ( | const std::string & | content | ) |
content | An input C++ string, treated as a YAML object. |
Node Rose::Yaml::parseYaml | ( | const char * | content | ) |
content | An input C-style string (null-terminated), treated as a YAML object. |