hwdet::DefaultDistribution Class Reference

Default distro handler. More...

#include <DefaultDistribution.h>

Inheritance diagram for hwdet::DefaultDistribution:

hwdet::Distribution hwdet::MessageReporter

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)

Detailed Description

Default distro handler.

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.


Constructor & Destructor Documentation

hwdet::DefaultDistribution::DefaultDistribution ( MessageReporter parent_reporter  )  [inline]

Ctor.

Parameters:
parent_reporter Reporter to which all messages are dispatched.

virtual hwdet::DefaultDistribution::~DefaultDistribution ( void   )  [inline, virtual]

Dtor.


Member Function Documentation

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).

Parameters:
root_node Root node of the XML file. This will create new OperatingSystem sub+node which will contain all data collected about the OS.
Returns:
Always true.

Implements hwdet::Distribution.

virtual float hwdet::DefaultDistribution::GetFitness ( void   )  [inline, virtual]

Returns:
This will return fitness for default handler. This is never used, since default handler is a "catch-all" class.

Implements hwdet::Distribution.


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