hwdet::Detector Class Reference

Base class for all detectors. Each detector for specific OS is derived from this class. More...

#include <Detector.h>

Inheritance diagram for hwdet::Detector:

hwdet::MessageReporter hwdet::LinuxDetector

Public Member Functions

 Detector (const String &name, const Char *enc=NULL)
virtual bool Initialize (void)=0
 Initialize detector.
virtual bool Detect (void)=0
 Detect all features.
virtual bool Destroy (void)=0
 Clear all used memory.
virtual String GetOutputString (void) const =0
 Get string containing output file.
virtual bool WriteToStream (OStream &stream) const =0
 Write generated output to the stream.
virtual String GetOutputEncoding (void)
 Get character encoding of the output file/string.

Protected Attributes

XMLOutputFile output
 Output XML file.
XMLElementroot_node
 Root node of the XML file.

Detailed Description

Base class for all detectors. Each detector for specific OS is derived from this class.


Constructor & Destructor Documentation

hwdet::Detector::Detector ( const String name,
const Char enc = NULL 
) [inline]

Constructor.

Parameters:
name Name of the MessageReporter which will be used to report log messages generated by this class.
enc Encoding for output file. If NULL, no encoding information is written to the output.


Member Function Documentation

virtual bool hwdet::Detector::Destroy ( void   )  [pure virtual]

Clear all used memory.

Implemented in hwdet::LinuxDetector.

virtual bool hwdet::Detector::Detect ( void   )  [pure virtual]

Detect all features.

Implemented in hwdet::LinuxDetector.

virtual String hwdet::Detector::GetOutputEncoding ( void   )  [inline, virtual]

Get character encoding of the output file/string.

virtual String hwdet::Detector::GetOutputString ( void   )  const [pure virtual]

Get string containing output file.

Implemented in hwdet::LinuxDetector.

virtual bool hwdet::Detector::Initialize ( void   )  [pure virtual]

Initialize detector.

Implemented in hwdet::LinuxDetector.

virtual bool hwdet::Detector::WriteToStream ( OStream stream  )  const [pure virtual]

Write generated output to the stream.

Implemented in hwdet::LinuxDetector.


Field Documentation

XMLOutputFile hwdet::Detector::output [protected]

Output XML file.

XMLElement* hwdet::Detector::root_node [protected]

Root node of the XML file.


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