ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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 ( 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 ( )
inline

Definition at line 63 of file XrdROOT.h.

Member Function Documentation

const char* XrdROOT::BinDir ( ) const
inline
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().

const char* XrdROOT::DataDir ( ) const
inline

Definition at line 67 of file XrdROOT.h.

Referenced by XrdProofdProofServMgr::SetProofServEnv().

const char* XrdROOT::Dir ( ) const
inline
const char* XrdROOT::Export ( ) const
inline
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().

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.

const char* XrdROOT::GitCommit ( ) const
inline

Definition at line 71 of file XrdROOT.h.

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

const char* XrdROOT::IncDir ( ) const
inline

Definition at line 68 of file XrdROOT.h.

bool XrdROOT::IsInvalid ( ) const
inline

Definition at line 74 of file XrdROOT.h.

Referenced by XrdROOTMgr::Validate().

bool XrdROOT::IsParked ( ) const
inline

Definition at line 72 of file XrdROOT.h.

bool XrdROOT::IsValid ( ) const
inline

Definition at line 73 of file XrdROOT.h.

const char* XrdROOT::LibDir ( ) const
inline

Definition at line 69 of file XrdROOT.h.

Referenced by XrdProofdProofServMgr::SetProofServEnv().

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

Definition at line 75 of file XrdROOT.h.

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

Definition at line 77 of file XrdROOT.h.

void XrdROOT::Park ( )
inline

Definition at line 78 of file XrdROOT.h.

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(), and ParseROOTVersionInfo().

int XrdROOT::ParseROOTVersionInfo ( )
private

Extract ROOT version information associated with 'dir'.

Definition at line 171 of file XrdROOT.cxx.

Referenced by XrdROOT().

const char* XrdROOT::PrgmSrv ( ) const
inline

Definition at line 79 of file XrdROOT.h.

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

const char* XrdROOT::Release ( ) const
inline

Definition at line 80 of file XrdROOT.h.

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(), and XrdROOTMgr::Validate().

kXR_int16 XrdROOT::SrvProtVers ( ) const
inline
const char* XrdROOT::Tag ( ) const
inline
int XrdROOT::VersionCode ( ) const
inline
int XrdROOT::VrsMajor ( ) const
inline

Definition at line 85 of file XrdROOT.h.

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

int XrdROOT::VrsMinor ( ) const
inline

Definition at line 86 of file XrdROOT.h.

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

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

friend class XrdROOTMgr
friend

Definition at line 36 of file XrdROOT.h.

Member Data Documentation

XrdOucString XrdROOT::fBinDir
private

Definition at line 40 of file XrdROOT.h.

Referenced by BinDir(), and XrdROOT().

XrdOucString XrdROOT::fDataDir
private

Definition at line 41 of file XrdROOT.h.

Referenced by DataDir(), and XrdROOT().

XrdOucString XrdROOT::fDir
private

Definition at line 39 of file XrdROOT.h.

Referenced by Dir(), Match(), and XrdROOT().

XrdOucString XrdROOT::fExport
private

Definition at line 45 of file XrdROOT.h.

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

XrdOucString XrdROOT::fGitCommit
private

Definition at line 50 of file XrdROOT.h.

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

XrdOucString XrdROOT::fIncDir
private

Definition at line 42 of file XrdROOT.h.

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

XrdOucString XrdROOT::fLibDir
private

Definition at line 43 of file XrdROOT.h.

Referenced by LibDir(), and XrdROOT().

XrdOucString XrdROOT::fPrgmSrv
private

Definition at line 46 of file XrdROOT.h.

Referenced by PrgmSrv(), and XrdROOT().

XrdOucString XrdROOT::fRelease
private

Definition at line 49 of file XrdROOT.h.

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

kXR_int16 XrdROOT::fSrvProtVers
private

Definition at line 47 of file XrdROOT.h.

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

int XrdROOT::fStatus
private

Definition at line 38 of file XrdROOT.h.

Referenced by IsInvalid(), IsParked(), IsValid(), Park(), SetValid(), and XrdROOT().

XrdOucString XrdROOT::fTag
private

Definition at line 44 of file XrdROOT.h.

Referenced by Match(), MatchTag(), Tag(), and XrdROOT().

int XrdROOT::fVersionCode
private

Definition at line 51 of file XrdROOT.h.

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

int XrdROOT::fVrsMajor
private

Definition at line 53 of file XrdROOT.h.

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

int XrdROOT::fVrsMinor
private

Definition at line 54 of file XrdROOT.h.

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

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: