00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef BASE64_H
00015 #define BASE64_H
00016
00036 #include <string>
00037
00039 class Base64 {
00040 public:
00041 static std::string encode(const std::string& data);
00042 static std::string decode(const std::string& data);
00043
00044 static bool isPrintable(const std::string& s);
00045
00046 static const std::string Base64Table;
00047
00048 private:
00049 static const std::string::size_type DecodeTable[];
00050 static const char fillchar;
00051 static const std::string::size_type np;
00052 };
00053
00054 #endif // BASE64_H