Patrick Venture | 9efef5d | 2019-06-19 08:45:44 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <string> |
| 4 | |
| 5 | namespace ipmi_flash |
| 6 | { |
| 7 | |
| 8 | class FileSystemInterface |
| 9 | { |
| 10 | public: |
| 11 | virtual ~FileSystemInterface() = default; |
| 12 | |
| 13 | virtual void remove(const std::string& path) const = 0; |
| 14 | }; |
| 15 | |
| 16 | class FileSystem : public FileSystemInterface |
| 17 | { |
| 18 | public: |
| 19 | FileSystem() = default; |
| 20 | |
| 21 | void remove(const std::string& path) const override; |
| 22 | }; |
| 23 | |
Patrick Venture | 9efef5d | 2019-06-19 08:45:44 -0700 | [diff] [blame] | 24 | } // namespace ipmi_flash |