reHDD/src/drive.h

49 lines
1.1 KiB
C
Raw Normal View History

/**
* @file drive.h
* @brief represent physical drive
* @author hendrik schutter
* @date 01.05.2020
*/
#ifndef DRIVE_H_
#define DRIVE_H_
#include "refurbishingHddTool.h"
class Drive {
protected:
public:
Drive(string path) {
sPath = path;
}
string getPath(void);
2020-05-02 00:49:11 +02:00
string getModelFamily(void);
string getModelName(void);
string getSerial(void);
2020-05-02 13:25:27 +02:00
uint64_t getCapacity(void); //in byte
uint32_t getErrorCount(void);
2020-05-02 13:25:27 +02:00
uint32_t getPowerOnHours(void); //in hours
uint32_t getPowerCycles(void);
2020-05-02 00:49:11 +02:00
void setDriveSMARTData( string modelFamily,
string modelName,
string serial,
2020-05-02 13:25:27 +02:00
uint64_t capacity,
uint32_t errorCount,
uint32_t powerOnHours,
2020-05-02 13:25:27 +02:00
uint32_t powerCycles);
private:
string sPath;
2020-05-02 00:49:11 +02:00
string sModelFamily;
string sModelName;
string sSerial;
2020-05-02 13:25:27 +02:00
uint64_t u64Capacity = 0U; //in byte
uint32_t u32ErrorCount = 0U;
uint32_t u32PowerOnHours = 0U; //in hours
uint32_t u32PowerCycles = 0U;
};
#endif // DRIVE_H_