cesium-native 0.43.0
|
IJsonHandler for reading integer values. More...
#include <CesiumJsonReader/IntegerJsonHandler.h>
Public Member Functions | |
void | reset (IJsonHandler *pParent, T *pInteger) |
Resets the parent IJsonHandler of this instance and sets the pointer to its destination integer value. | |
T * | getObject () |
Obtains the integer pointer set on this handler by reset. | |
virtual IJsonHandler * | readInt32 (int32_t i) override |
Called when the JSON parser encounters an int32 value. | |
virtual IJsonHandler * | readUint32 (uint32_t i) override |
Called when the JSON parser encounters a uint32 value. | |
virtual IJsonHandler * | readInt64 (int64_t i) override |
Called when the JSON parser encounters an int64 value. | |
virtual IJsonHandler * | readUint64 (uint64_t i) override |
Called when the JSON parser encounters a uint64 value. | |
virtual IJsonHandler * | readDouble (double d) override |
Called when the JSON parser encounters a double value. | |
virtual void | reportWarning (const std::string &warning, std::vector< std::string > &&context) override |
Report a warning while reading JSON. | |
Public Member Functions inherited from CesiumJsonReader::JsonHandler | |
virtual IJsonHandler * | readNull () override |
Called when the JSON parser encounters a null . | |
virtual IJsonHandler * | readBool (bool b) override |
Called when the JSON parser encounters a boolean value. | |
virtual IJsonHandler * | readString (const std::string_view &str) override |
Called when the JSON parser encounters a string value. | |
virtual IJsonHandler * | readObjectStart () override |
Called when the JSON parser encounters the beginning of an object. | |
virtual IJsonHandler * | readObjectKey (const std::string_view &str) override |
Called when the JSON parser encounters a key while reading an object. | |
virtual IJsonHandler * | readObjectEnd () override |
Called when the JSON parser encounters the end of an object. | |
virtual IJsonHandler * | readArrayStart () override |
Called when the JSON parser encounters the start of an array. | |
virtual IJsonHandler * | readArrayEnd () override |
Called when the JSON parser encounters the end of an array. | |
Public Member Functions inherited from CesiumJsonReader::IJsonHandler |
Additional Inherited Members | |
Protected Member Functions inherited from CesiumJsonReader::JsonHandler | |
void | reset (IJsonHandler *pParent) |
Resets the parent IJsonHandler of this handler. | |
IJsonHandler * | parent () |
Obtains the parent IJsonHandler of this handler. | |
IJsonHandler * | ignoreAndReturnToParent () |
Ignore a single value and then return to the parent handler. | |
IJsonHandler * | ignoreAndContinue () |
Ignore a single value and the continue processing more tokens with this handler. | |
IJsonHandler for reading integer values.
Definition at line 14 of file IntegerJsonHandler.h.
|
inlinenoexcept |
Definition at line 16 of file IntegerJsonHandler.h.
|
inline |
Obtains the integer pointer set on this handler by reset.
Definition at line 30 of file IntegerJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters a double value.
d | The double value. |
read...
call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 57 of file IntegerJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters an int32 value.
i | The int32 value. |
read...
call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 33 of file IntegerJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters an int64 value.
i | The int64 value. |
read...
call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 45 of file IntegerJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters a uint32 value.
i | The uint32 value. |
read...
call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 39 of file IntegerJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters a uint64 value.
i | The uint64 value. |
read...
call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 51 of file IntegerJsonHandler.h.
|
inlineoverridevirtual |
Report a warning while reading JSON.
warning | The warning to report. |
context | Context information to include with this warning to help debugging. |
Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 69 of file IntegerJsonHandler.h.
|
inline |
Resets the parent IJsonHandler of this instance and sets the pointer to its destination integer value.
Definition at line 22 of file IntegerJsonHandler.h.