hwdet::GentooFindPackager::FindExec Class Reference

Exec find command and parse its output. More...

Inheritance diagram for hwdet::GentooFindPackager::FindExec:

hwdet::ForkAndPipe hwdet::MessageReporter

Public Member Functions

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

Private Attributes

XMLElementoutput_node
 Products node which will receive data.

Detailed Description

Exec find command and parse its output.


Constructor & Destructor Documentation

hwdet::GentooFindPackager::FindExec::FindExec ( MessageReporter parent_reporter,
XMLElement output 
)

Constructor.

Parameters:
parent_reporter Message reporter which will receive all messages generated in this class.
output XML node which will receive parsed data.

hwdet::GentooFindPackager::FindExec::~FindExec ( void   )  [virtual]

Destructor.


Member Function Documentation

void hwdet::GentooFindPackager::FindExec::ChildProcess ( void   )  [virtual]

Child process (exec Equery).

This will search for all files in the portage database and print names on the console. Output format is exactly same as that produced by the equery.

Implements hwdet::ForkAndPipe.

void hwdet::GentooFindPackager::FindExec::ParentProcess ( pid_t  child_pid,
FILE *  file 
) [virtual]

Parent process (parse data from Equery).

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::GentooFindPackager::FindExec::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