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

#include "CesiumGltf/ReaderContext.h"
#include "CesiumJsonReader/IntegerJsonHandler.h"
#include "CesiumJsonReader/StringJsonHandler.h"
#include "NamedObjectJsonHandler.h"

namespace CesiumGltf {
struct ReaderContext;
struct Buffer;

class BufferJsonHandler : public NamedObjectJsonHandler {
public:
  using ValueType = Buffer;

  BufferJsonHandler(const ReaderContext& context) noexcept;
  void reset(IJsonHandler* pParentHandler, Buffer* pObject);

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

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

private:
  Buffer* _pObject = nullptr;
  CesiumJsonReader::StringJsonHandler _uri;
  CesiumJsonReader::IntegerJsonHandler<int64_t> _byteLength;
};
} // namespace CesiumGltf
