cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumJsonReader::IntegerJsonHandler< T > Class Template Reference

IJsonHandler for reading integer values. More...

#include <CesiumJsonReader/IntegerJsonHandler.h>

Inheritance diagram for CesiumJsonReader::IntegerJsonHandler< T >:
CesiumJsonReader::JsonHandler CesiumJsonReader::IJsonHandler

Public Member Functions

void reset (IJsonHandler *pParent, T *pInteger)
 Resets the parent IJsonHandler of this instance and sets the pointer to its destination integer value.
 
T * getObject ()
 Obtains the integer pointer set on this handler by reset.
 
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 void reportWarning (const std::string &warning, std::vector< std::string > &&context) override
 Report a warning while reading JSON.
 
- Public Member Functions inherited from CesiumJsonReader::JsonHandler
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 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::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

template<typename T>
class CesiumJsonReader::IntegerJsonHandler< T >

IJsonHandler for reading integer values.

Definition at line 14 of file IntegerJsonHandler.h.

Constructor & Destructor Documentation

◆ IntegerJsonHandler()

template<typename T >
CesiumJsonReader::IntegerJsonHandler< T >::IntegerJsonHandler ( )
inlinenoexcept

Definition at line 16 of file IntegerJsonHandler.h.

Member Function Documentation

◆ getObject()

template<typename T >
T * CesiumJsonReader::IntegerJsonHandler< T >::getObject ( )
inline

Obtains the integer pointer set on this handler by reset.

Definition at line 30 of file IntegerJsonHandler.h.

◆ readDouble()

template<typename T >
virtual IJsonHandler * CesiumJsonReader::IntegerJsonHandler< T >::readDouble ( double d)
inlineoverridevirtual

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.

Definition at line 57 of file IntegerJsonHandler.h.

◆ readInt32()

template<typename T >
virtual IJsonHandler * CesiumJsonReader::IntegerJsonHandler< T >::readInt32 ( int32_t i)
inlineoverridevirtual

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.

Definition at line 33 of file IntegerJsonHandler.h.

◆ readInt64()

template<typename T >
virtual IJsonHandler * CesiumJsonReader::IntegerJsonHandler< T >::readInt64 ( int64_t i)
inlineoverridevirtual

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.

Definition at line 45 of file IntegerJsonHandler.h.

◆ readUint32()

template<typename T >
virtual IJsonHandler * CesiumJsonReader::IntegerJsonHandler< T >::readUint32 ( uint32_t i)
inlineoverridevirtual

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.

Definition at line 39 of file IntegerJsonHandler.h.

◆ readUint64()

template<typename T >
virtual IJsonHandler * CesiumJsonReader::IntegerJsonHandler< T >::readUint64 ( uint64_t i)
inlineoverridevirtual

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.

Definition at line 51 of file IntegerJsonHandler.h.

◆ reportWarning()

template<typename T >
virtual void CesiumJsonReader::IntegerJsonHandler< T >::reportWarning ( const std::string & warning,
std::vector< std::string > && context )
inlineoverridevirtual

Report a warning while reading JSON.

Parameters
warningThe warning to report.
contextContext information to include with this warning to help debugging.

Reimplemented from CesiumJsonReader::JsonHandler.

Definition at line 69 of file IntegerJsonHandler.h.

◆ reset()

template<typename T >
void CesiumJsonReader::IntegerJsonHandler< T >::reset ( IJsonHandler * pParent,
T * pInteger )
inline

Resets the parent IJsonHandler of this instance and sets the pointer to its destination integer value.

Definition at line 22 of file IntegerJsonHandler.h.


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