初始提交: UE5.3项目基础框架
This commit is contained in:
31
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumJsonReader/StringJsonHandler.h
vendored
Normal file
31
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumJsonReader/StringJsonHandler.h
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user