gdcmBase64.h

Go to the documentation of this file.
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 
00036 static int GetEncodeLength(const char *src, int  slen );
00037 
00049 static int Encode( char *dst, int dlen,
00050                    const char *src, int  slen );
00051 
00056 static int GetDecodeLength( const char *src, int  slen );
00057 
00068 static int Decode( char *dst, int dlen,
00069                    const char *src, int  slen );
00070 
00071 private:
00072   Base64(const Base64&);  // Not implemented.
00073   void operator=(const Base64&);  // Not implemented.
00074 };
00075 } // end namespace gdcm
00076 //-----------------------------------------------------------------------------
00077 #endif //GDCMBASE64_H

Generated on Mon Feb 4 2013 03:54:53 for GDCM by doxygen 1.7.1
SourceForge.net Logo