#include <LinuxDetector.h>
Inheritance diagram for hwdet::LinuxDetector:
Public Member Functions | |
LinuxDetector (void) | |
Constructor. | |
~LinuxDetector (void) | |
Destructor. | |
bool | Initialize (void) |
Initialize detector. | |
bool | Detect (void) |
Detect all features. | |
bool | Destroy (void) |
Clear all used memory. | |
String | GetOutputString (void) const |
Get string containing output file. | |
bool | WriteToStream (OStream &stream) const |
Write generated output to the stream. | |
Private Member Functions | |
bool | DetectOS (void) |
Detect OS features. | |
bool | DetectCPU (void) |
Detect CPU features. | |
bool | DetectMemory (void) |
Detect memory features. | |
bool | DetectDrives (void) |
Detect all drives. | |
std::vector< String > | ReadDriveNames (void) |
Determine names of all IDE drives. | |
std::vector< String > | ReadPartitionNames (const String &drive_prefix) |
Read names of all partitions on given drive. | |
std::vector< FstabEntry > | ReadMounts (void) |
Read data about all currently mounted filesystems. | |
bool | DetectBeenDisk (void) |
Detect properties of the BEEN disk. | |
bool | DetectNetwork (void) |
Detect network features. | |
bool | DetectProducts (void) |
Enumerate installed applications. | |
Private Attributes | |
DistributionRegistry | registry |
Distribution registry. | |
Data Structures | |
class | DriveInfo |
Helper class which stores details about one drive device. More... | |
class | FstabEntry |
Stores one entry from fstab file. More... | |
class | InterfaceInfo |
Stores data about one network interface. More... | |
class | PartitionInfo |
Stores details about one partition. More... |
This class collects all data about installed hardware and software.
hwdet::LinuxDetector::LinuxDetector | ( | void | ) |
Constructor.
Constructor.
hwdet::LinuxDetector::~LinuxDetector | ( | void | ) |
Destructor.
Destructor.
bool hwdet::LinuxDetector::Destroy | ( | void | ) | [virtual] |
bool hwdet::LinuxDetector::Detect | ( | void | ) | [virtual] |
Detect all features.
Detect all features.
Implements hwdet::Detector.
bool hwdet::LinuxDetector::DetectBeenDisk | ( | void | ) | [private] |
Detect properties of the BEEN disk.
Read details about the disk on which BEEN is installed. Path to the drive is determined from the BEEN_HOME environment variable.
bool hwdet::LinuxDetector::DetectCPU | ( | void | ) | [private] |
Detect CPU features.
bool hwdet::LinuxDetector::DetectDrives | ( | void | ) | [private] |
Detect all drives.
bool hwdet::LinuxDetector::DetectMemory | ( | void | ) | [private] |
Detect memory features.
bool hwdet::LinuxDetector::DetectNetwork | ( | void | ) | [private] |
Detect network features.
bool hwdet::LinuxDetector::DetectOS | ( | void | ) | [private] |
Detect OS features.
bool hwdet::LinuxDetector::DetectProducts | ( | void | ) | [private] |
Enumerate installed applications.
String hwdet::LinuxDetector::GetOutputString | ( | void | ) | const [virtual] |
Get string containing output file.
Implements hwdet::Detector.
bool hwdet::LinuxDetector::Initialize | ( | void | ) | [virtual] |
Initialize detector.
Initialize detector.
Implements hwdet::Detector.
vector< String > hwdet::LinuxDetector::ReadDriveNames | ( | void | ) | [private] |
Determine names of all IDE drives.
Reads names of all IDE HDD devices from /proc/diskstats.
vector< LinuxDetector::FstabEntry > hwdet::LinuxDetector::ReadMounts | ( | void | ) | [private] |
Read data about all currently mounted filesystems.
This will read /proc/mounts file and parse entries for each currently mounted filesystem.
Read names of all partitions on given drive.
Reads names of all partitions of given drive from the /proc/diskstats file.
bool hwdet::LinuxDetector::WriteToStream | ( | OStream & | stream | ) | const [virtual] |
Write generated output to the stream.
stream | Stream to write output to. |
Implements hwdet::Detector.
Distribution registry.