![]() |
Open Lighting Architecture 0.10.9
|
Maintains a Json Pointer (RFC 6901) given a set of Json parse events.
Given the JSON:
It has the pointers:
When parsing this example, the order of method invocation should be:
Public Member Functions | |
| PointerTracker (JsonPointer *pointer) | |
| void | OpenObject () |
| Open a new Object Element. | |
| void | SetProperty (const std::string &property) |
| Set the property name within an Object element. Note if we're not currently in an object element this has no effect. | |
| void | CloseObject () |
| Close an Object element. Note if we're not currently in an object element this has no effect. | |
| void | OpenArray () |
| Open a new Array Element Note that until IncrementIndex() is called, the array index will be -1. This is so you can call IncrementIndex() on each element. | |
| void | CloseArray () |
| Close an Array Element If we're not currently in an array this doesn't do anything. | |
| void | IncrementIndex () |
| Increment an array index. If we're not current in an array this doesn't do anything. | |