base64.h
Go to the documentation of this file.
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 { namespace encoding {
25 
26  class ZORBA_DLL_PUBLIC Base64
27  {
28  public:
29 
30  static String
31  encode(const String& aString);
32 
33  static String
34  encode(std::istream& aStream);
35 
36  static String
37  decode(const String& aString);
38 
39  static String
40  decode(std::istream& aStream);
41 
42  };
43 
44 } /* end namespace encoding */
45 
46 } /* end namespace zorba */
47 
48 #endif
49 /* vim:set et sw=2 ts=2: */
blog comments powered by Disqus