cesium-native 0.43.0
Loading...
Searching...
No Matches
StringJsonHandler.h
1#pragma once
2
3#include "JsonHandler.h"
4#include "Library.h"
5
6#include <string>
7
8namespace CesiumJsonReader {
12class CESIUMJSONREADER_API StringJsonHandler : public JsonHandler {
13public:
14 StringJsonHandler() noexcept;
19 void reset(IJsonHandler* pParent, std::string* pString);
24 std::string* getObject() noexcept;
26 virtual IJsonHandler* readString(const std::string_view& str) override;
27
28private:
29 std::string* _pString = nullptr;
30};
31} // namespace CesiumJsonReader
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
IJsonHandler for reading string values.
void reset(IJsonHandler *pParent, std::string *pString)
Resets the parent IJsonHandler of this handler, and the pointer to its destination string value.
std::string * getObject() noexcept
Obtains the pointer to the current destination string value of this handler.
Classes for reading JSON.
STL namespace.