xref: /openbmc/estoraged/include/erase.hpp (revision e6ffe704)
1 #include <string>
2 
3 /** @class Erase
4  *  @brief Erase object provides a base class for the specific erase types
5  */
6 class 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     {}
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 };
24