5 #ifndef JODA_VIEWCURSOR_H
6 #define JODA_VIEWCURSOR_H
27 const std::vector<std::string> *viewPaths);
35 bool isBase(
const std::string &currPointer)
const;
36 bool isShared(
const std::string &currPointer)
const;
38 const std::string &curr,
39 std::vector<ViewCursor::ViewObjectMember> &previousOverwrites);
44 std::vector<const RJValue *> _stack;
46 const std::vector<std::string> *viewPaths;
47 const RJValue *nextDestination =
nullptr;
48 bool nextDestinationSet =
false;
rapidjson::GenericPointer< RJValue, RJBaseAlloc > RJPointer
Definition: RJFwd.h:30
rapidjson::GenericValue< RJChar, RJMemoryPoolAlloc > RJValue
Definition: RJFwd.h:29
Definition: ViewCursor.h:13
void follow(const RJPointer &ptr)
Definition: ViewCursor.cpp:93
void unfollow()
Definition: ViewCursor.cpp:85
bool isBase(const std::string &currPointer) const
Definition: ViewCursor.cpp:120
bool isShared(const std::string &currPointer) const
Definition: ViewCursor.cpp:132
const ViewCursor * getPreviousCursor() const
Definition: ViewCursor.cpp:15
const RJValue * getVal() const
Definition: ViewCursor.cpp:13
ViewCursor(const RJValue *doc, ViewCursor *, const std::vector< std::string > *viewPaths)
Definition: ViewCursor.cpp:9
void getOverwrites(const std::string &curr, std::vector< ViewCursor::ViewObjectMember > &previousOverwrites)
Definition: ViewCursor.cpp:19
void reset()
Definition: ViewCursor.cpp:103
void setNextDestination(const RJValue *nextDestination)
Definition: ViewCursor.cpp:115
void followAtt(const std::string &attr)
Definition: ViewCursor.cpp:53
Definition: ViewCursor.h:15
std::string name
Definition: ViewCursor.h:20
ViewObjectMember(const std::string &name, const RJValue *val)
Definition: ViewCursor.h:16
ViewObjectMember(std::string &&name, const RJValue *val)
Definition: ViewCursor.h:19
const RJValue * val
Definition: ViewCursor.h:22