LifeV
EncoderBase64.hpp
Go to the documentation of this file.
1 //@HEADER
2 /*
3 *******************************************************************************
4 
5  Copyright (C) 2004, 2005, 2007 EPFL, Politecnico di Milano, INRIA
6  Copyright (C) 2010 EPFL, Politecnico di Milano, Emory University
7 
8  This file is part of LifeV.
9 
10  LifeV is free software; you can redistribute it and/or modify
11  it under the terms of the GNU Lesser General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  LifeV is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public License
21  along with LifeV. If not, see <http://www.gnu.org/licenses/>.
22 
23 *******************************************************************************
24 */
25 //@HEADER
26 
27 /*!
28  @file
29  @brief An algorithm to encode / decode a string into base64 format
30 
31  The code was written by RenŽ Nyffenegger (original Copyright notice follows)
32 
33  @date 3-9-2011
34 
35  @maintainer Tiziano Passerini <tiziano@mathcs.emory.edu>
36 */
37 
38 /*
39  base64.cpp and base64.h
40 
41  Copyright (C) 2004-2008 RenŽ Nyffenegger
42 
43  This source code is provided 'as-is', without any express or implied
44  warranty. In no event will the author be held liable for any damages
45  arising from the use of this software.
46 
47  Permission is granted to anyone to use this software for any purpose,
48  including commercial applications, and to alter it and redistribute it
49  freely, subject to the following restrictions:
50 
51  1. The origin of this source code must not be misrepresented; you must not
52  claim that you wrote the original source code. If you use this source code
53  in a product, an acknowledgment in the product documentation would be
54  appreciated but is not required.
55 
56  2. Altered source versions must be plainly marked as such, and must not be
57  misrepresented as being the original source code.
58 
59  3. This notice may not be removed or altered from any source distribution.
60 
61  RenŽ Nyffenegger rene.nyffenegger@adp-gmbh.ch
62 
63 */
64 
65 #ifndef ENCODERBASE64_H
66 #define ENCODERBASE64_H 1
67 
68 #include <string>
69 
70 #include <lifev/core/LifeV.hpp>
71 
72 namespace LifeV
73 {
74 
75 std::string base64_encode ( unsigned char const*, UInt len );
76 std::string base64_decode ( std::string const& s );
77 
78 }
79 #endif // ENCODERBASE64_H
void updateInverseJacobian(const UInt &iQuadPt)
uint32_type UInt
generic unsigned integer (used mainly for addressing)
Definition: LifeV.hpp:191