// This file was generated by generate-classes.
// DO NOT EDIT THIS FILE!
#pragma once

#include "ExtensionKhrGaussianSplattingHintsValueJsonHandler.h"
#include <CesiumGltf/ExtensionKhrGaussianSplatting.h>
#include <CesiumJsonReader/ExtensibleObjectJsonHandler.h>
#include <CesiumJsonReader/StringJsonHandler.h>

namespace CesiumJsonReader {
  class JsonReaderOptions;
}

namespace CesiumGltfReader {
  class ExtensionKhrGaussianSplattingJsonHandler : public CesiumJsonReader::ExtensibleObjectJsonHandler, public CesiumJsonReader::IExtensionJsonHandler {
  public:
    using ValueType = CesiumGltf::ExtensionKhrGaussianSplatting;

    static inline constexpr const char* ExtensionName = "KHR_gaussian_splatting";

    ExtensionKhrGaussianSplattingJsonHandler(const CesiumJsonReader::JsonReaderOptions& options) noexcept;
    void reset(IJsonHandler* pParentHandler, CesiumGltf::ExtensionKhrGaussianSplatting* pObject);

    virtual IJsonHandler* readObjectKey(const std::string_view& str) override;

    virtual void reset(IJsonHandler* pParentHandler, CesiumUtility::ExtensibleObject& o, const std::string_view& extensionName) override;

    virtual IJsonHandler& getHandler() override { return *this; }

  protected:
    IJsonHandler* readObjectKeyExtensionKhrGaussianSplatting(const std::string& objectType, const std::string_view& str, CesiumGltf::ExtensionKhrGaussianSplatting& o);

  private:

    CesiumGltf::ExtensionKhrGaussianSplatting* _pObject = nullptr;
    CesiumJsonReader::StringJsonHandler _shape;
    ExtensionKhrGaussianSplattingHintsValueJsonHandler _hints;
  };
}
