summaryrefslogtreecommitdiffstats
path: root/src/Common/Base64Encoder.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-05-17 01:34:10 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-05-17 01:34:10 +0200
commita3e566c4d3631076e29f3651554603184b6351a7 (patch)
tree71effee59fd4364174f7a845204f946dbc18ff2a /src/Common/Base64Encoder.h
parentc8d469cc3de8ef2fb95f7b47355ebf5318a4c22f (diff)
downloadmad-a3e566c4d3631076e29f3651554603184b6351a7.tar
mad-a3e566c4d3631076e29f3651554603184b6351a7.zip
Gnulib durch boost ersetzt
Diffstat (limited to 'src/Common/Base64Encoder.h')
-rw-r--r--src/Common/Base64Encoder.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/Common/Base64Encoder.h b/src/Common/Base64Encoder.h
new file mode 100644
index 0000000..d451109
--- /dev/null
+++ b/src/Common/Base64Encoder.h
@@ -0,0 +1,43 @@
+/*
+ * Base64Encoder.h
+ *
+ * Copyright (C) 2009 Matthias Schiffer <matthias@gamezock.de>
+ *
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef MAD_COMMON_BASE64ENCODER_H_
+#define MAD_COMMON_BASE64ENCODER_H_
+
+#include <string>
+#include <vector>
+
+#include <boost/cstdint.hpp>
+
+namespace Mad {
+namespace Common {
+
+class Base64Encoder {
+ private:
+ Base64Encoder();
+
+ public:
+ static std::string encode(const std::vector<boost::uint8_t> &data);
+ static std::vector<boost::uint8_t> decode(const std::string &data);
+};
+
+}
+}
+
+#endif /* MAD_COMMON_BASE64ENCODER_H_ */