#ifndef INCLUDED_BOBCAT_IQUOTEDPRINTABLESTREAM_
#define INCLUDED_BOBCAT_IQUOTEDPRINTABLESTREAM_

#include <istream>

#include <bobcat/iquotedprintablebuf>

namespace FBB
{

template <CryptType type>
struct IQuotedPrintableStream: private IQuotedPrintableBuf<type>,
                               public std::istream
{
    IQuotedPrintableStream(std::istream &in, size_t bufSize = 1000);    // 1.f
};

template <CryptType type>
IQuotedPrintableStream<type>::IQuotedPrintableStream(std::istream &in,
                                                     size_t bufSize)
:
    IQuotedPrintableBuf<type>(in, bufSize),
    std::istream(this)
{}

} // FBB
#endif
