Guitar
MyProcess.h
Go to the documentation of this file.
1 #ifndef MYPROCESS_H
2 #define MYPROCESS_H
3 
4 // Process.h というファイルはWindows環境に既存なので MyProcess.h にした
5 
6 #include <QtGlobal>
7 #include <future>
8 
9 #ifdef Q_OS_WIN
10 #include "win32/Win32Process.h"
11 #include "win32/Win32PtyProcess.h"
12 using Process = Win32Process;
14 #else
15 #include "unix/UnixProcess.h"
16 #include "unix/UnixPtyProcess.h"
19 #endif
20 
22 public:
23  bool ok = false;
24  int exit_code = std::numeric_limits<int>::min();
25  std::vector<char> output;
26  std::string error_message;
27  std::string log_message;
28 };
29 
30 #endif // MYPROCESS_H
Definition: MyProcess.h:21
bool ok
Definition: MyProcess.h:23
int exit_code
Definition: MyProcess.h:24
std::string error_message
Definition: MyProcess.h:26
std::vector< char > output
Definition: MyProcess.h:25
std::string log_message
Definition: MyProcess.h:27
Definition: UnixProcess.h:9
Definition: UnixPtyProcess.h:7
Definition: Win32Process.h:10
Definition: Win32PtyProcess.h:9