added smart value read and parse

This commit is contained in:
2020-05-02 00:49:11 +02:00
parent 9482030fc2
commit 8bf777174e
10 changed files with 1036 additions and 19 deletions

View File

@ -13,14 +13,14 @@ string Drive::getPath(void)
return sPath;
}
string Drive::getManufacturer(void)
string Drive::getModelFamily(void)
{
return sManufacturer;
return sModelFamily;
}
string Drive::getModel(void)
string Drive::getModelName(void)
{
return sModel;
return sModelName;
}
string Drive::getSerial(void)
@ -47,3 +47,19 @@ uint32_t Drive::getSpinUpCount(void)
return u32SpinUpCount;
}
void Drive::setDriveSMARTData( string modelFamily,
string modelName,
string serial,
string capacity,
uint32_t errorCount,
uint32_t powerOnHours,
uint32_t spinUpCount)
{
sModelFamily = modelFamily;
sModelName = modelName;
sSerial = serial;
sCapacity = capacity;
u32ErrorCount = errorCount;
u32PowerOnHours = powerOnHours;
u32SpinUpCount = spinUpCount;
}