Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
xstream::base64 Namespace Reference

base64 encoding/decoding objects More...

Classes

class  ostreambuf
 Base64 encode stream class. More...
 
class  istreambuf
 Base64 decode stream class. More...
 
class  general_error
 errors in base64 usage More...
 
class  encode_error
 general base64 encoding errors More...
 
class  decode_error
 general base64 decoding errors More...
 

Functions

static void encode (const char *in, char *out)
 
static char index (char c)
 
static void decode (const char *in, char *out)
 

Variables

static const char dictionary [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
 
static const int eof = std::streambuf::traits_type::eof()
 

Detailed Description

base64 encoding/decoding objects

Function Documentation

static void xstream::base64::decode ( const char *  in,
char *  out 
)
inlinestatic

Definition at line 159 of file base64.cpp.

References c, index(), and LOG.

Referenced by xstream::base64::istreambuf::underflow().

static void xstream::base64::encode ( const char *  in,
char *  out 
)
inlinestatic

Definition at line 33 of file base64.cpp.

References dictionary, and LOG.

Referenced by xstream::base64::ostreambuf::overflow(), and xstream::base64::ostreambuf::~ostreambuf().

static char xstream::base64::index ( char  c)
inlinestatic

Definition at line 115 of file base64.cpp.

References LOG, and string.

Referenced by DTrackWireBased_factory::AddMissingTrackHypothesis(), DTrackTimeBased_factory::AddMissingTrackHypothesis(), AdjustTiming(), ApplyCDCOffsets(), ApplyFDCOffsets(), JEventProcessor_dumpcandidates::brun(), DEventProcessor_bcal_calib::cdc_drift_distance(), DEventProcessor_dc_alignment::cdc_drift_distance(), JEventProcessor_FDCProjectionResiduals::CDCDriftDistance(), DTrackFitterStraightTrack::CDCDriftDistance(), DTrackFitterKalmanSIMD::ComputeCDCDrift(), DTrackCandidate_factory_CDC::Create_TrackCandidiate(), decode(), DParticleID::Distance_ToTrack(), trk_mainframe::DrawHits(), DCDCTrackHit_factory::evnt(), DEventProcessor_ccal_hits::evnt(), DEventProcessor_ccal_display::evnt(), JEventProcessor_scanf250::evnt(), JEventProcessor_cdc_emu::evnt(), DPSPair_factory::evnt(), ExtractTDCADCTiming(), ExtractTrackBasedTiming(), DTrackFitterKalmanSIMD::ExtrapolateCentralToOtherDetectors(), DTrackFitterKalmanSIMD::ExtrapolateForwardToOtherDetectors(), DEventProcessor_dc_alignment::fdc_drift_distance(), DHoughFind::Fill(), DHoughFind::Find(), DFDCPseudo_factory::FindCentroid(), DParticleID::GetDCdEdxHits(), MyProcessor::GetDReferenceTrajectory(), DTrackFitterStraightTrack::GetExtrapolations(), DHoughFind::GetMaxBinLocation(), DEventProcessor_ccal_hits::init(), DEventProcessor_ccal_display::init(), DReferenceTrajectory::InsertSteps(), main(), MakeCDCConstraintsFile(), DFDCPseudo_factory::makePseudo(), matches(), plot_cdc_offsets(), DParticleID::PredictSCSector(), DHoughFind::PrintHist(), DTrackFitterKalmanSIMD::PropagateCentral(), DTrackFitterKalmanSIMD::PropagateForwardCDC(), PSEcorr(), DTrackCandidate_factory_CDC::DCDCTrkHit::Reset(), DFDCPseudo_factory::ThreeStripCluster(), and TimeToDistance().

Variable Documentation

const char xstream::base64::dictionary[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
static

Definition at line 12 of file base64.cpp.

Referenced by encode().

const int xstream::base64::eof = std::streambuf::traits_type::eof()
static

Definition at line 14 of file base64.cpp.

Referenced by xstream::base64::istreambuf::underflow().