John Edward Broadbent | 7f2ab64 | 2021-11-11 21:00:38 -0800 | [diff] [blame] | 1 | #pragma once |
John Edward Broadbent | e6ffe70 | 2021-10-14 14:03:11 -0700 | [diff] [blame] | 2 | #include <string> |
| 3 | |
| 4 | /** @class Erase |
| 5 | * @brief Erase object provides a base class for the specific erase types |
| 6 | */ |
| 7 | class Erase |
| 8 | { |
| 9 | public: |
| 10 | /** @brief creates an erase object |
| 11 | * @param inDevPath the linux path for the block device |
| 12 | */ |
| 13 | Erase(std::string_view inDevPath) : devPath(inDevPath) |
| 14 | {} |
John Edward Broadbent | 7f2ab64 | 2021-11-11 21:00:38 -0800 | [diff] [blame] | 15 | virtual ~Erase() = default; |
John Edward Broadbent | e6ffe70 | 2021-10-14 14:03:11 -0700 | [diff] [blame] | 16 | |
| 17 | /** @brief finds the size of the linux block device in bytes |
| 18 | * @return size of a block device using the devPath |
| 19 | */ |
| 20 | uint64_t findSizeOfBlockDevice(); |
| 21 | |
| 22 | protected: |
| 23 | /* The linux path for the block device */ |
| 24 | std::string devPath; |
| 25 | }; |