Patrick Venture | a78e39f | 2018-11-06 18:37:06 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "image_handler.hpp" |
| 4 | |
Patrick Venture | 400c636 | 2018-11-06 20:06:11 -0800 | [diff] [blame] | 5 | #include <cstdint> |
Patrick Venture | a78e39f | 2018-11-06 18:37:06 -0800 | [diff] [blame] | 6 | #include <memory> |
| 7 | #include <string> |
Patrick Venture | 400c636 | 2018-11-06 20:06:11 -0800 | [diff] [blame] | 8 | #include <vector> |
Patrick Venture | a78e39f | 2018-11-06 18:37:06 -0800 | [diff] [blame] | 9 | |
| 10 | namespace blobs |
| 11 | { |
| 12 | |
| 13 | class 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 Venture | 400c636 | 2018-11-06 20:06:11 -0800 | [diff] [blame] | 23 | bool write(std::uint32_t offset, |
| 24 | const std::vector<std::uint8_t>& data) override; |
| 25 | |
Patrick Venture | a78e39f | 2018-11-06 18:37:06 -0800 | [diff] [blame] | 26 | private: |
| 27 | std::string path; |
| 28 | }; |
| 29 | |
| 30 | } // namespace blobs |