cesium-native 0.64.0
Loading...
Searching...
No Matches
CesiumJsonReader::DoubleJsonHandler Class Reference

IJsonHandler for reading double values. More...

#include <CesiumJsonReader/DoubleJsonHandler.h>

Inheritance diagram for CesiumJsonReader::DoubleJsonHandler:
CesiumJsonReader::JsonHandler CesiumJsonReader::IJsonHandler

Public Member Functions

void reset (IJsonHandler *pParent, double *pDouble)
 Resets the parent IJsonHandler of this handler, and the pointer to its destination double 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.
 
- 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.
 
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.
 

Detailed Description

IJsonHandler for reading double values.

Definition at line 10 of file DoubleJsonHandler.h.

Member Function Documentation

◆ readDouble()

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

◆ readUint32()

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