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

#include "ClassStatisticsJsonHandler.h"

#include <Cesium3DTiles/Statistics.h>
#include <CesiumJsonReader/DictionaryJsonHandler.h>
#include <CesiumJsonReader/ExtensibleObjectJsonHandler.h>

namespace CesiumJsonReader {
class ExtensionReaderContext;
}

namespace Cesium3DTilesReader {
class StatisticsJsonHandler
    : public CesiumJsonReader::ExtensibleObjectJsonHandler {
public:
  using ValueType = Cesium3DTiles::Statistics;

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

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

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

private:
  Cesium3DTiles::Statistics* _pObject = nullptr;
  CesiumJsonReader::DictionaryJsonHandler<
      Cesium3DTiles::ClassStatistics,
      ClassStatisticsJsonHandler>
      _classes;
};
} // namespace Cesium3DTilesReader
