IJsonHandler for handling JSON objects.
More...
#include <CesiumJsonReader/ObjectJsonHandler.h>
IJsonHandler for handling JSON objects.
Definition at line 13 of file ObjectJsonHandler.h.
◆ ObjectJsonHandler()
CesiumJsonReader::ObjectJsonHandler::ObjectJsonHandler |
( |
| ) |
|
|
inlinenoexcept |
◆ property()
template<typename TAccessor , typename TProperty >
IJsonHandler * CesiumJsonReader::ObjectJsonHandler::property |
( |
const char * | currentKey, |
|
|
TAccessor & | accessor, |
|
|
TProperty & | value ) |
|
inlineprotected |
Called from IJsonHandler::readObjectKey to read a property into an object.
- Parameters
-
currentKey | The key that's currently being read. |
accessor | An IJsonHandler that can read the type of this property. |
value | A reference to the location to store the read value. |
- Returns
- The
accessor
IJsonHandler that will read the next token into value
.
Definition at line 47 of file ObjectJsonHandler.h.
◆ readObjectEnd()
virtual IJsonHandler * CesiumJsonReader::ObjectJsonHandler::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.
◆ readObjectStart()
virtual IJsonHandler * CesiumJsonReader::ObjectJsonHandler::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.
◆ reportWarning()
virtual void CesiumJsonReader::ObjectJsonHandler::reportWarning |
( |
const std::string & | warning, |
|
|
std::vector< std::string > && | context = std::vector< std::string >() ) |
|
overrideprotectedvirtual |
Report a warning while reading JSON.
- Parameters
-
warning | The warning to report. |
context | Context information to include with this warning to help debugging. |
Reimplemented from CesiumJsonReader::JsonHandler.
The documentation for this class was generated from the following file:
- /home/runner/work/cesium-native/cesium-native/CesiumJsonReader/include/CesiumJsonReader/ObjectJsonHandler.h