初始提交: UE5.3项目基础框架
This commit is contained in:
42
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumJsonReader/SharedAssetJsonHandler.h
vendored
Normal file
42
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumJsonReader/SharedAssetJsonHandler.h
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
#pragma once
|
||||
|
||||
#include <CesiumJsonReader/ExtensibleObjectJsonHandler.h>
|
||||
#include <CesiumUtility/ExtensibleObject.h>
|
||||
#include <CesiumUtility/JsonValue.h>
|
||||
|
||||
#include <string_view>
|
||||
|
||||
namespace CesiumJsonReader {
|
||||
|
||||
/**
|
||||
* @brief \ref IJsonHandler for \ref CesiumUtility::SharedAsset "SharedAsset"
|
||||
* values.
|
||||
*
|
||||
* This is more or less the same as directly using \ref
|
||||
* ExtensibleObjectJsonHandler, and exists for compatibility with generated
|
||||
* code.
|
||||
*/
|
||||
class SharedAssetJsonHandler
|
||||
: public CesiumJsonReader::ExtensibleObjectJsonHandler {
|
||||
public:
|
||||
/**
|
||||
* @brief Creates an \ref SharedAssetJsonHandler with the specified
|
||||
* options.
|
||||
*
|
||||
* @param context Options to configure how the JSON is parsed.
|
||||
*/
|
||||
explicit SharedAssetJsonHandler(
|
||||
const CesiumJsonReader::JsonReaderOptions& context) noexcept;
|
||||
|
||||
protected:
|
||||
/** @copydoc ExtensibleObjectJsonHandler::reset */
|
||||
void reset(IJsonHandler* pParent, CesiumUtility::ExtensibleObject* pObject);
|
||||
/** @copydoc ExtensibleObjectJsonHandler::readObjectKeyExtensibleObject */
|
||||
IJsonHandler* readObjectKeySharedAsset(
|
||||
const std::string& objectType,
|
||||
const std::string_view& str,
|
||||
CesiumUtility::ExtensibleObject& o);
|
||||
|
||||
private:
|
||||
};
|
||||
} // namespace CesiumJsonReader
|
||||
Reference in New Issue
Block a user