#include <DiskPartition.h>
Inheritance diagram for hwdet::DiskPartition:
Public Member Functions | |
DiskPartition (const String &device, const String &disk_name, const String &filesystem_name, unsigned long long total_size, unsigned long long free_space_size) | |
Constructor. | |
String | GetDeviceName (void) const |
Get name of the device assigned to the partition. | |
String | GetName (void) const |
Get mount-point. | |
String | GetFilesystem (void) const |
Get file system name. | |
unsigned long long | GetFreeSpaceSize (void) const |
Get size of free space left on the partition. | |
unsigned long long | GetSize (void) const |
Get size of the partition. | |
Private Attributes | |
XMLValueElement< String > * | device_name |
Name of device assigned to the partition. | |
XMLValueElement< String > * | name |
Partition mount-point. | |
XMLValueElement< String > * | filesystem |
Filesystem name. | |
XMLValueElement< unsigned long long > * | size |
Total size of the partition. | |
XMLValueElement< unsigned long long > * | free_space |
Free space on the partition. |
hwdet::DiskPartition::DiskPartition | ( | const String & | device, | |
const String & | disk_name, | |||
const String & | filesystem_name, | |||
unsigned long long | total_size, | |||
unsigned long long | free_space_size | |||
) |
Constructor.
device | Name of the device. | |
disk_name | Mount-point. | |
filesystem_name | Name of file system. | |
total_size | Total size of the partition in bytes. | |
free_space_size | Free space size in bytes. |
String hwdet::DiskPartition::GetDeviceName | ( | void | ) | const |
Get name of the device assigned to the partition.
String hwdet::DiskPartition::GetFilesystem | ( | void | ) | const |
Get file system name.
unsigned long long hwdet::DiskPartition::GetFreeSpaceSize | ( | void | ) | const |
Get size of free space left on the partition.
String hwdet::DiskPartition::GetName | ( | void | ) | const |
Get mount-point.
unsigned long long hwdet::DiskPartition::GetSize | ( | void | ) | const |
Get size of the partition.
XMLValueElement< String >* hwdet::DiskPartition::device_name [private] |
Name of device assigned to the partition.
XMLValueElement< String >* hwdet::DiskPartition::filesystem [private] |
Filesystem name.
XMLValueElement< unsigned long long >* hwdet::DiskPartition::free_space [private] |
Free space on the partition.
XMLValueElement< String >* hwdet::DiskPartition::name [private] |
XMLValueElement< unsigned long long >* hwdet::DiskPartition::size [private] |
Total size of the partition.