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

#include "AnimationChannelJsonHandler.h"
#include "AnimationSamplerJsonHandler.h"
#include "NamedObjectJsonHandler.h"

#include <CesiumGltf/Animation.h>
#include <CesiumJsonReader/ArrayJsonHandler.h>

namespace CesiumJsonReader {
class ExtensionReaderContext;
}

namespace CesiumGltfReader {
class AnimationJsonHandler : public CesiumGltfReader::NamedObjectJsonHandler {
public:
  using ValueType = CesiumGltf::Animation;

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

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

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

private:
  CesiumGltf::Animation* _pObject = nullptr;
  CesiumJsonReader::ArrayJsonHandler<
      CesiumGltf::AnimationChannel,
      AnimationChannelJsonHandler>
      _channels;
  CesiumJsonReader::ArrayJsonHandler<
      CesiumGltf::AnimationSampler,
      AnimationSamplerJsonHandler>
      _samplers;
};
} // namespace CesiumGltfReader
