|
Orcus
|
#include <json_document_tree.hpp>
Public Member Functions | |
| document_tree (const document_tree &)=delete | |
| document_tree (document_tree &&other) | |
| document_tree (document_resource &res) | |
| document_tree (std::initializer_list< detail::init::node > vs) | |
| document_tree (array vs) | |
| document_tree (object obj) | |
| document_tree & | operator= (std::initializer_list< detail::init::node > vs) |
| document_tree & | operator= (array vs) |
| document_tree & | operator= (object obj) |
| void | load (std::string_view stream, const json_config &config) |
| json::const_node | get_document_root () const |
| json::node | get_document_root () |
| std::string | dump () const |
| std::string | dump_xml () const |
| std::string | dump_yaml () const |
| void | swap (document_tree &other) |
Friends | |
| class | const_node |
| class | node |
This class stores a parsed JSON document tree structure.
| std::string orcus::json::document_tree::dump | ( | ) | const |
Dump the JSON document tree to string.
| std::string orcus::json::document_tree::dump_xml | ( | ) | const |
Dump the JSON document tree to an XML structure.
| std::string orcus::json::document_tree::dump_yaml | ( | ) | const |
Dump the JSON document tree as YAML output.
| json::node orcus::json::document_tree::get_document_root | ( | ) |
Get the root node of the document.
| json::const_node orcus::json::document_tree::get_document_root | ( | ) | const |
Get the root node of the document.
| void orcus::json::document_tree::load | ( | std::string_view | stream, |
| const json_config & | config ) |
Load raw string stream containing a JSON structure to populate the document tree.
| stream | stream containing a JSON structure. |
| config | configuration object. |
| void orcus::json::document_tree::swap | ( | document_tree & | other | ) |
Swap the content of the document with another document instance.
| other | document instance to swap the content with. |