1 /*
2  * Copyright 2006-2009 The FLWOR Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef ZORBA_BASE64_API_H
17 #define ZORBA_BASE64_API_H
18 
19 #include <string>
20 
21 #include <zorba/config.h>
22 #include <zorba/zorba_string.h>
23 
24 namespace zorba {
25 namespace encoding {
26 
27   struct ZORBA_DLL_PUBLIC Base64
28   {
29       static String
30       encode(const String& aString);
31 
32       static String
33       encode(std::istream& aStream);
34 
35       static String
36       decode(const String& aString);
37 
38       static String
39       decode(std::istream& aStream);
40   };
41 
42 } // namespace encoding
43 } // namespace zorba
44 
45 #endif /* ZORBA_BASE64_API_H */
46 /* vim:set et sw=2 ts=2: */
47