#ifndef INCLUDED_BOBCAT_OFDSTREAM_
#define INCLUDED_BOBCAT_OFDSTREAM_

#include <ostream>
#include <bobcat/ofdbuf>

namespace FBB
{

class OFdStream: private OFdBuf, public std::ostream
{
    public:
        explicit OFdStream(int fd, size_t n = 1);
};

inline OFdStream::OFdStream(int fd, size_t n)
:
    OFdBuf(fd, n),
    std::ostream(this)
{}

} // FBB

#endif
