Operator Console
|
Defines functions for redirecting stdout through a buffered pipe. More...
#include <StdoutRedirect.h>
Public Member Functions | |
StdoutRedirect () | |
virtual | ~StdoutRedirect () |
void | Close () |
int | Init (int bufferSize) |
int | Start () |
int | Stop () |
int | GetBuffer (char *buffer, int size) |
StdoutRedirect () | |
virtual | ~StdoutRedirect () |
void | Close () |
int | Init (int bufferSize) |
int | Start () |
int | Stop () |
int | GetBuffer (char *buffer, int size) |
Protected Attributes | |
FILE * | file |
stdout (subclasses can set this to something else, e.g. stderr) More... | |
Private Attributes | |
int | fdStdOutPipe [2] |
int | fdStdOut |
bool | isOpen |
Defines functions for redirecting stdout through a buffered pipe.
StdoutRedirect::StdoutRedirect | ( | ) |
StdoutRedirect::StdoutRedirect | ( | ) |
|
virtual |
void StdoutRedirect::Close | ( | ) |
References READ_FD, and WRITE_FD.
Referenced by StdoutThread::Quit().
void StdoutRedirect::Close | ( | ) |
int StdoutRedirect::GetBuffer | ( | char * | buffer, |
int | size | ||
) |
References READ_FD.
Referenced by StdoutThread::ThreadProc().
int StdoutRedirect::GetBuffer | ( | char * | buffer, |
int | size | ||
) |
int StdoutRedirect::Init | ( | int | bufferSize | ) |
int StdoutRedirect::Init | ( | int | bufferSize | ) |
Referenced by StdoutThread::InitThread().
int StdoutRedirect::Start | ( | ) |
int StdoutRedirect::Start | ( | ) |
References CHECK, and WRITE_FD.
Referenced by StdoutThread::InitThread().
int StdoutRedirect::Stop | ( | ) |
References CHECK.
Referenced by StdoutThread::Quit().
int StdoutRedirect::Stop | ( | ) |
|
private |
|
private |
|
protected |
stdout (subclasses can set this to something else, e.g. stderr)
Referenced by StderrRedirect::StderrRedirect(), and StderrThread::StderrThread().
|
private |