erase.hpp (e6ffe7040eb28d8ea2a242177d2780516b6f5cf0) | erase.hpp (7f2ab6432a5f3aeb2ecf131169a3d44569007f1c) |
---|---|
1#pragma once |
|
1#include <string> 2 3/** @class Erase 4 * @brief Erase object provides a base class for the specific erase types 5 */ 6class Erase 7{ 8 public: 9 /** @brief creates an erase object 10 * @param inDevPath the linux path for the block device 11 */ 12 Erase(std::string_view inDevPath) : devPath(inDevPath) 13 {} | 2#include <string> 3 4/** @class Erase 5 * @brief Erase object provides a base class for the specific erase types 6 */ 7class 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 {} |
15 virtual ~Erase() = default; |
|
14 15 /** @brief finds the size of the linux block device in bytes 16 * @return size of a block device using the devPath 17 */ 18 uint64_t findSizeOfBlockDevice(); 19 20 protected: 21 /* The linux path for the block device */ 22 std::string devPath; 23}; | 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}; |