cesium-native 0.43.0
Loading...
Searching...
No Matches
DoubleJsonHandler.h
1#pragma once
2
3#include "JsonHandler.h"
4#include "Library.h"
5
6namespace CesiumJsonReader {
10class CESIUMJSONREADER_API DoubleJsonHandler : public JsonHandler {
11public:
12 DoubleJsonHandler() noexcept;
17 void reset(IJsonHandler* pParent, double* pDouble);
18
20 virtual IJsonHandler* readInt32(int32_t i) override;
22 virtual IJsonHandler* readUint32(uint32_t i) override;
24 virtual IJsonHandler* readInt64(int64_t i) override;
26 virtual IJsonHandler* readUint64(uint64_t i) override;
28 virtual IJsonHandler* readDouble(double d) override;
29
30private:
31 double* _pDouble = nullptr;
32};
33} // namespace CesiumJsonReader
IJsonHandler for reading double values.
virtual IJsonHandler * readUint64(uint64_t i) override
Called when the JSON parser encounters a uint64 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 * readInt32(int32_t i) override
Called when the JSON parser encounters an int32 value.
void reset(IJsonHandler *pParent, double *pDouble)
Resets the parent IJsonHandler of this handler, and the pointer to its destination double value.
virtual IJsonHandler * readDouble(double d) override
Called when the JSON parser encounters a double value.
Base interface for all JSON handlers. Types that need to be deserialized from JSON should implement I...
A dummy implementation of IJsonHandler that will report a warning and return its parent when any of i...
Definition JsonHandler.h:19
Classes for reading JSON.