|
cesium-native 0.63.0
|
Special case of ArrayJsonHandler for handling arrays of arbitrary JSON values. More...
#include <CesiumJsonReader/ArrayJsonHandler.h>
Public Types | |
| using | ValueType = std::vector<CesiumUtility::JsonValue> |
| The destination type. | |
| using | ValueType |
| The destination type. | |
Public Member Functions | |
| void | reset (IJsonHandler *pParent, std::vector< CesiumUtility::JsonValue > *pArray) |
| Resets the parent and destination array of this ArrayJsonHandler. | |
| 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 * | 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 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. | |
| virtual void | reportWarning (const std::string &warning, std::vector< std::string > &&context=std::vector< std::string >()) override |
| Report a warning while reading JSON. | |
| ArrayJsonHandler (Ts &&... args) noexcept | |
| Creates a new ArrayJsonHandler. | |
| void | reset (IJsonHandler *pParent, std::vector< CesiumUtility::JsonValue > *pArray) |
| Resets the parent and destination array of this ArrayJsonHandler. | |
| 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 * | 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 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) noexcept override |
| Called when the JSON parser encounters a key while reading an object. | |
| virtual IJsonHandler * | readObjectEnd () noexcept 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. | |
| virtual void | reportWarning (const std::string &warning, std::vector< std::string > &&context=std::vector< std::string >()) override |
| Report a warning while reading JSON. | |
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. | |
Special case of ArrayJsonHandler for handling arrays of arbitrary JSON values.
Definition at line 154 of file ArrayJsonHandler.h.
| using CesiumJsonReader::ArrayJsonHandler< CesiumUtility::JsonValue, JsonObjectJsonHandler >::ValueType |
The destination type.
Definition at line 27 of file ArrayJsonHandler.h.
| using CesiumJsonReader::ArrayJsonHandler< CesiumUtility::JsonValue, JsonObjectJsonHandler >::ValueType = std::vector<CesiumUtility::JsonValue> |
The destination type.
Definition at line 159 of file ArrayJsonHandler.h.
|
inlinenoexcept |
Definition at line 161 of file ArrayJsonHandler.h.
|
inlinenoexcept |
Creates a new ArrayJsonHandler.
| args | The arguments that will be passed to the constructor of THandler when it's instantiated. |
Definition at line 36 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters the end of an array.
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 113 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters the end of an array.
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 287 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters the start of an array.
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 103 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters the start of an array.
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 273 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters a boolean value.
| b | The boolean value. |
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 57 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters a boolean value.
| b | The boolean value. |
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 184 of file ArrayJsonHandler.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 77 of file ArrayJsonHandler.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 234 of file ArrayJsonHandler.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 61 of file ArrayJsonHandler.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 194 of file ArrayJsonHandler.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 69 of file ArrayJsonHandler.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 214 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters a null.
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 53 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters a null.
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 174 of file ArrayJsonHandler.h.
|
inlineoverridevirtualnoexcept |
Called when the JSON parser encounters the end of an object.
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 101 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters the end of an object.
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 269 of file ArrayJsonHandler.h.
|
inlineoverridevirtualnoexcept |
Called when the JSON parser encounters a key while reading an object.
| str | The key. |
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 96 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters a key while reading an object.
| str | The key. |
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 265 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters the beginning of an object.
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 85 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters the beginning of an object.
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 254 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters a string value.
| str | The string value. |
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 81 of file ArrayJsonHandler.h.
|
inlineoverridevirtual |
Called when the JSON parser encounters a string value.
| str | The string value. |
read... call. This can be the same handler as the current one. Reimplemented from CesiumJsonReader::JsonHandler.
Definition at line 244 of file ArrayJsonHandler.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 65 of file ArrayJsonHandler.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 204 of file ArrayJsonHandler.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 73 of file ArrayJsonHandler.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 224 of file ArrayJsonHandler.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 115 of file ArrayJsonHandler.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 289 of file ArrayJsonHandler.h.
|
inline |
Resets the parent and destination array of this ArrayJsonHandler.
Definition at line 46 of file ArrayJsonHandler.h.
|
inline |
Resets the parent and destination array of this ArrayJsonHandler.
Definition at line 168 of file ArrayJsonHandler.h.