初始提交: UE5.3项目基础框架
This commit is contained in:
25
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumJsonReader/BoolJsonHandler.h
vendored
Normal file
25
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumJsonReader/BoolJsonHandler.h
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include "JsonHandler.h"
|
||||
#include "Library.h"
|
||||
|
||||
namespace CesiumJsonReader {
|
||||
/**
|
||||
* @brief \ref IJsonHandler for reading bool values.
|
||||
*/
|
||||
class CESIUMJSONREADER_API BoolJsonHandler : public JsonHandler {
|
||||
public:
|
||||
BoolJsonHandler() noexcept;
|
||||
/**
|
||||
* @brief Resets the parent \ref IJsonHandler of this handler, and the pointer
|
||||
* to its destination bool value.
|
||||
*/
|
||||
void reset(IJsonHandler* pParent, bool* pBool);
|
||||
|
||||
/** @copydoc IJsonHandler::readBool */
|
||||
virtual IJsonHandler* readBool(bool b) override;
|
||||
|
||||
private:
|
||||
bool* _pBool = nullptr;
|
||||
};
|
||||
} // namespace CesiumJsonReader
|
||||
Reference in New Issue
Block a user