IJsonHandler that does nothing but ignore the next value.
More...
#include <CesiumJsonReader/IgnoreValueJsonHandler.h>
|
void | reset (IJsonHandler *pParent) noexcept |
| Resets the parent of this IJsonHandler.
|
|
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.
|
|
IJsonHandler * | parent () noexcept |
| Obtains the currently set parent of this handler, or nullptr if reset hasn't yet been called.
|
|
Public Member Functions inherited from CesiumJsonReader::IJsonHandler |
IJsonHandler that does nothing but ignore the next value.
Each read...
call will return the current parent of this JsonHandler, unless the value being read is an object or array, in which case it will continue until the object or array is ended before returning.
Definition at line 16 of file IgnoreValueJsonHandler.h.
◆ readArrayEnd()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readArrayEnd |
( |
| ) |
|
|
overridevirtual |
Called when the JSON parser encounters the end of an array.
- Returns
- A IJsonHandler that will handle the next
read...
call. This can be the same handler as the current one.
Implements CesiumJsonReader::IJsonHandler.
◆ readArrayStart()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readArrayStart |
( |
| ) |
|
|
overridevirtual |
Called when the JSON parser encounters the start of an array.
- Returns
- A IJsonHandler that will handle the next
read...
call. This can be the same handler as the current one.
Implements CesiumJsonReader::IJsonHandler.
◆ readBool()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readBool |
( |
bool | b | ) |
|
|
overridevirtual |
Called when the JSON parser encounters a boolean value.
- Parameters
-
- Returns
- A IJsonHandler that will handle the next
read...
call. This can be the same handler as the current one.
Implements CesiumJsonReader::IJsonHandler.
◆ readDouble()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readDouble |
( |
double | d | ) |
|
|
overridevirtual |
Called when the JSON parser encounters a double value.
- Parameters
-
- Returns
- A IJsonHandler that will handle the next
read...
call. This can be the same handler as the current one.
Implements CesiumJsonReader::IJsonHandler.
◆ readInt32()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readInt32 |
( |
int32_t | i | ) |
|
|
overridevirtual |
Called when the JSON parser encounters an int32 value.
- Parameters
-
- Returns
- A IJsonHandler that will handle the next
read...
call. This can be the same handler as the current one.
Implements CesiumJsonReader::IJsonHandler.
◆ readInt64()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readInt64 |
( |
int64_t | i | ) |
|
|
overridevirtual |
Called when the JSON parser encounters an int64 value.
- Parameters
-
- Returns
- A IJsonHandler that will handle the next
read...
call. This can be the same handler as the current one.
Implements CesiumJsonReader::IJsonHandler.
◆ readNull()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readNull |
( |
| ) |
|
|
overridevirtual |
◆ readObjectEnd()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readObjectEnd |
( |
| ) |
|
|
overridevirtual |
Called when the JSON parser encounters the end of an object.
- Returns
- A IJsonHandler that will handle the next
read...
call. This can be the same handler as the current one.
Implements CesiumJsonReader::IJsonHandler.
◆ readObjectKey()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readObjectKey |
( |
const std::string_view & | str | ) |
|
|
overridevirtual |
Called when the JSON parser encounters a key while reading an object.
- Parameters
-
- Returns
- A IJsonHandler that will handle the next
read...
call. This can be the same handler as the current one.
Implements CesiumJsonReader::IJsonHandler.
◆ readObjectStart()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readObjectStart |
( |
| ) |
|
|
overridevirtual |
Called when the JSON parser encounters the beginning of an object.
- Returns
- A IJsonHandler that will handle the next
read...
call. This can be the same handler as the current one.
Implements CesiumJsonReader::IJsonHandler.
◆ readString()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readString |
( |
const std::string_view & | str | ) |
|
|
overridevirtual |
Called when the JSON parser encounters a string value.
- Parameters
-
- Returns
- A IJsonHandler that will handle the next
read...
call. This can be the same handler as the current one.
Implements CesiumJsonReader::IJsonHandler.
◆ readUint32()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readUint32 |
( |
uint32_t | i | ) |
|
|
overridevirtual |
Called when the JSON parser encounters a uint32 value.
- Parameters
-
- Returns
- A IJsonHandler that will handle the next
read...
call. This can be the same handler as the current one.
Implements CesiumJsonReader::IJsonHandler.
◆ readUint64()
virtual IJsonHandler * CesiumJsonReader::IgnoreValueJsonHandler::readUint64 |
( |
uint64_t | i | ) |
|
|
overridevirtual |
Called when the JSON parser encounters a uint64 value.
- Parameters
-
- Returns
- A IJsonHandler that will handle the next
read...
call. This can be the same handler as the current one.
Implements CesiumJsonReader::IJsonHandler.
◆ reportWarning()
virtual void CesiumJsonReader::IgnoreValueJsonHandler::reportWarning |
( |
const std::string & | warning, |
|
|
std::vector< std::string > && | context = std::vector< std::string >() ) |
|
overridevirtual |
Report a warning while reading JSON.
- Parameters
-
warning | The warning to report. |
context | Context information to include with this warning to help debugging. |
Implements CesiumJsonReader::IJsonHandler.
The documentation for this class was generated from the following file: