10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
*
* Alternatively, it may be distributed under the terms of the GNU General
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#include <sys/types.h>
#import "OFStream.h"
/**
* \brief A class for stream-like communication with a newly created process.
*/
@interface OFProcess: OFStream
{
pid_t pid;
int readPipe[2], writePipe[2];
int status;
BOOL atEndOfStream;
}
/**
* \brief Creates a new OFProcess with the specified program and invokes the
* program.
|
>
|
>
>
>
>
>
>
>
>
>
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
*
* Alternatively, it may be distributed under the terms of the GNU General
* Public License, either version 2 or 3, which can be found in the file
* LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
* file.
*/
#ifndef _WIN32
# include <sys/types.h>
#endif
#import "OFStream.h"
#ifdef _WIN32
# include <windows.h>
#endif
/**
* \brief A class for stream-like communication with a newly created process.
*/
@interface OFProcess: OFStream
{
#ifndef _WIN32
pid_t pid;
int readPipe[2], writePipe[2];
#else
HANDLE readPipe[2], writePipe[2];
#endif
int status;
BOOL atEndOfStream;
}
/**
* \brief Creates a new OFProcess with the specified program and invokes the
* program.
|