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

#include <Cesium3DTiles/Extension3dTilesBoundingVolumeS2.h>
#include <CesiumJsonReader/DoubleJsonHandler.h>
#include <CesiumJsonReader/ExtensibleObjectJsonHandler.h>
#include <CesiumJsonReader/StringJsonHandler.h>

namespace CesiumJsonReader {
class JsonReaderOptions;
}

namespace Cesium3DTilesReader {
class Extension3dTilesBoundingVolumeS2JsonHandler
    : public CesiumJsonReader::ExtensibleObjectJsonHandler,
      public CesiumJsonReader::IExtensionJsonHandler {
public:
  using ValueType = Cesium3DTiles::Extension3dTilesBoundingVolumeS2;

  static inline constexpr const char* ExtensionName =
      "3DTILES_bounding_volume_S2";

  Extension3dTilesBoundingVolumeS2JsonHandler(
      const CesiumJsonReader::JsonReaderOptions& options) noexcept;
  void reset(
      IJsonHandler* pParentHandler,
      Cesium3DTiles::Extension3dTilesBoundingVolumeS2* 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* readObjectKeyExtension3dTilesBoundingVolumeS2(
      const std::string& objectType,
      const std::string_view& str,
      Cesium3DTiles::Extension3dTilesBoundingVolumeS2& o);

private:
  Cesium3DTiles::Extension3dTilesBoundingVolumeS2* _pObject = nullptr;
  CesiumJsonReader::StringJsonHandler _token;
  CesiumJsonReader::DoubleJsonHandler _minimumHeight;
  CesiumJsonReader::DoubleJsonHandler _maximumHeight;
};
} // namespace Cesium3DTilesReader
