#include <DefaultDistribution.h>
Inheritance diagram for hwdet::DefaultDistribution:
Public Member Functions | |
DefaultDistribution (MessageReporter *parent_reporter) | |
Ctor. | |
virtual | ~DefaultDistribution (void) |
Dtor. | |
virtual bool | DetectOS (XMLElement *root_node) |
Detect properties of the installed OS. | |
virtual float | GetFitness (void) |
This is generic handler that should work on all distributions. Since it is generic, it does have a lot of features. Actually, it detects only basic properties of the system as determined by the uname
syscall.
hwdet::DefaultDistribution::DefaultDistribution | ( | MessageReporter * | parent_reporter | ) | [inline] |
Ctor.
parent_reporter | Reporter to which all messages are dispatched. |
virtual hwdet::DefaultDistribution::~DefaultDistribution | ( | void | ) | [inline, virtual] |
Dtor.
virtual bool hwdet::DefaultDistribution::DetectOS | ( | XMLElement * | root_node | ) | [inline, virtual] |
Detect properties of the installed OS.
Since this is default handler, it only parses data returned by the uname
syscall (which is actually called by the ancestor class in the constructor).
root_node | Root node of the XML file. This will create new OperatingSystem sub+node which will contain all data collected about the OS. |
Implements hwdet::Distribution.
virtual float hwdet::DefaultDistribution::GetFitness | ( | void | ) | [inline, virtual] |
Implements hwdet::Distribution.