Odil
A C++11 library for the DICOM standard
base64.h
Go to the documentation of this file.
1/*************************************************************************
2 * odil - Copyright (C) Universite de Strasbourg
3 * Distributed under the terms of the CeCILL-B license, as published by
4 * the CEA-CNRS-INRIA. Refer to the LICENSE file or to
5 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
6 * for details.
7 ************************************************************************/
8
9#ifndef _203e7be8_beaa_4d97_94b2_6a0070f158a1
10#define _203e7be8_beaa_4d97_94b2_6a0070f158a1
11
12#include <string>
13
14#include "odil/odil.h"
15
16namespace odil
17{
18
19namespace base64
20{
21
23extern ODIL_API std::string const symbols;
24
26extern ODIL_API std::string const reversed_symbols;
27
29template<typename TInputIterator, typename TOutputIterator>
30void encode(
31 TInputIterator begin, TInputIterator end, TOutputIterator destination);
32
34template<typename TInputIterator, typename TOutputIterator>
35void decode(
36 TInputIterator begin, TInputIterator end, TOutputIterator destination);
37
38}
39
40}
41
42#include "odil/base64.txx"
43
44#endif // _203e7be8_beaa_4d97_94b2_6a0070f158a1
void encode(TInputIterator begin, TInputIterator end, TOutputIterator destination)
Encode a sequence of 8 bits data to Base64.
std::string const symbols
Dictionary of symbols for Base64.
std::string const reversed_symbols
Mapping of ASCII characters to values of Base64 symbols.
void decode(TInputIterator begin, TInputIterator end, TOutputIterator destination)
Decode a sequence of 8 bits data from Base64.
Definition: Association.h:25
#define ODIL_API
Definition: odil.h:28