Logo ROOT  
Reference Guide
XrdROOT Class Reference

Definition at line 35 of file XrdROOT.h.

Public Member Functions

 XrdROOT (const char *dir, const char *tag, const char *bindir=0, const char *incdir=0, const char *libdir=0, const char *datadir=0)
 Constructor: validates 'dir', gets the version and defines the tag. More...
 
 ~XrdROOT ()
 
const char * BinDir () const
 
const char * DataDir () const
 
const char * Dir () const
 
const char * Export () const
 
const char * GitCommit () const
 
const char * IncDir () const
 
bool IsInvalid () const
 
bool IsParked () const
 
bool IsValid () const
 
const char * LibDir () const
 
bool Match (const char *dir, const char *tag)
 
bool MatchTag (const char *tag)
 
void Park ()
 
const char * PrgmSrv () const
 
const char * Release () const
 
void SetValid (kXR_int16 vers=-1)
 Set valid, save protocol and finalize the export string. More...
 
kXR_int16 SrvProtVers () const
 
const char * Tag () const
 
int VersionCode () const
 
int VrsMajor () const
 
int VrsMinor () const
 
int VrsPatch () const
 

Static Public Member Functions

static int GetVersionCode (const char *release)
 Translate 'release' into a version code integer following the rules in $ROOTSYS/include/RVersion.h. More...
 
static int GetVersionCode (int maj, int min, int patch)
 Translate 'release' into a version code integer following the rules in $ROOTSYS/include/RVersion.h. More...
 
static int ParseReleaseString (const char *release, int &maj, int &min, int &patch)
 Extract from 'release' its major, minor and patch numerical components; 'release' must be in the format 'M.N/PP<something else>', e.g. More...
 

Private Member Functions

int CheckDir (const char *dir)
 Check if 'dir' exists Return 0 on succes, -1 on failure. More...
 
int ParseROOTVersionInfo ()
 Extract ROOT version information associated with 'dir'. More...
 

Private Attributes

XrdOucString fBinDir
 
XrdOucString fDataDir
 
XrdOucString fDir
 
XrdOucString fExport
 
XrdOucString fGitCommit
 
XrdOucString fIncDir
 
XrdOucString fLibDir
 
XrdOucString fPrgmSrv
 
XrdOucString fRelease
 
kXR_int16 fSrvProtVers
 
int fStatus
 
XrdOucString fTag
 
int fVersionCode
 
int fVrsMajor
 
int fVrsMinor
 
int fVrsPatch
 

Friends

class XrdROOTMgr
 

#include <XrdROOT.h>

Constructor & Destructor Documentation

◆ XrdROOT()

XrdROOT::XrdROOT ( const char *  dir,
const char *  tag,
const char *  bindir = 0,
const char *  incdir = 0,
const char *  libdir = 0,
const char *  datadir = 0 
)

Constructor: validates 'dir', gets the version and defines the tag.

Definition at line 40 of file XrdROOT.cxx.

◆ ~XrdROOT()

XrdROOT::~XrdROOT ( )
inline

Definition at line 63 of file XrdROOT.h.

Member Function Documentation

◆ BinDir()

const char * XrdROOT::BinDir ( ) const
inline

Definition at line 66 of file XrdROOT.h.

◆ CheckDir()

int XrdROOT::CheckDir ( const char *  dir)
private

Check if 'dir' exists Return 0 on succes, -1 on failure.

Definition at line 123 of file XrdROOT.cxx.

◆ DataDir()

const char * XrdROOT::DataDir ( ) const
inline

Definition at line 67 of file XrdROOT.h.

◆ Dir()

const char * XrdROOT::Dir ( ) const
inline

Definition at line 65 of file XrdROOT.h.

◆ Export()

const char * XrdROOT::Export ( ) const
inline

Definition at line 70 of file XrdROOT.h.

◆ GetVersionCode() [1/2]

int XrdROOT::GetVersionCode ( const char *  release)
static

Translate 'release' into a version code integer following the rules in $ROOTSYS/include/RVersion.h.

'release' must be in the format 'M.N/PP<something else>', e.g. 5.20/04-cms

Definition at line 275 of file XrdROOT.cxx.

◆ GetVersionCode() [2/2]

int XrdROOT::GetVersionCode ( int  maj,
int  min,
int  patch 
)
static

Translate 'release' into a version code integer following the rules in $ROOTSYS/include/RVersion.h.

Definition at line 286 of file XrdROOT.cxx.

◆ GitCommit()

const char * XrdROOT::GitCommit ( ) const
inline

Definition at line 71 of file XrdROOT.h.

◆ IncDir()

const char * XrdROOT::IncDir ( ) const
inline

Definition at line 68 of file XrdROOT.h.

◆ IsInvalid()

bool XrdROOT::IsInvalid ( ) const
inline

Definition at line 74 of file XrdROOT.h.

