hwdet::LinuxDetector::PartitionInfo Class Reference

Stores details about one partition. More...


Public Member Functions

 PartitionInfo (const String &name, const std::vector< FstabEntry > &fstab_entries)
 Read data about the partition.
DiskPartitionGetDiskPartition (void) const
 Convert data to XML node.

Data Fields

String device_name
 Name of the device.
String device_path
 Full name of the device.
unsigned long long size
 Size of the partition in bytes.
unsigned long long free_space
 Free space on the partition in bytes.
String file_system
 Name of the filesystem on partition.
String mount_point
 Mount point of the partition.


Detailed Description

Stores details about one partition.


Constructor & Destructor Documentation

hwdet::LinuxDetector::PartitionInfo::PartitionInfo ( const String name,
const std::vector< FstabEntry > &  fstab_entries 
)

Read data about the partition.

Parameters:
name Name of the device.
fstab_entries Entries from the fstab file.


Member Function Documentation

DiskPartition * hwdet::LinuxDetector::PartitionInfo::GetDiskPartition ( void   )  const

Convert data to XML node.

Returns:
DiskPartition object containing same data as this class.


Field Documentation

String hwdet::LinuxDetector::PartitionInfo::device_name

Name of the device.

String hwdet::LinuxDetector::PartitionInfo::device_path

Full name of the device.

String hwdet::LinuxDetector::PartitionInfo::file_system

Name of the filesystem on partition.

unsigned long long hwdet::LinuxDetector::PartitionInfo::free_space

Free space on the partition in bytes.

String hwdet::LinuxDetector::PartitionInfo::mount_point

Mount point of the partition.

unsigned long long hwdet::LinuxDetector::PartitionInfo::size

Size of the partition in bytes.


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