changed device model from struct to class
This commit is contained in:
@ -1,13 +1,49 @@
|
||||
/**
|
||||
* @file drive.cpp
|
||||
* @brief
|
||||
* @brief represent physical drive
|
||||
* @author hendrik schutter
|
||||
* @date
|
||||
* @date 01.05.2020
|
||||
*/
|
||||
|
||||
#include "drive.h"
|
||||
|
||||
Drive::Drive(void) {
|
||||
cout << "created drive" << endl;
|
||||
|
||||
string Drive::getPath(void)
|
||||
{
|
||||
return sPath;
|
||||
}
|
||||
|
||||
string Drive::getManufacturer(void)
|
||||
{
|
||||
return sManufacturer;
|
||||
}
|
||||
|
||||
string Drive::getModel(void)
|
||||
{
|
||||
return sModel;
|
||||
}
|
||||
|
||||
string Drive::getSerial(void)
|
||||
{
|
||||
return sSerial;
|
||||
}
|
||||
|
||||
string Drive::getCapacity(void)
|
||||
{
|
||||
return sCapacity;
|
||||
}
|
||||
|
||||
uint32_t Drive::getErrorCount(void)
|
||||
{
|
||||
return u32ErrorCount;
|
||||
}
|
||||
uint32_t Drive::getPowerOnHours(void)
|
||||
{
|
||||
return u32PowerOnHours;
|
||||
}
|
||||
|
||||
uint32_t Drive::getSpinUpCount(void)
|
||||
{
|
||||
return u32SpinUpCount;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user