◆ IsParked()

bool XrdROOT::IsParked ( ) const
inline

Definition at line 72 of file XrdROOT.h.

◆ IsValid()

bool XrdROOT::IsValid ( ) const
inline

Definition at line 73 of file XrdROOT.h.

◆ LibDir()

const char * XrdROOT::LibDir ( ) const
inline

Definition at line 69 of file XrdROOT.h.

◆ Match()

bool XrdROOT::Match ( const char *  dir,
const char *  tag 
)
inline

Definition at line 75 of file XrdROOT.h.

◆ MatchTag()

bool XrdROOT::MatchTag ( const char *  tag)
inline

Definition at line 77 of file XrdROOT.h.

◆ Park()

void XrdROOT::Park ( )
inline

Definition at line 78 of file XrdROOT.h.

◆ ParseReleaseString()

int XrdROOT::ParseReleaseString ( const char *  release,
int &  maj,
int &  min,
int &  patch 
)
static

Extract from 'release' its major, minor and patch numerical components; 'release' must be in the format 'M.N/PP<something else>', e.g.

5.20/04-cms; the part <something else> is ignored.

Definition at line 296 of file XrdROOT.cxx.

◆ ParseROOTVersionInfo()

int XrdROOT::ParseROOTVersionInfo ( )
private

Extract ROOT version information associated with 'dir'.

Definition at line 171 of file XrdROOT.cxx.

◆ PrgmSrv()

const char * XrdROOT::PrgmSrv ( ) const
inline

Definition at line 79 of file XrdROOT.h.

◆ Release()

const char * XrdROOT::Release ( ) const
inline

Definition at line 80 of file XrdROOT.h.

◆ SetValid()

void XrdROOT::SetValid ( kXR_int16  vers = -1)

Set valid, save protocol and finalize the export string.

Definition at line 149 of file XrdROOT.cxx.

◆ SrvProtVers()

kXR_int16 XrdROOT::SrvProtVers ( ) const
inline

Definition at line 82 of file XrdROOT.h.

◆ Tag()

const char * XrdROOT::Tag ( ) const
inline

Definition at line 83 of file XrdROOT.h.

◆ VersionCode()

int XrdROOT::VersionCode ( ) const
inline

Definition at line 84 of file XrdROOT.h.

◆ VrsMajor()

int XrdROOT::VrsMajor ( ) const
inline

Definition at line 85 of file XrdROOT.h.

◆ VrsMinor()

int XrdROOT::VrsMinor ( ) const
inline

Definition at line 86 of file XrdROOT.h.

◆ VrsPatch()

int XrdROOT::VrsPatch ( ) const
inline

Definition at line 87 of file XrdROOT.h.

Friends And Related Function Documentation

◆ XrdROOTMgr

friend class XrdROOTMgr
friend

Definition at line 36 of file XrdROOT.h.

Member Data Documentation

◆ fBinDir

XrdOucString XrdROOT::fBinDir
private

Definition at line 40 of file XrdROOT.h.

◆ fDataDir

XrdOucString XrdROOT::fDataDir
private

Definition at line 41 of file XrdROOT.h.

◆ fDir

XrdOucString XrdROOT::fDir
private

Definition at line 39 of file XrdROOT.h.

◆ fExport

XrdOucString XrdROOT::fExport
private

Definition at line 45 of file XrdROOT.h.

◆ fGitCommit

XrdOucString XrdROOT::fGitCommit
private

Definition at line 50 of file XrdROOT.h.

◆ fIncDir

XrdOucString XrdROOT::fIncDir
private

Definition at line 42 of file XrdROOT.h.

◆ fLibDir

XrdOucString XrdROOT::fLibDir
private

Definition at line 43 of file XrdROOT.h.

◆ fPrgmSrv

XrdOucString XrdROOT::fPrgmSrv
private

Definition at line 46 of file XrdROOT.h.

◆ fRelease

XrdOucString XrdROOT::fRelease
private

Definition at line 49 of file XrdROOT.h.

◆ fSrvProtVers

kXR_int16 XrdROOT::fSrvProtVers
private

Definition at line 47 of file XrdROOT.h.

◆ fStatus

int XrdROOT::fStatus
private

Definition at line 38 of file XrdROOT.h.

◆ fTag

XrdOucString XrdROOT::fTag
private

Definition at line 44 of file XrdROOT.h.

◆ fVersionCode

int XrdROOT::fVersionCode
private

Definition at line 51 of file XrdROOT.h.

◆ fVrsMajor

int XrdROOT::fVrsMajor
private

Definition at line 53 of file XrdROOT.h.

◆ fVrsMinor

int XrdROOT::fVrsMinor
private

Definition at line 54 of file XrdROOT.h.

◆ fVrsPatch

int XrdROOT::fVrsPatch
private

Definition at line 55 of file XrdROOT.h.


The documentation for this class was generated from the following files: