cesium-native 0.43.0
Loading...
Searching...
No Matches
BoolJsonHandler.h
1#pragma once
2
3#include "JsonHandler.h"
4#include "Library.h"
5
6namespace CesiumJsonReader {
10class CESIUMJSONREADER_API BoolJsonHandler : public JsonHandler {
11public:
12 BoolJsonHandler() noexcept;
17 void reset(IJsonHandler* pParent, bool* pBool);
18
20 virtual IJsonHandler* readBool(bool b) override;
21
22private:
23 bool* _pBool = nullptr;
24};
25} // namespace CesiumJsonReader
IJsonHandler for reading bool values.
void reset(IJsonHandler *pParent, bool *pBool)
Resets the parent IJsonHandler of this handler, and the pointer to its destination bool value.
virtual IJsonHandler * readBool(bool b) override
Called when the JSON parser encounters a boolean 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.