hwdet::RPMPackager::RPMExec Class Reference

Execs RPM command and parses its output. More...

Inheritance diagram for hwdet::RPMPackager::RPMExec:

hwdet::ForkAndPipe hwdet::MessageReporter

Public Member Functions

 RPMExec (MessageReporter *parent_reporter, XMLElement *output)
 Constructor.
virtual ~RPMExec (void)
 Destructor.
virtual void ParentProcess (pid_t child_pid, FILE *file)
 Parent process (parse data from RPM).
virtual void ChildProcess (void)
 Child process (exec RPM).

Private Attributes

XMLElementoutput_node
 Products node which will receive data.

Detailed Description

Execs RPM command and parses its output.


Constructor & Destructor Documentation

hwdet::RPMPackager::RPMExec::RPMExec ( MessageReporter parent_reporter,
XMLElement output 
)

Constructor.

hwdet::RPMPackager::RPMExec::~RPMExec ( void   )  [virtual]

Destructor.


Member Function Documentation

void hwdet::RPMPackager::RPMExec::ChildProcess ( void   )  [virtual]

Child process (exec RPM).

This will execute RPM with command-line options set so that only list of all installed packages is produced.

Implements hwdet::ForkAndPipe.

void hwdet::RPMPackager::RPMExec::ParentProcess ( pid_t  child_pid,
FILE *  file 
) [virtual]

Parent process (parse data from RPM).

Reads all data generated by the child process.

Parameters:
child_pid PID of the child process.
file File created from the output decriptor of the pipe.

Implements hwdet::ForkAndPipe.


Field Documentation

XMLElement* hwdet::RPMPackager::RPMExec::output_node [private]

Products node which will receive data.


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