Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TBase64.h
Go to the documentation of this file.
1// @(#)root/base:$Id$
2// Author: Gerardo Ganis + Fons Rademakers 15/5/2009
3
4/*************************************************************************
5 * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TBase64
13#define ROOT_TBase64
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TBase64 //
18// //
19// This code implements the Base64 encoding and decoding. //
20// Base64 encoded messages are typically used in authentication //
21// protocols and to pack binary data in HTTP messages. //
22// //
23//////////////////////////////////////////////////////////////////////////
24
25#include "Rtypes.h"
26#include "TString.h"
27
28
29class TBase64 {
30
31public:
32 virtual ~TBase64() { }
33
34 static TString Encode(const char *data);
35 static TString Encode(const char *data, Int_t len);
36 static TString Decode(const char *data);
37
38 ClassDef(TBase64,0) // Base64 encoding/decoding
39};
40
41#endif
int Int_t
Definition RtypesCore.h:45
#define ClassDef(name, id)
Definition Rtypes.h:337
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
This code implements the Base64 encoding and decoding.
Definition TBase64.h:29
static TString Decode(const char *data)
Decode a base64 string date into a generic TString.
Definition TBase64.cxx:131
virtual ~TBase64()
Definition TBase64.h:32
static TString Encode(const char *data)
Transform data into a null terminated base64 string.
Definition TBase64.cxx:107
Basic string class.
Definition TString.h:139