#ifndef INCLUDED_BOBCAT_IBASE64STREAM_
#define INCLUDED_BOBCAT_IBASE64STREAM_

#include <istream>

#include <bobcat/ibase64buf>

// #include "../ibase64buf/ibase64buf"

namespace FBB
{

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

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

} // FBB        
#endif
