17 #define RAPIDJSON_WRITE_DEFAULT_FLAGS ::rapidjson::kWriteNanAndInfFlag 18 #define RAPIDJSON_PARSE_DEFAULT_FLAGS ::rapidjson::kParseNanAndInfFlag 21 #include <boost/lexical_cast.hpp> 23 #include <rapidjson/document.h> 30 namespace ns_rapidjson
32 template <
class t_Node>
55 if (node_stack_[depth].isArray())
57 return (getRawNode(depth - 1)[node_stack_[depth].index_]);
61 return (*node_stack_[depth].node_);
68 if (
true == node_stack_.empty())
74 return (getRawNode(node_stack_.size() - 1));
t_Node & getRawNode(const std::size_t depth)
Get current node.
std::vector< NodeWrapper > node_stack_
Stack of nodes.
ariles::Node< t_Node * > NodeWrapper
Copied from a newer version of RapidJSON to addd this functionality to older versions.
::rapidjson::Document document_
instance of the parser