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

IJsonHandler for arbitrary CesiumUtility::JsonValue JsonValue objects. More...

#include <CesiumJsonReader/JsonObjectJsonHandler.h>

Inheritance diagram for CesiumJsonReader::JsonObjectJsonHandler:
CesiumJsonReader::JsonHandler CesiumJsonReader::IJsonHandler

Public Member Functions

void reset (IJsonHandler *pParent, CesiumUtility::JsonValue *pValue)
 Resets this IJsonHandler's parent handler, as well as its destination pointer.
 
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.
 
- Public Member Functions inherited from CesiumJsonReader::JsonHandler
virtual void reportWarning (const std::string &warning, std::vector< std::string > &&context=std::vector< std::string >()) override
 Report a warning while reading JSON.
 
- 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.
 
IJsonHandlerparent ()
 Obtains the parent IJsonHandler of this handler.
 
IJsonHandlerignoreAndReturnToParent ()
 Ignore a single value and then return to the parent handler.
 
IJsonHandlerignoreAndContinue ()
 Ignore a single value and the continue processing more tokens with this handler.
 

Detailed Description

IJsonHandler for arbitrary CesiumUtility::JsonValue JsonValue objects.

Definition at line 14 of file JsonObjectJsonHandler.h.

Member Function Documentation

◆ readArrayEnd()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.

◆ readArrayStart()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.

◆ readBool()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.

◆ readDouble()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.

◆ readInt32()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.

◆ readInt64()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.

◆ readNull()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.

◆ readObjectEnd()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.

◆ readObjectKey()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.

◆ readObjectStart()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.

◆ readString()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.

◆ readUint32()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.

◆ readUint64()

virtual IJsonHandler * CesiumJsonReader::JsonObjectJsonHandler::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.

Reimplemented from CesiumJsonReader::JsonHandler.


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