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

#include "MetadataEntityJsonHandler.h"

#include <Cesium3DTiles/ExtensionTile3dTilesMetadata.h>

namespace CesiumJsonReader {
class ExtensionReaderContext;
}

namespace Cesium3DTilesReader {
class ExtensionTile3dTilesMetadataJsonHandler
    : public MetadataEntityJsonHandler,
      public CesiumJsonReader::IExtensionJsonHandler {
public:
  using ValueType = Cesium3DTiles::ExtensionTile3dTilesMetadata;

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

  ExtensionTile3dTilesMetadataJsonHandler(
      const CesiumJsonReader::ExtensionReaderContext& context) noexcept;
  void reset(
      IJsonHandler* pParentHandler,
      Cesium3DTiles::ExtensionTile3dTilesMetadata* 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* readNull() override {
    return MetadataEntityJsonHandler::readNull();
  };
  virtual IJsonHandler* readBool(bool b) override {
    return MetadataEntityJsonHandler::readBool(b);
  }
  virtual IJsonHandler* readInt32(int32_t i) override {
    return MetadataEntityJsonHandler::readInt32(i);
  }
  virtual IJsonHandler* readUint32(uint32_t i) override {
    return MetadataEntityJsonHandler::readUint32(i);
  }
  virtual IJsonHandler* readInt64(int64_t i) override {
    return MetadataEntityJsonHandler::readInt64(i);
  }
  virtual IJsonHandler* readUint64(uint64_t i) override {
    return MetadataEntityJsonHandler::readUint64(i);
  }
  virtual IJsonHandler* readDouble(double d) override {
    return MetadataEntityJsonHandler::readDouble(d);
  }
  virtual IJsonHandler* readString(const std::string_view& str) override {
    return MetadataEntityJsonHandler::readString(str);
  }
  virtual IJsonHandler* readObjectStart() override {
    return MetadataEntityJsonHandler::readObjectStart();
  }
  virtual IJsonHandler* readObjectEnd() override {
    return MetadataEntityJsonHandler::readObjectEnd();
  }
  virtual IJsonHandler* readArrayStart() override {
    return MetadataEntityJsonHandler::readArrayStart();
  }
  virtual IJsonHandler* readArrayEnd() override {
    return MetadataEntityJsonHandler::readArrayEnd();
  }
  virtual void reportWarning(
      const std::string& warning,
      std::vector<std::string>&& context =
          std::vector<std::string>()) override {
    MetadataEntityJsonHandler::reportWarning(warning, std::move(context));
  }

protected:
  IJsonHandler* readObjectKeyExtensionTile3dTilesMetadata(
      const std::string& objectType,
      const std::string_view& str,
      Cesium3DTiles::ExtensionTile3dTilesMetadata& o);

private:
  Cesium3DTiles::ExtensionTile3dTilesMetadata* _pObject = nullptr;
};
} // namespace Cesium3DTilesReader
