changed device model from struct to class

This commit is contained in:
2020-05-01 22:18:01 +02:00
parent 3547369a49
commit 9482030fc2
6 changed files with 99 additions and 48 deletions

View File

@ -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;
}