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

#include "CesiumGltf/ReaderContext.h"
#include "CesiumJsonReader/ArrayJsonHandler.h"
#include "CesiumJsonReader/DoubleJsonHandler.h"
#include "CesiumJsonReader/IntegerJsonHandler.h"
#include "NamedObjectJsonHandler.h"

namespace CesiumGltf {
struct ReaderContext;
struct Node;

class NodeJsonHandler : public NamedObjectJsonHandler {
public:
  using ValueType = Node;

  NodeJsonHandler(const ReaderContext& context) noexcept;
  void reset(IJsonHandler* pParentHandler, Node* pObject);

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

protected:
  IJsonHandler* readObjectKeyNode(
      const std::string& objectType,
      const std::string_view& str,
      Node& o);

private:
  Node* _pObject = nullptr;
  CesiumJsonReader::IntegerJsonHandler<int32_t> _camera;
  CesiumJsonReader::
      ArrayJsonHandler<int32_t, CesiumJsonReader::IntegerJsonHandler<int32_t>>
          _children;
  CesiumJsonReader::IntegerJsonHandler<int32_t> _skin;
  CesiumJsonReader::
      ArrayJsonHandler<double, CesiumJsonReader::DoubleJsonHandler>
          _matrix;
  CesiumJsonReader::IntegerJsonHandler<int32_t> _mesh;
  CesiumJsonReader::
      ArrayJsonHandler<double, CesiumJsonReader::DoubleJsonHandler>
          _rotation;
  CesiumJsonReader::
      ArrayJsonHandler<double, CesiumJsonReader::DoubleJsonHandler>
          _scale;
  CesiumJsonReader::
      ArrayJsonHandler<double, CesiumJsonReader::DoubleJsonHandler>
          _translation;
  CesiumJsonReader::
      ArrayJsonHandler<double, CesiumJsonReader::DoubleJsonHandler>
          _weights;
};
} // namespace CesiumGltf
