1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00
pdf2htmlEX/src/Base64Stream.h
2013-04-07 14:25:39 +08:00

35 lines
514 B
C++

/*
* Base64 Encoding
*
* by WangLu
* 2012.11.29
*/
#ifndef BASE64STREAM_H__
#define BASE64STREAM_H__
#include <iostream>
namespace pdf2htmlEX {
class Base64Stream
{
public:
Base64Stream(std::istream & in) : in(&in) { }
std::ostream & dumpto(std::ostream & out);
private:
std::istream * in;
static const char * base64_encoding;
};
inline
std::ostream & operator << (std::ostream & out, Base64Stream bs)
{
return bs.dumpto(out);
}
} //namespace pdf2htmlEX
#endif //BASE64STREAM_H__