Code::Blocks
SVN r11506
|
#include <pipedprocess.h>
Public Member Functions | |
PipedProcess (PipedProcess **pvThis, wxEvtHandler *parent, int id=wxID_ANY, bool pipe=true, const wxString &dir=wxEmptyString, int index=-1) | |
~PipedProcess () override | |
virtual int | Launch (const wxString &cmd, unsigned int pollingInterval=100) |
virtual void | SendString (const wxString &text) |
virtual bool | HasInput () |
virtual int | GetPid () |
void | ForfeitStreams () |
Public Member Functions inherited from wxProcess | |
wxProcess (wxEvtHandler *parent=NULL, int id=-1) | |
wxProcess (int flags) | |
virtual | ~wxProcess () |
void | CloseOutput () |
void | Detach () |
wxInputStream * | GetErrorStream () const |
wxInputStream * | GetInputStream () const |
wxOutputStream * | GetOutputStream () const |
long | GetPid () const |
bool | IsErrorAvailable () const |
bool | IsInputAvailable () const |
bool | IsInputOpened () const |
void | Redirect () |
void | SetPriority (unsigned priority) |
Protected Member Functions | |
void | OnTerminate (int pid, int status) override |
virtual void | OnTimer (wxTimerEvent &event) |
virtual void | OnIdle (wxIdleEvent &event) |
Protected Attributes | |
wxEvtHandler * | m_Parent |
wxTimer | m_timerPollProcess |
int | m_Id |
int | m_Pid |
int | m_Index |
When there are multiple processes started you could use this to distinguish between different processes. More... | |
bool | m_Stopped |
Private Attributes | |
PipedProcess ** | m_pvThis |
Additional Inherited Members | |
Static Public Member Functions inherited from wxProcess | |
static bool | Exists (int pid) |
static wxKillError | Kill (int pid, wxSignal sig=wxSIGTERM, int flags=wxKILL_NOCHILDREN) |
static wxProcess * | Open (const wxString &cmd, int flags=wxEXEC_ASYNC) |
Definition at line 18 of file pipedprocess.h.
PipedProcess::PipedProcess | ( | PipedProcess ** | pvThis, |
wxEvtHandler * | parent, | ||
int | id = wxID_ANY , |
||
bool | pipe = true , |
||
const wxString & | dir = wxEmptyString , |
||
int | index = -1 |
||
) |
Definition at line 111 of file pipedprocess.cpp.
References wxString::empty(), UnixFilename(), and wxSetWorkingDirectory().
|
override |
Definition at line 129 of file pipedprocess.cpp.
void PipedProcess::ForfeitStreams | ( | ) |
Definition at line 158 of file pipedprocess.cpp.
References wxTextInputStream::GetInputStream().
|
inlinevirtual |
Definition at line 29 of file pipedprocess.h.
References wxProcess::OnTerminate().
|
virtual |
Definition at line 176 of file pipedprocess.cpp.
References cbEVT_PIPEDPROCESS_STDERR, cbEVT_PIPEDPROCESS_STDOUT, wxTextInputStream::GetInputStream(), cbTextInputStream::ReadLine(), and wxPostEvent().
Referenced by ToolsManager::OnIdle().
|
virtual |
Definition at line 134 of file pipedprocess.cpp.
References wxEXEC_ASYNC, wxEXEC_MAKE_GROUP_LEADER, and wxExecute().
|
protectedvirtual |
Definition at line 238 of file pipedprocess.cpp.
|
overrideprotectedvirtual |
Reimplemented from wxProcess.
Definition at line 217 of file pipedprocess.cpp.
References cbEVT_PIPEDPROCESS_TERMINATED, and wxPostEvent().
|
protectedvirtual |
Definition at line 233 of file pipedprocess.cpp.
References wxWakeUpIdle().
|
virtual |
Definition at line 146 of file pipedprocess.cpp.
References _T, and wxTextOutputStream::WriteString().
Referenced by DebuggerGDB::DoSendCommand().
|
protected |
Definition at line 38 of file pipedprocess.h.
|
protected |
When there are multiple processes started you could use this to distinguish between different processes.
You could also use the id, but then you must preallocate too many ids and with the growing number of threads available in contemporary machines, this becomes unfeasible. It is sent back in the X variable of the CodeBlocksEvent.
Definition at line 46 of file pipedprocess.h.
|
protected |
Definition at line 36 of file pipedprocess.h.
|
protected |
Definition at line 39 of file pipedprocess.h.
|
private |
Definition at line 50 of file pipedprocess.h.
|
protected |
Definition at line 48 of file pipedprocess.h.
|
protected |
Definition at line 37 of file pipedprocess.h.