#include <DiskDrive.h>
Inheritance diagram for hwdet::DiskDrive:
Public Member Functions | |
DiskDrive (unsigned long long disk_size, const String &model_name, const String &media, const String &device) | |
Constructor. | |
unsigned long long | GetSize (void) const |
Get size of the drive in bytes. | |
String | GetModelName (void) const |
Get model name of the drive. | |
String | GetMediaType (void) const |
Get type of media in drive. | |
String | GetDeviceName (void) const |
Get name of device assigned to the drive by system. | |
Private Attributes | |
XMLValueElement< unsigned long long > * | size |
Disk size in bytes. | |
XMLValueElement< String > * | model |
Model name. | |
XMLValueElement< String > * | media_type |
Media type identification. | |
XMLValueElement< String > * | device_name |
Device name. |
hwdet::DiskDrive::DiskDrive | ( | unsigned long long | disk_size, | |
const String & | model_name, | |||
const String & | media, | |||
const String & | device | |||
) |
Constructor.
disk_size | Size of the disk in bytes. | |
model_name | Model name string of the disk. | |
media | Identification of the media type supported by the drive. | |
device | Name of device assigned to the drive by Windows. |
String hwdet::DiskDrive::GetDeviceName | ( | void | ) | const |
Get name of device assigned to the drive by system.
return Name fo the device assigned to the drive.
String hwdet::DiskDrive::GetMediaType | ( | void | ) | const |
Get type of media in drive.
return Media type identification string.
String hwdet::DiskDrive::GetModelName | ( | void | ) | const |
Get model name of the drive.
unsigned long long hwdet::DiskDrive::GetSize | ( | void | ) | const |
Get size of the drive in bytes.
XMLValueElement< String >* hwdet::DiskDrive::device_name [private] |
Device name.
XMLValueElement< String >* hwdet::DiskDrive::media_type [private] |
Media type identification.
XMLValueElement< String >* hwdet::DiskDrive::model [private] |
Model name.
XMLValueElement< unsigned long long >* hwdet::DiskDrive::size [private] |
Disk size in bytes.