1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-10-06 12:01:39 +00:00
pdf2htmlEX/src/util/base64.h

34 lines
581 B
C
Raw Normal View History

2012-11-29 09:50:40 +00:00
/*
* Base64 Encoding
*
* by WangLu
* 2012.11.29
*/
#ifndef BASE64_H__
#define BASE64_H__
#include <iostream>
2012-11-29 10:16:05 +00:00
namespace pdf2htmlEX {
2012-11-29 09:50:40 +00:00
class base64stream
{
public:
base64stream(std::istream & in) : in(&in) { }
base64stream(std::istream && in) : in(&in) { }
2012-11-29 11:38:57 +00:00
std::ostream & dumpto(std::ostream & out);
2012-11-29 09:50:40 +00:00
private:
std::istream * in;
static const char * base64_encoding;
};
2012-11-29 11:38:57 +00:00
std::ostream & operator << (std::ostream & out, base64stream & bf);
std::ostream & operator << (std::ostream & out, base64stream && bf);
2012-11-29 09:50:40 +00:00
2012-11-29 10:16:05 +00:00
} //namespace pdf2htmlEX
2012-11-29 09:50:40 +00:00
#endif //BASE64_H__