hwdet::DiskPartition Class Reference

Storage class for all partition related data. More...

#include <DiskPartition.h>

Inheritance diagram for hwdet::DiskPartition:

hwdet::XMLElement

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.

Detailed Description

Storage class for all partition related data.


Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

String hwdet::DiskPartition::GetDeviceName ( void   )  const

Get name of the device assigned to the partition.

Returns:
Device name string.

String hwdet::DiskPartition::GetFilesystem ( void   )  const

Get file system name.

Returns:
File system name.

unsigned long long hwdet::DiskPartition::GetFreeSpaceSize ( void   )  const

Get size of free space left on the partition.

Returns:
Size of free space in bytes.

String hwdet::DiskPartition::GetName ( void   )  const

Get mount-point.

Returns:
Mount-point name.

unsigned long long hwdet::DiskPartition::GetSize ( void   )  const

Get size of the partition.

Returns:
Size of partition in bytes.


Field Documentation

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]

Partition mount-point.

Reimplemented from hwdet::XMLElement.

XMLValueElement< unsigned long long >* hwdet::DiskPartition::size [private]

Total size of the partition.


The documentation for this class was generated from the following files:
Generated on Tue Dec 19 17:43:52 2006 for Detector for Windows by  doxygen 1.4.7