|
Operator Console
|
Defines a thread class for capturing stdout. More...
#include <StdoutThread.h>
Public Member Functions | |
| StdoutThread (void) | |
| virtual | ~StdoutThread (void) |
| void | Get (CString &dst, bool clear) |
| void | Quit () |
| bool | InitThread (int bufLen, UINT threadMsg, DWORD parentID) |
| StdoutThread (void) | |
| virtual | ~StdoutThread (void) |
| void | Get (CString &dst, bool clear) |
| void | Quit () |
| bool | InitThread (int bufLen, UINT threadMsg, DWORD parentID) |
Public Member Functions inherited from StdoutRedirect | |
| 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) |
Static Public Member Functions | |
| static UINT __cdecl | ThreadProc (void *param) |
| static UINT __cdecl | ThreadProc (void *param) |
Protected Attributes | |
| int | m_bufLen |
| the size of the stdio buffer More... | |
| CriticalCString | m_str |
| this stores the data that was read More... | |
| UINT | m_msg |
| message to send when data has been read More... | |
| DWORD | m_parentID |
| ID of thread to send m_msg to. More... | |
| CWinThread * | m_thread |
| pointer to our thread More... | |
Protected Attributes inherited from StdoutRedirect | |
| FILE * | file |
| stdout (subclasses can set this to something else, e.g. stderr) More... | |
Defines a thread class for capturing stdout.
| StdoutThread::StdoutThread | ( | void | ) |
References m_bufLen, m_msg, and m_parentID.
| StdoutThread::StdoutThread | ( | void | ) |
|
virtual |
|
inline |
References CriticalCString::Get(), and m_str.
Referenced by COperatorConsoleApp::GetStdoutMsg().
|
inline |
References CriticalCString::Get(), and m_str.
| bool StdoutThread::InitThread | ( | int | bufLen, |
| UINT | threadMsg, | ||
| DWORD | parentID | ||
| ) |
| bool StdoutThread::InitThread | ( | int | bufLen, |
| UINT | threadMsg, | ||
| DWORD | parentID | ||
| ) |
References StdoutRedirect::Init(), m_bufLen, m_msg, m_parentID, m_thread, StdoutRedirect::Start(), and ThreadProc().
Referenced by COperatorConsoleApp::InitOutput().
| void StdoutThread::Quit | ( | ) |
References StdoutRedirect::Close(), m_thread, and StdoutRedirect::Stop().
Referenced by COperatorConsoleApp::Quit().
| void StdoutThread::Quit | ( | ) |
|
static |
References CriticalCString::Append(), BUF_LEN, FindChar(), StdoutRedirect::GetBuffer(), m_bufLen, m_msg, m_parentID, m_str, and CriticalCString::Set().
Referenced by InitThread().
|
static |
|
protected |
the size of the stdio buffer
Referenced by InitThread(), StdoutThread(), and ThreadProc().
|
protected |
message to send when data has been read
Referenced by InitThread(), StdoutThread(), and ThreadProc().
|
protected |
ID of thread to send m_msg to.
Referenced by InitThread(), StdoutThread(), and ThreadProc().
|
protected |
this stores the data that was read
Referenced by Get(), and ThreadProc().
|
protected |
pointer to our thread
Referenced by InitThread(), and Quit().
1.8.6