summaryrefslogtreecommitdiff
path: root/extpipe.h
blob: 09f9948d4265f9713e069b1fe6d24fa7103b12c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _EXTPIPE_H
#define _EXTPIPE_H

#include <sys/types.h>
#include <stdio.h>

class cExtPipe
{
private:
    pid_t pid;
    FILE *f;
public:
    cExtPipe(void);
    ~cExtPipe();
    operator FILE* ()
    {
        return f;
    }
    bool Open(const char *Command, const char *Mode);
    int Close(int &status);
};

#endif