AbstractExecutorOutput Class Reference

The interface for handling executor output in main loop class. More...

Inheritance diagram for AbstractExecutorOutput:

ExecutorInterface

List of all members.

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.


Detailed Description

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.

See also:
ExecutorInterface MainLoop

Member Function Documentation

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.

Returns:
The file descriptor of executor stderr stream

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.

Returns:
The file descriptor of executor stdout stream

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.


Generated on Thu May 6 16:10:58 2010 for VoiceMan by  doxygen 1.5.9