Cupt
Main Page
Related Pages
Namespaces
Classes
Files
File List
cupt
pipe.hpp
1
/**************************************************************************
2
* Copyright (C) 2010 by Eugene V. Lyubimkin *
3
* *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License *
6
* (version 3 or above) as published by the Free Software Foundation. *
7
* *
8
* This program is distributed in the hope that it will be useful, *
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
11
* GNU General Public License for more details. *
12
* *
13
* You should have received a copy of the GNU GPL *
14
* along with this program; if not, write to the *
15
* Free Software Foundation, Inc., *
16
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA *
17
**************************************************************************/
18
#ifndef CUPT_PIPE_SEEN
19
#define CUPT_PIPE_SEEN
20
22
23
#include <unistd.h>
24
25
#include <
cupt/common.hpp
>
26
27
namespace
cupt {
28
29
namespace
internal {
30
31
struct
PipeData;
32
33
}
34
35
// TODO/API break/: not used externally anymore, make it internal
36
class
CUPT_API Pipe
37
{
38
internal::PipeData* __data;
39
Pipe(
const
Pipe&);
40
public
:
41
Pipe(
const
string
& name);
42
virtual
~Pipe();
43
void
useAsReader();
44
void
useAsWriter();
45
int
getReaderFd();
46
int
getWriterFd();
47
};
48
49
}
50
52
53
#endif
54
Generated on Mon Oct 29 2012 01:35:45 for Cupt by
1.8.1.2