|
SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
|
Utilities for file manipulation. More...
#include <FileUtil.hh>
Static Public Member Functions | |
| static std::string | basename (std::string filename) |
| static std::string | extension (std::string filename) |
| static bool | fileExists (const char *filename) |
| static bool | fileExists (const std::string &filename) |
| static std::string | removeExtension (std::string filename) |
| static int | removeFile (const char *filename) |
| static int | removeFile (const std::string &filename) |
Utilities for file manipulation.
Definition at line 13 of file FileUtil.hh.
|
static |
Get the base name of a file path, which has the directory stripped from it.
| [in] | filename | Full path to a file. |
Definition at line 40 of file FileUtil.cc.
Referenced by LcioFileNamer::makeFileBasedName().
|
static |
Get the extension of a file.
| [in] | filename | Full path to a file. |
Definition at line 63 of file FileUtil.cc.
Referenced by EventSourceManager::setFilename().
|
static |
Check if a file exists.
| [in] | fileName | Full path to a file. |
Definition at line 22 of file FileUtil.cc.
Referenced by FileUtil::fileExists(), LcioManager::openLcioFile(), and EventSourceWithInputFile::setFilename().
|
static |
Check if a file exists.
| [in] | fileName | Full path string to a file. |
Definition at line 36 of file FileUtil.cc.
References FileUtil::fileExists().
|
static |
Strip the extension from a file name.
| [in] | filename | Full path to a file. |
Definition at line 76 of file FileUtil.cc.
Referenced by LcioFileNamer::makeFileBasedName().
|
static |
Remove a file.
| [in] | filename | Full path to a file. |
Definition at line 13 of file FileUtil.cc.
Referenced by LcioManager::openLcioFile(), and FileUtil::removeFile().
|
static |
Remove a file.
| [in] | filename | Full path to a file. |
Definition at line 18 of file FileUtil.cc.
References FileUtil::removeFile().