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

#include "PropertyStatisticsJsonHandler.h"

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

namespace CesiumJsonReader {
class ExtensionReaderContext;
}

namespace CesiumGltfReader {
class ClassStatisticsJsonHandler
    : public CesiumJsonReader::ExtensibleObjectJsonHandler {
public:
  using ValueType = CesiumGltf::ClassStatistics;

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

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

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

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