Orcus
|
#include <json_document_tree.hpp>
Public Types | |
typedef json::detail::node | node |
Public Member Functions | |
json_document_tree (string_pool &pool) | |
void | load (const std::string &strm, const json_config &config) |
void | load (const char *p, size_t n, const json_config &config) |
node | get_document_root () const |
std::string | dump () const |
std::string | dump_xml () const |
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.
node orcus::json_document_tree::get_document_root | ( | ) | const |
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. |