Guitar
MyProcess2.h
Go to the documentation of this file.
1 #ifndef MYPROCESS2_H
2 #define MYPROCESS2_H
3 
4 #include <string>
5 #include <vector>
6 
7 namespace process {
8 
9 struct ProcessResult {
10  bool ok = false;
11  int exit_code = 0;
12 
13  explicit operator bool () const
14  {
15  return ok;
16  }
17 };
18 
19 
20 } // namespace process
21 
22 namespace misc {
23 void parse_args(std::string const &cmd, std::vector<std::string> *out);
24 }
25 
26 
27 #ifdef _WIN32
28 
29 #else
30 #include "ProcessPosix.h"
31 #endif
32 
33 
34 
35 #endif // MYPROCESS2_H
Definition: misc.h:20
void parse_args(std::string const &cmd, std::vector< std::string > *out)
Definition: MyProcess2.cpp:4
Definition: MyProcess2.h:7
Definition: MyProcess2.h:9
bool ok
Definition: MyProcess2.h:10
int exit_code
Definition: MyProcess2.h:11