GDCM 2.2.1

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

gdcmBase64.h
Go to the documentation of this file.
1 /*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13 =========================================================================*/
14 #ifndef GDCMBASE64_H
15 #define GDCMBASE64_H
16
17 #include "gdcmTypes.h"
18
19 namespace gdcm
20 {
21 //-----------------------------------------------------------------------------
22 class Base64Internals;
27 class GDCM_EXPORT Base64
28 {
29 public :
30 Base64();
31 ~Base64();
32
37 static int GetEncodeLength(const char *src, int slen );
38
50 static int Encode( char *dst, int dlen,
51 const char *src, int slen );
52
57 static int GetDecodeLength( const char *src, int slen );
58
69 static int Decode( char *dst, int dlen,
70 const char *src, int slen );
71
72 private:
73 Base64Internals *Internals;
74 private:
75 Base64(const Base64&); // Not implemented.
76 void operator=(const Base64&); // Not implemented.
77 };
78 } // end namespace gdcm
79 //-----------------------------------------------------------------------------
80 #endif //GDCMBASE64_H