blob: 65076d7136ce802424a3b57c61a3bdb429c33943 [file] [log] [blame]
Patrick Venturea78e39f2018-11-06 18:37:06 -08001#pragma once
2
3#include "image_handler.hpp"
4
Patrick Venture400c6362018-11-06 20:06:11 -08005#include <cstdint>
Patrick Venturea78e39f2018-11-06 18:37:06 -08006#include <memory>
7#include <string>
Patrick Venture400c6362018-11-06 20:06:11 -08008#include <vector>
Patrick Venturea78e39f2018-11-06 18:37:06 -08009
10namespace blobs
11{
12
13class StaticLayoutHandler : public ImageHandlerInterface
14{
15 public:
16 /**
17 * Create a StaticLayoutHandler.
18 */
19 StaticLayoutHandler() = default;
20
21 bool open(const std::string& path) override;
22
Patrick Venture400c6362018-11-06 20:06:11 -080023 bool write(std::uint32_t offset,
24 const std::vector<std::uint8_t>& data) override;
25
Patrick Venturea78e39f2018-11-06 18:37:06 -080026 private:
27 std::string path;
28};
29
30} // namespace blobs