This class is used by both the ValidatingSerializer and ValidationParser objects. More...
|Validator (const ValidSchema &schema)|
|void||setCount (int64_t val)|
|bool||typeIsExpected (Type type) const|
|Type||nextTypeExpected () const|
|int||nextSizeExpected () const|
|bool||getCurrentRecordName (std::string &name) const|
|bool||getNextFieldName (std::string &name) const|
|void||checkTypeExpected (Type type)|
|void||checkFixedSizeExpected (int size)|
This class is used by both the ValidatingSerializer and ValidationParser objects.
It advances the parse tree (containing logic how to advance through the various compound types, for example a record must advance through all leaf nodes but a union only skips to one), and reports which type is next.