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

#include "ExtensionExtInstanceFeaturesFeatureIdJsonHandler.h"

#include <CesiumGltf/ExtensionExtInstanceFeatures.h>
#include <CesiumJsonReader/ArrayJsonHandler.h>
#include <CesiumJsonReader/ExtensibleObjectJsonHandler.h>

namespace CesiumJsonReader {
class JsonReaderOptions;
}

namespace CesiumGltfReader {
class ExtensionExtInstanceFeaturesJsonHandler
    : public CesiumJsonReader::ExtensibleObjectJsonHandler,
      public CesiumJsonReader::IExtensionJsonHandler {
public:
  using ValueType = CesiumGltf::ExtensionExtInstanceFeatures;

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

  ExtensionExtInstanceFeaturesJsonHandler(
      const CesiumJsonReader::JsonReaderOptions& options) noexcept;
  void reset(
      IJsonHandler* pParentHandler,
      CesiumGltf::ExtensionExtInstanceFeatures* 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* readObjectKeyExtensionExtInstanceFeatures(
      const std::string& objectType,
      const std::string_view& str,
      CesiumGltf::ExtensionExtInstanceFeatures& o);

private:
  CesiumGltf::ExtensionExtInstanceFeatures* _pObject = nullptr;
  CesiumJsonReader::ArrayJsonHandler<
      CesiumGltf::ExtensionExtInstanceFeaturesFeatureId,
      ExtensionExtInstanceFeaturesFeatureIdJsonHandler>
      _featureIds;
};
} // namespace CesiumGltfReader
