Orcus
|
#include <json_document_tree.hpp>
Public Member Functions | |
document_tree (const document_tree &)=delete | |
document_tree (document_tree &&other) | |
document_tree (string_pool &pool) | |
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 (const std::string &strm, const json_config &config) |
void | load (const char *p, size_t n, 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 |
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.
json::const_node orcus::json::document_tree::get_document_root | ( | ) | const |
Get the root node of the document.
json::node orcus::json::document_tree::get_document_root | ( | ) |
Get the root node of the document.
void orcus::json::document_tree::load | ( | const std::string & | strm, |
const json_config & | config | ||
) |
Load raw string stream containing a JSON structure to populate the document tree.
strm | stream containing a JSON structure. |
config | configuration object. |
void orcus::json::document_tree::load | ( | const char * | p, |
size_t | n, | ||
const json_config & | config | ||
) |
Load raw string stream containing a JSON structure to populate the document tree.
p | pointer to the stream containing a JSON structure. |
n | size of the stream. |
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. |