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

#include "CesiumGltf/ReaderContext.h"
#include "CesiumJsonReader/DoubleJsonHandler.h"
#include "ExtensibleObjectJsonHandler.h"

namespace CesiumGltf {
struct ReaderContext;
struct CameraOrthographic;

class CameraOrthographicJsonHandler : public ExtensibleObjectJsonHandler {
public:
  using ValueType = CameraOrthographic;

  CameraOrthographicJsonHandler(const ReaderContext& context) noexcept;
  void reset(IJsonHandler* pParentHandler, CameraOrthographic* pObject);

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

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

private:
  CameraOrthographic* _pObject = nullptr;
  CesiumJsonReader::DoubleJsonHandler _xmag;
  CesiumJsonReader::DoubleJsonHandler _ymag;
  CesiumJsonReader::DoubleJsonHandler _zfar;
  CesiumJsonReader::DoubleJsonHandler _znear;
};
} // namespace CesiumGltf
