added smart value read and parse
This commit is contained in:
@ -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;
|
||||
}
|
Reference in New Issue
Block a user