28 m_allowMBconversion(true)
30 memset((
void*)m_lastBytes, 0, 10);
36 memset((
void*)m_lastBytes, 0, 10);
50 memset((
void*)m_lastBytes, 0, 10);
51 for (
size_t inlen = 0; inlen < 9; inlen++)
54 m_lastBytes[inlen] = m_input.GetC();
56 if (m_input.LastRead() <= 0)
58 if (m_allowMBconversion)
60 int retlen = (int) m_conv->MB2WC(wbuf, m_lastBytes, 2);
65 return m_lastBytes[inlen];
70 m_lastBytes[0] = m_input.GetC();
72 if (m_input.LastRead() <= 0)
75 return m_lastBytes[0];
85 while ( m_input.CanRead() && !m_input.Eof() )
88 if (m_input.LastRead() <= 0)
122 if (!unixDir.
empty())
162 if ( IsErrorAvailable() )
165 while (in->Read(&buf,
sizeof(buf)).LastRead())
168 if ( IsInputAvailable() )
171 while (in->Read(&buf,
sizeof(buf)).LastRead())
178 if (IsErrorAvailable())
189 event.SetString(msg);
196 if (IsInputAvailable())
207 event.SetString(msg);
224 event.SetInt(status);
virtual void WriteString(const wxString &string)
wxTextInputStream(wxInputStream &stream, const wxString &sep=" \", const wxMBConv &conv=wxConvAuto())
EVTIMPORT const wxEventType cbEVT_PIPEDPROCESS_STDOUT
EVTIMPORT const wxEventType cbEVT_PIPEDPROCESS_TERMINATED
cbTextInputStream(wxInputStream &s, const wxString &sep=wxT(" \), wxMBConv &conv=wxConvLocal)
A generic Code::Blocks event.
wxUSE_UNICODE_dependent wxChar
virtual void SendString(const wxString &text)
DLLIMPORT wxString UnixFilename(const wxString &filename, wxPathFormat format=wxPATH_NATIVE)
void wxPostEvent(wxEvtHandler *dest, const wxEvent &event)
bool wxSetWorkingDirectory(const wxString &dir)
void OnTerminate(int pid, int status) override
virtual int Launch(const wxString &cmd, unsigned int pollingInterval=100)
virtual void OnTimer(wxTimerEvent &event)
const wxInputStream & GetInputStream() const
virtual void OnIdle(wxIdleEvent &event)
EVTIMPORT const wxEventType cbEVT_PIPEDPROCESS_STDERR
long wxExecute(const wxString &command, int flags=wxEXEC_ASYNC, wxProcess *callback=NULL, const wxExecuteEnv *env=NULL)