summaryrefslogtreecommitdiff
path: root/extpipe.h
blob: 8df5356ab0f27b3b0777d410d26bdff9829868f5 (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* () const
    {
        return f;
    }
    bool Open(const char *Command, const char *Mode);
    int Close(int &status);
};

#endif