yo/concrete/examples/ipipe.h
raw| 1 | #ifndef INCLUDED_IPIPE_H_ |
| 2 | #define INCLUDED_IPIPE_H_ |
| 3 | |
| 4 | #ifndef INCLUDED_PIPE_H_ |
| 5 | #include "../pipe/pipe.h" |
| 6 | #endif |
| 7 | |
| 8 | #ifndef INCLUDED_IFDSTREAMBUF_H_ |
| 9 | #include "../ifdstreambuf/ifdstreambuf.h" |
| 10 | #endif |
| 11 | |
| 12 | #ifndef SYSINC_ISTREAM_ |
| 13 | #include <istream> |
| 14 | #define SYSINC_ISTREAM_ |
| 15 | #endif |
| 16 | |
| 17 | namespace FBB |
| 18 | { |
| 19 | class IPipe: public Pipe, private IFdStreambuf, public std::istream |
| 20 | { |
| 21 | public: |
| 22 | IPipe(size_t size = 500); |
| 23 | void closeWriteFd(); |
| 24 | }; |
| 25 | } |
| 26 | |
| 27 | #endif |