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

#include "AssetJsonHandler.h"
#include "GroupMetadataJsonHandler.h"
#include "MetadataEntityJsonHandler.h"
#include "PropertiesJsonHandler.h"
#include "SchemaJsonHandler.h"
#include "StatisticsJsonHandler.h"
#include "TileJsonHandler.h"

#include <Cesium3DTiles/Tileset.h>
#include <CesiumJsonReader/ArrayJsonHandler.h>
#include <CesiumJsonReader/DictionaryJsonHandler.h>
#include <CesiumJsonReader/DoubleJsonHandler.h>
#include <CesiumJsonReader/ExtensibleObjectJsonHandler.h>
#include <CesiumJsonReader/StringJsonHandler.h>

namespace CesiumJsonReader {
class ExtensionReaderContext;
}

namespace Cesium3DTilesReader {
class TilesetJsonHandler
    : public CesiumJsonReader::ExtensibleObjectJsonHandler {
public:
  using ValueType = Cesium3DTiles::Tileset;

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

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

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

private:
  Cesium3DTiles::Tileset* _pObject = nullptr;
  AssetJsonHandler _asset;
  CesiumJsonReader::
      DictionaryJsonHandler<Cesium3DTiles::Properties, PropertiesJsonHandler>
          _properties;
  SchemaJsonHandler _schema;
  CesiumJsonReader::StringJsonHandler _schemaUri;
  StatisticsJsonHandler _statistics;
  CesiumJsonReader::
      ArrayJsonHandler<Cesium3DTiles::GroupMetadata, GroupMetadataJsonHandler>
          _groups;
  MetadataEntityJsonHandler _metadata;
  CesiumJsonReader::DoubleJsonHandler _geometricError;
  TileJsonHandler _root;
  CesiumJsonReader::
      ArrayJsonHandler<std::string, CesiumJsonReader::StringJsonHandler>
          _extensionsUsed;
  CesiumJsonReader::
      ArrayJsonHandler<std::string, CesiumJsonReader::StringJsonHandler>
          _extensionsRequired;
};
} // namespace Cesium3DTilesReader
