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

#include <Cesium3DTiles/Availability.h>
#include <CesiumJsonReader/ExtensibleObjectJsonHandler.h>
#include <CesiumJsonReader/IntegerJsonHandler.h>

namespace CesiumJsonReader {
class ExtensionReaderContext;
}

namespace Cesium3DTilesReader {
class AvailabilityJsonHandler
    : public CesiumJsonReader::ExtensibleObjectJsonHandler {
public:
  using ValueType = Cesium3DTiles::Availability;

  AvailabilityJsonHandler(
      const CesiumJsonReader::ExtensionReaderContext& context) noexcept;
  void
  reset(IJsonHandler* pParentHandler, Cesium3DTiles::Availability* pObject);

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

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

private:
  Cesium3DTiles::Availability* _pObject = nullptr;
  CesiumJsonReader::IntegerJsonHandler<int64_t> _bitstream;
  CesiumJsonReader::IntegerJsonHandler<int64_t> _availableCount;
  CesiumJsonReader::IntegerJsonHandler<int32_t> _constant;
};
} // namespace Cesium3DTilesReader
