Orcus
|
#include <json_document_tree.hpp>
Public Member Functions | |
subtree (const document_tree &src, std::string_view path) | |
subtree (const subtree &)=delete | |
subtree (subtree &&other) | |
subtree & | operator= (subtree &&other) |
std::string | dump (std::size_t indent) const |
References a subtree structure of an existing document_tree instance.
orcus::json::subtree::subtree | ( | const document_tree & | src, |
std::string_view | path ) |
Creates a subtree reference of a source document.
src | Source document instance. |
path | JSONPath expression referencing the root of a subtree in the source document. |
std::string orcus::json::subtree::dump | ( | std::size_t | indent | ) | const |
Dump the subtree to a string.
indent | Number of whitespace characters to use for one indent level. Note that specifying the indent value of 0 will generate output without line breaks. |