SFrame 3.6
SParLocator Class Reference

Helper class for finding the full path name of PAR packages. More...

#include <core/include/SParLocator.h>

Collaboration diagram for SParLocator:

List of all members.

Static Public Member Functions

static TString Locate (const TString &parName)
 Locate a package file.

Detailed Description

Helper class for finding the full path name of PAR packages.

Unfortunately ROOT does not provide any facilities for finding a given (PAR) file in a list of directories. (Like in $PATH.) So I created this little class for constructing the full path name for the PAR packages. The class reads the list of directories to be searched from the PAR_PATH environment variable, which is usually set in SFrame/setup.[c]sh.

This is another part of the SFrame code that probably doesn't work on Windows, as I had to use standard POSIX code for locating the package files. Somehow I couldn't find any ROOT functions for listing all the files in a given directory. Very strange...

Version:
Revision:
120

Definition at line 43 of file SParLocator.h.


Member Function Documentation

TString SParLocator::Locate ( const TString &  parName) [static]

Locate a package file.

Parameters:
parNameName of the file to look for
Returns:
The full path name of the file if found, "" otherwise

Definition at line 38 of file SParLocator.cxx.

References DEBUG, SLogger::endmsg(), and ERROR.

Referenced by SCycleController::ExecuteNextCycle().


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