VoiceMan
|
The interface for handling executor output in main loop class. More...
Public Member Functions | |
virtual int | getExecutorStderrDescriptor () const =0 |
Returns the file descriptor of executor stderr stream. | |
virtual int | getExecutorStdoutDescriptor () const =0 |
Returns the file descriptor of executor stdout stream. | |
virtual void | readExecutorStderrData ()=0 |
Notifies there is data to read from executor stderr stream. | |
virtual void | readExecutorStdoutData ()=0 |
Notifies there is data to read from executor stdout stream. |
The VoiceMan executor as external process has stdout and stderr streams to send data back to VoiceMan and report errors. These two streams must be handled in general main loop via adding them into pselect() call. This interface is used to get both file descriptors of executor and send notification there is data to read from them.
virtual int AbstractExecutorOutput::getExecutorStderrDescriptor | ( | ) | const [pure virtual] |
This method returns file descriptor of executor stderr stream. This descriptor must be added to the main pselect() call to know when we have data to read.
Implemented in ExecutorInterface.
virtual int AbstractExecutorOutput::getExecutorStdoutDescriptor | ( | ) | const [pure virtual] |
This method returns file descriptor of executor stdout stream. This descriptor must be added to the main pselect() call to know when we have data to read.
Implemented in ExecutorInterface.
virtual void AbstractExecutorOutput::readExecutorStderrData | ( | ) | [pure virtual] |
This method notifies implementation to read accessible data from executor error stream. This notification is sent by MainLoop class when it receives corresponding information from main pselect() system call.
Implemented in ExecutorInterface.
virtual void AbstractExecutorOutput::readExecutorStdoutData | ( | ) | [pure virtual] |
This method notifies implementation to read accessible data from executor output stream. This notification is sent by MainLoop class when it receives corresponding information from main pselect() system call.
Implemented in ExecutorInterface.