3#include "IJsonHandler.h"
4#include "IgnoreValueJsonHandler.h"
51 const std::string& warning,
52 std::vector<std::string>&& context = std::vector<std::string>())
override;
Base interface for all JSON handlers. Types that need to be deserialized from JSON should implement I...
IJsonHandler that does nothing but ignore the next value.
A dummy implementation of IJsonHandler that will report a warning and return its parent when any of i...
virtual IJsonHandler * readNull() override
Called when the JSON parser encounters a null.
virtual IJsonHandler * readUint64(uint64_t i) override
Called when the JSON parser encounters a uint64 value.
virtual IJsonHandler * readInt32(int32_t i) override
Called when the JSON parser encounters an int32 value.
virtual IJsonHandler * readObjectStart() override
Called when the JSON parser encounters the beginning of an object.
virtual IJsonHandler * readArrayEnd() override
Called when the JSON parser encounters the end of an array.
IJsonHandler * ignoreAndReturnToParent()
Ignore a single value and then return to the parent handler.
virtual IJsonHandler * readInt64(int64_t i) override
Called when the JSON parser encounters an int64 value.
virtual void reportWarning(const std::string &warning, std::vector< std::string > &&context=std::vector< std::string >()) override
Report a warning while reading JSON.
virtual IJsonHandler * readString(const std::string_view &str) override
Called when the JSON parser encounters a string value.
IJsonHandler * ignoreAndContinue()
Ignore a single value and the continue processing more tokens with this handler.
virtual IJsonHandler * readObjectEnd() override
Called when the JSON parser encounters the end of an object.
IJsonHandler * parent()
Obtains the parent IJsonHandler of this handler.
virtual IJsonHandler * readArrayStart() override
Called when the JSON parser encounters the start of an array.
void reset(IJsonHandler *pParent)
Resets the parent IJsonHandler of this handler.
virtual IJsonHandler * readUint32(uint32_t i) override
Called when the JSON parser encounters a uint32 value.
virtual IJsonHandler * readBool(bool b) override
Called when the JSON parser encounters a boolean value.
virtual IJsonHandler * readDouble(double d) override
Called when the JSON parser encounters a double value.
virtual IJsonHandler * readObjectKey(const std::string_view &str) override
Called when the JSON parser encounters a key while reading an object.
Classes for reading JSON.