gdcmBase64.h

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

Generated on Sat Dec 4 2010 08:58:38 for GDCM by doxygen 1.7.2
SourceForge.net Logo