SFrame 3.6
|
Helper class for finding the full path name of PAR packages. More...
#include <core/include/SParLocator.h>
Static Public Member Functions | |
static TString | Locate (const TString &parName) |
Locate a package file. |
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...
Definition at line 43 of file SParLocator.h.
TString SParLocator::Locate | ( | const TString & | parName | ) | [static] |
Locate a package file.
parName | Name of the file to look for |
Definition at line 38 of file SParLocator.cxx.
References DEBUG, SLogger::endmsg(), and ERROR.
Referenced by SCycleController::ExecuteNextCycle().