Debian Codegraph @

CodeLite/ChildProcess.h

raw
1 #ifndef CHILDPROCESS_H
2 #define CHILDPROCESS_H
3
4 #if defined(__WXMSW__)
5 #define USE_IPROCESS 1
6 #else
7 #define USE_IPROCESS 0
8 #include "UnixProcess.h"
9 #endif
10
11 #include <wx/arrstr.h>
12 #include <wx/event.h>
13 #include "cl_command_event.h"
14 #include <asyncprocess.h>
15 #include "codelite_exports.h"
16
17 class WXDLLIMPEXP_CL ChildProcess : public wxEvtHandler
18 {
19 #if USE_IPROCESS
20 IProcess* m_process = nullptr;
21 #else
22 UnixProcess* m_childProcess = nullptr;
23 #endif
24 public:
25 ChildProcess();
26 virtual ~ChildProcess();
27
28 void Start(const wxArrayString& args);
29 void Write(const wxString& message);
30 void Write(const std::string& message);
31 bool IsOk() const;
32 };
33
34 #endif // CHILDPROCESS_H