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

#include "PropertyStatisticsJsonHandler.h"

#include <Cesium3DTiles/ClassStatistics.h>
#include <CesiumJsonReader/DictionaryJsonHandler.h>
#include <CesiumJsonReader/ExtensibleObjectJsonHandler.h>
#include <CesiumJsonReader/IntegerJsonHandler.h>

namespace CesiumJsonReader {
class ExtensionReaderContext;
}

namespace Cesium3DTilesReader {
class ClassStatisticsJsonHandler
    : public CesiumJsonReader::ExtensibleObjectJsonHandler {
public:
  using ValueType = Cesium3DTiles::ClassStatistics;

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

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

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

private:
  Cesium3DTiles::ClassStatistics* _pObject = nullptr;
  CesiumJsonReader::IntegerJsonHandler<int64_t> _count;
  CesiumJsonReader::DictionaryJsonHandler<
      Cesium3DTiles::PropertyStatistics,
      PropertyStatisticsJsonHandler>
      _properties;
};
} // namespace Cesium3DTilesReader
