-
Notifications
You must be signed in to change notification settings - Fork 59
/
Process.h
33 lines (26 loc) · 602 Bytes
/
Process.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Process.h
* OpenLieroX
*
* Created by Albert Zeyer on 10.02.09.
* code under LGPL
*
*/
#ifndef __OLX__PROCESS_H__
#define __OLX__PROCESS_H__
#include <iostream>
#include <string>
#include <vector>
struct ProcessIntern;
class Process {
private:
ProcessIntern* data;
public:
Process(); ~Process();
std::ostream& in();
std::istream& out();
void close();
// this can also open script files in the UNIX-way on every system
bool open( const std::string & cmd, std::vector< std::string > params = std::vector< std::string > (), const std::string& working_dir = "." );
};
#endif