#ifndef INCLUDED_BOBCAT_IFDSTREAMS_
#define INCLUDED_BOBCAT_IFDSTREAMS_

#include <istream>
#include <bobcat/ifdbufs>

namespace FBB
{

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

inline IFdStreamS::IFdStreamS(int fd, size_t n)
:
    IFdBufS(fd, n),
    std::istream(this)
{}

} // FBB

#endif
