From a3e566c4d3631076e29f3651554603184b6351a7 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 17 May 2009 01:34:10 +0200 Subject: Gnulib durch boost ersetzt --- src/Common/Base64Encoder.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/Common/Base64Encoder.h (limited to 'src/Common/Base64Encoder.h') 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 + * + * 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 . + */ + +#ifndef MAD_COMMON_BASE64ENCODER_H_ +#define MAD_COMMON_BASE64ENCODER_H_ + +#include +#include + +#include + +namespace Mad { +namespace Common { + +class Base64Encoder { + private: + Base64Encoder(); + + public: + static std::string encode(const std::vector &data); + static std::vector decode(const std::string &data); +}; + +} +} + +#endif /* MAD_COMMON_BASE64ENCODER_H_ */ -- cgit v1.2.3