#ifndef INCLUDED_BOBCAT_IFDSTREAM_
#define INCLUDED_BOBCAT_IFDSTREAM_

#include <istream>
#include <bobcat/ifdbuf>

namespace FBB
{

class IFdStream: private IFdBuf, public std::istream
{
    public:
        explicit IFdStream(int fd, size_t n = 1);       // 1.f
};

inline IFdStream::IFdStream(int fd, size_t n)
:
    IFdBuf(fd, n),
    std::istream(this)
{}

} // FBB

#endif
