blob: c006194c5223cd5bc58a47e7c1c7aaf3a5692d4c [file] [log] [blame]
Patrick Venturee2e56112018-11-08 09:42:45 -08001#pragma once
2
3#include "image_handler.hpp"
4
5#include <cstdint>
6#include <memory>
7#include <string>
8#include <vector>
9
10namespace blobs
11{
12
13class HashFileHandler : public ImageHandlerInterface
14{
15 public:
16 /**
17 * Create a HashFileHandler.
18 */
19 HashFileHandler() = default;
20
21 bool open(const std::string& path) override;
22
23 bool write(std::uint32_t offset,
24 const std::vector<std::uint8_t>& data) override;
25
26 private:
27 std::string path;
28};
29
30} // namespace blobs