#ifndef BOTAN_DATA_SINK_H__
#define BOTAN_DATA_SINK_H__
#include "botan-1.6/include/filter.h"
#include <iosfwd>
namespace Enctain {
namespace Botan {
class DataSink : public Filter
{
public:
bool attachable() { return false; }
DataSink() {}
virtual ~DataSink() {}
private:
DataSink& operator=(const DataSink&) { return (*this); }
DataSink(const DataSink&);
};
class DataSink_Stream : public DataSink
{
public:
void write(const byte[], u32bit);
DataSink_Stream(std::ostream&);
DataSink_Stream(const std::string&, bool = false);
~DataSink_Stream();
private:
const std::string fsname;
std::ostream* sink;
bool owns;
};
}
}
#endif