blob: 33489eab138020a958493519e55f9f20e2d50044 [file] [log] [blame]
#pragma once
#include <string>
namespace estoraged
{
/** @class Erase
* @brief Erase object provides a base class for the specific erase types
*/
class Erase
{
public:
/** @brief creates an erase object
* @param inDevPath the linux path for the block device
*/
Erase(std::string_view inDevPath) : devPath(inDevPath)
{}
/** @brief finds the size of the linux block device in bytes
* @return size of a block device using the devPath
*/
uint64_t findSizeOfBlockDevice();
protected:
/* The linux path for the block device */
std::string devPath;
};
} // namespace estoraged