ROOT  6.06/08
Reference Guide
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
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 * Dir () const
 
const char * BinDir () const
 
const char * DataDir () const
 
const char * IncDir () const
 
const char * LibDir () const
 
const char * Export () const
 
const char * GitCommit () const
 
bool IsParked () const
 
bool IsValid () const
 
bool IsInvalid () 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

int fStatus
 
XrdOucString fDir
 
XrdOucString fBinDir
 
XrdOucString fDataDir
 
XrdOucString fIncDir
 
XrdOucString fLibDir
 
XrdOucString fTag
 
XrdOucString fExport
 
XrdOucString fPrgmSrv
 
kXR_int16 fSrvProtVers
 
XrdOucString fRelease
 
XrdOucString fGitCommit
 
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

§ 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.

Referenced by XrdROOT().

§ DataDir()

const char* XrdROOT::DataDir ( ) const
inline

Definition at line 67 of file XrdROOT.h.

Referenced by XrdProofdProofServMgr::SetProofServEnv().

§ Dir()

const char* XrdROOT::Dir ( ) const
inline

§ Export()

const char* XrdROOT::Export ( ) const
inline

§ 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.

Referenced by XrdProofdProofServMgr::CreateProofServRootRc(), and VrsPatch().

§ 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.

Referenced by XrdROOTMgr::Config(), and XrdROOTMgr::DoDirectiveRootSys().

§ 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.

Referenced by XrdROOTMgr::Validate().

§ 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.

Referenced by XrdProofdProofServMgr::SetProofServEnv().

§ 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.

Referenced by GetVersionCode(), ParseROOTVersionInfo(), and VrsPatch().

§ ParseROOTVersionInfo()

int XrdROOT::ParseROOTVersionInfo ( )
private

Extract ROOT version information associated with 'dir'.

Definition at line 171 of file XrdROOT.cxx.

Referenced by XrdROOT().

§ PrgmSrv()

const char* XrdROOT::PrgmSrv ( ) const
inline

Definition at line 79 of file XrdROOT.h.

Referenced by XrdProofdProofServMgr::Create(), and XrdROOTMgr::Validate().

§ 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.

Referenced by XrdROOTMgr::DoDirectiveRootSys(), Release(), and XrdROOTMgr::Validate().

§ SrvProtVers()

kXR_int16 XrdROOT::SrvProtVers ( ) const
inline

§ Tag()

const char* XrdROOT::Tag ( ) const
inline

§ VersionCode()

int XrdROOT::VersionCode ( ) const
inline

§ VrsMajor()

int XrdROOT::VrsMajor ( ) const
inline

Definition at line 85 of file XrdROOT.h.

Referenced by XrdROOTMgr::Config(), and XrdROOTMgr::DoDirectiveRootSys().

§ VrsMinor()

int XrdROOT::VrsMinor ( ) const
inline

Definition at line 86 of file XrdROOT.h.

Referenced by XrdROOTMgr::Config(), and XrdROOTMgr::DoDirectiveRootSys().

§ VrsPatch()

int XrdROOT::VrsPatch ( ) const
inline

Definition at line 87 of file XrdROOT.h.

Referenced by XrdROOTMgr::Config(), and XrdROOTMgr::DoDirectiveRootSys().

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.

Referenced by XrdROOT().

§ fDataDir

XrdOucString XrdROOT::fDataDir
private

Definition at line 41 of file XrdROOT.h.

Referenced by XrdROOT().

§ fDir

XrdOucString XrdROOT::fDir
private

Definition at line 39 of file XrdROOT.h.

Referenced by XrdROOT().

§ fExport

XrdOucString XrdROOT::fExport
private

Definition at line 45 of file XrdROOT.h.

Referenced by SetValid(), and XrdROOT().

§ fGitCommit

XrdOucString XrdROOT::fGitCommit
private

Definition at line 50 of file XrdROOT.h.

Referenced by ParseROOTVersionInfo(), and XrdROOT().

§ fIncDir

XrdOucString XrdROOT::fIncDir
private

Definition at line 42 of file XrdROOT.h.

Referenced by ParseROOTVersionInfo(), and XrdROOT().

§ fLibDir

XrdOucString XrdROOT::fLibDir
private

Definition at line 43 of file XrdROOT.h.

Referenced by XrdROOT().

§ fPrgmSrv

XrdOucString XrdROOT::fPrgmSrv
private

Definition at line 46 of file XrdROOT.h.

Referenced by XrdROOT().

§ fRelease

XrdOucString XrdROOT::fRelease
private

Definition at line 49 of file XrdROOT.h.

Referenced by ParseROOTVersionInfo(), and XrdROOT().

§ fSrvProtVers

kXR_int16 XrdROOT::fSrvProtVers
private

Definition at line 47 of file XrdROOT.h.

Referenced by SetValid(), SrvProtVers(), and XrdROOT().

§ fStatus

int XrdROOT::fStatus
private

Definition at line 38 of file XrdROOT.h.

Referenced by SetValid(), and XrdROOT().

§ fTag

XrdOucString XrdROOT::fTag
private

Definition at line 44 of file XrdROOT.h.

Referenced by XrdROOT().

§ fVersionCode

int XrdROOT::fVersionCode
private

Definition at line 51 of file XrdROOT.h.

Referenced by ParseROOTVersionInfo(), VersionCode(), and XrdROOT().

§ fVrsMajor

int XrdROOT::fVrsMajor
private

Definition at line 53 of file XrdROOT.h.

Referenced by ParseROOTVersionInfo(), VrsMajor(), and XrdROOT().

§ fVrsMinor

int XrdROOT::fVrsMinor
private

Definition at line 54 of file XrdROOT.h.

Referenced by ParseROOTVersionInfo(), VrsMinor(), and XrdROOT().

§ fVrsPatch

int XrdROOT::fVrsPatch
private

Definition at line 55 of file XrdROOT.h.

Referenced by ParseROOTVersionInfo(), VrsPatch(), and XrdROOT().


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