5 #ifndef JODA_RJPATHSREADER_H
6 #define JODA_RJPATHSREADER_H
8 #include <rapidjson/reader.h>
11 #define JODA_DEFAULT_PATH_DEPTH 50
14 :
public rapidjson::BaseReaderHandler<rapidjson::UTF8<>, RJPathsReader> {
21 bool Uint(
unsigned int i);
22 bool Int64(int64_t int64);
23 bool Uint64(uint64_t uint64);
25 bool RawNumber(
const Ch *str, rapidjson::SizeType len,
bool copy);
26 bool String(
const Ch *ch, rapidjson::SizeType type,
bool b);
28 bool Key(
const Ch *str, rapidjson::SizeType len,
bool copy);
31 bool EndArray(rapidjson::SizeType type);
32 const std::vector<std::string> &
getPaths()
const;
36 std::vector<std::string> stack;
37 std::vector<std::string> paths;
38 std::vector<long> arrStack;
43 void addStack(
const Ch *str, rapidjson::SizeType len);
Definition: RJPathsReader.h:14
const std::vector< std::string > & getPaths() const
Definition: RJPathsReader.cpp:114
bool EndArray(rapidjson::SizeType type)
Definition: RJPathsReader.cpp:90
bool Uint64(uint64_t uint64)
Definition: RJPathsReader.cpp:40
bool StartArray()
Definition: RJPathsReader.cpp:85
bool Int64(int64_t int64)
Definition: RJPathsReader.cpp:34
bool Key(const Ch *str, rapidjson::SizeType len, bool copy)
Definition: RJPathsReader.cpp:71
bool EndObject(rapidjson::SizeType type)
Definition: RJPathsReader.cpp:78
bool String(const Ch *ch, rapidjson::SizeType type, bool b)
Definition: RJPathsReader.cpp:59
RJPathsReader()
Definition: RJPathsReader.cpp:98
void clear()
Definition: RJPathsReader.cpp:134
bool Default()
Definition: RJPathsReader.cpp:8
bool Null()
Definition: RJPathsReader.cpp:10
bool StartObject()
Definition: RJPathsReader.cpp:66
bool Int(int i)
Definition: RJPathsReader.cpp:22
bool Bool(bool b)
Definition: RJPathsReader.cpp:16
bool Double(double d)
Definition: RJPathsReader.cpp:46
bool RawNumber(const Ch *str, rapidjson::SizeType len, bool copy)
Definition: RJPathsReader.cpp:52
bool Uint(unsigned int i)
Definition: RJPathsReader.cpp:28