Files
BXSSP_Andriod/Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumJsonReader/StringJsonHandler.h

32 lines
810 B
C
Raw Normal View History

2025-10-14 11:14:54 +08:00
#pragma once
#include "JsonHandler.h"
#include "Library.h"
#include <string>
namespace CesiumJsonReader {
/**
* @brief \ref IJsonHandler for reading string values.
*/
class CESIUMJSONREADER_API StringJsonHandler : public JsonHandler {
public:
StringJsonHandler() noexcept;
/**
* @brief Resets the parent \ref IJsonHandler of this handler, and the pointer
* to its destination string value.
*/
void reset(IJsonHandler* pParent, std::string* pString);
/**
* @brief Obtains the pointer to the current destination string value of this
* handler.
*/
std::string* getObject() noexcept;
/** @copydoc IJsonHandler::readString */
virtual IJsonHandler* readString(const std::string_view& str) override;
private:
std::string* _pString = nullptr;
};
} // namespace CesiumJsonReader