SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
FileUtil.hh
Go to the documentation of this file.
1 #ifndef SLIC_FILEUTIL_HH_
2 #define SLIC_FILEUTIL_HH_ 1
3 
4 // STL
5 #include <string>
6 
7 namespace slic {
8 
13 class FileUtil {
14 
15  public:
16 
22  static int removeFile(const char* filename);
23 
29  static int removeFile(const std::string& filename);
30 
36  static bool fileExists(const char* filename);
37 
43  static bool fileExists(const std::string& filename);
44 
50  static std::string basename(std::string filename);
51 
57  static std::string extension(std::string filename);
58 
64  static std::string removeExtension(std::string filename);
65 };
66 }
67 
68 #endif
Utilities for file manipulation.
Definition: FileUtil.hh:13
static int removeFile(const char *filename)
Definition: FileUtil.cc:13
static std::string removeExtension(std::string filename)
Definition: FileUtil.cc:76
static bool fileExists(const char *filename)
Definition: FileUtil.cc:22
static std::string extension(std::string filename)
Definition: FileUtil.cc:63
static std::string basename(std::string filename)
Definition: FileUtil.cc:40