xref: /openbmc/estoraged/include/erase.hpp (revision 04c28fad78934cab0c4cb0b4ef9a20f9261b4c1e)
17f2ab643SJohn Edward Broadbent #pragma once
2e6ffe704SJohn Edward Broadbent #include <string>
3e6ffe704SJohn Edward Broadbent 
4d3bfa7bbSJohn Edward Broadbent namespace estoraged
5d3bfa7bbSJohn Edward Broadbent {
6e6ffe704SJohn Edward Broadbent /** @class Erase
7e6ffe704SJohn Edward Broadbent  *  @brief Erase object provides a base class for the specific erase types
8e6ffe704SJohn Edward Broadbent  */
9e6ffe704SJohn Edward Broadbent class Erase
10e6ffe704SJohn Edward Broadbent {
11e6ffe704SJohn Edward Broadbent   public:
12e6ffe704SJohn Edward Broadbent     /** @brief creates an erase object
13e6ffe704SJohn Edward Broadbent      *  @param inDevPath the linux path for the block device
14e6ffe704SJohn Edward Broadbent      */
Erase(std::string_view inDevPath)15*04c28fadSPatrick Williams     Erase(std::string_view inDevPath) : devPath(inDevPath) {}
16e6ffe704SJohn Edward Broadbent 
17e6ffe704SJohn Edward Broadbent   protected:
18e6ffe704SJohn Edward Broadbent     /* The linux path for the block device */
19e6ffe704SJohn Edward Broadbent     std::string devPath;
20e6ffe704SJohn Edward Broadbent };
21d3bfa7bbSJohn Edward Broadbent 
22d3bfa7bbSJohn Edward Broadbent } // namespace estoraged
23