Logo ROOT  
Reference Guide
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:43
#define ClassDef(name, id)
Definition: Rtypes.h:322
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:131