hwdet::DiskDrive Class Reference

Storage class for disk drive related data. More...

#include <DiskDrive.h>

Inheritance diagram for hwdet::DiskDrive:

hwdet::XMLElement

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.

Detailed Description

Storage class for disk drive related data.


Constructor & Destructor Documentation

hwdet::DiskDrive::DiskDrive ( unsigned long long  disk_size,
const String model_name,
const String media,
const String device 
)

Constructor.

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


Member Function Documentation

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.

Returns:
String with model name of the drive.

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

Get size of the drive in bytes.

Returns:
Size of the drive in bytes.


Field Documentation

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.


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