GDCM
2.0.18
|
00001 /*========================================================================= 00002 00003 Program: GDCM (Grassroots DICOM). A DICOM library 00004 00005 Copyright (c) 2006-2011 Mathieu Malaterre 00006 All rights reserved. 00007 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 00012 00013 =========================================================================*/ 00014 #ifndef GDCMBASE64_H 00015 #define GDCMBASE64_H 00016 00017 #include "gdcmTypes.h" 00018 00019 namespace gdcm 00020 { 00021 //----------------------------------------------------------------------------- 00022 class Base64Internals; 00027 class GDCM_EXPORT Base64 00028 { 00029 public : 00030 Base64(); 00031 ~Base64(); 00032 00037 static int GetEncodeLength(const char *src, int slen ); 00038 00050 static int Encode( char *dst, int dlen, 00051 const char *src, int slen ); 00052 00057 static int GetDecodeLength( const char *src, int slen ); 00058 00069 static int Decode( char *dst, int dlen, 00070 const char *src, int slen ); 00071 00072 private: 00073 Base64Internals *Internals; 00074 private: 00075 Base64(const Base64&); // Not implemented. 00076 void operator=(const Base64&); // Not implemented. 00077 }; 00078 } // end namespace gdcm 00079 //----------------------------------------------------------------------------- 00080 #endif //GDCMBASE64_H