cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumJsonReader::IgnoreValueJsonHandler Class Reference

IJsonHandler that does nothing but ignore the next value. More...

#include <CesiumJsonReader/IgnoreValueJsonHandler.h>

Inheritance diagram for CesiumJsonReader::IgnoreValueJsonHandler:
CesiumJsonReader::IJsonHandler

Public Member Functions

void reset (IJsonHandler *pParent) noexcept
 Resets the parent of this IJsonHandler.
 
virtual IJsonHandlerreadNull () override
 Called when the JSON parser encounters a null.
 
virtual IJsonHandlerreadBool (bool b) override
 Called when the JSON parser encounters a boolean value.
 
virtual IJsonHandlerreadInt32 (int32_t i) override
 Called when the JSON parser encounters an int32 value.
 
virtual IJsonHandlerreadUint32 (uint32_t i) override
 Called when the JSON parser encounters a uint32 value.
 
virtual IJsonHandlerreadInt64 (int64_t i) override
 Called when the JSON parser encounters an int64 value.
 
virtual IJsonHandlerreadUint64 (uint64_t i) override
 Called when the JSON parser encounters a uint64 value.
 
virtual IJsonHandlerreadDouble (double d) override
 Called when the JSON parser encounters a double value.
 
virtual IJsonHandlerreadString (const std::string_view &str) override
 Called when the JSON parser encounters a string value.
 
virtual IJsonHandlerreadObjectStart () override
 Called when the JSON parser encounters the beginning of an object.
 
virtual IJsonHandlerreadObjectKey (const std::string_view &str) override
 Called when the JSON parser encounters a key while reading an object.
 
virtual IJsonHandlerreadObjectEnd () override
 Called when the JSON parser encounters the end of an object.
 
virtual IJsonHandlerreadArrayStart () override
 Called when the JSON parser encounters the start of an array.
 
virtual IJsonHandlerreadArrayEnd () 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.
 
IJsonHandlerparent () 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

Detailed Description

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.

Member Function Documentation

◆ 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
bThe boolean value.
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
dThe double value.
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
iThe int32 value.
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
iThe int64 value.
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

Called when the JSON parser encounters a null.

Returns
A IJsonHandler that will handle the next read... call. This can be the same handler as the current one.

Implements CesiumJsonReader::IJsonHandler.

◆ 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
strThe key.
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
strThe string value.
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
iThe uint32 value.
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
iThe uint64 value.
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
warningThe warning to report.
contextContext information to include with this warning to help debugging.

Implements CesiumJsonReader::IJsonHandler.


The documentation for this class was generated from the following file: