Inheritance diagram for hwdet::GentooFindPackager::FindExec:
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 | |
XMLElement * | output_node |
Products node which will receive data. |
hwdet::GentooFindPackager::FindExec::FindExec | ( | MessageReporter * | parent_reporter, | |
XMLElement * | output | |||
) |
Constructor.
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.
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.
child_pid | PID of the child process. | |
file | File created from the output decriptor of the pipe. |
Implements hwdet::ForkAndPipe.
Products node which will receive data.