00001
00002
00003 #ifndef SLIC_FILEUTIL_HH
00004 #define SLIC_FILEUTIL_HH 1
00005
00006
00007 #include <string>
00008
00009 namespace slic
00010 {
00011
00016 class FileUtil
00017 {
00018 public:
00019 static int removeFile(const char* filename);
00020 static int removeFile(const std::string& filename);
00021
00022 static bool fileExists(const char* filename);
00023 static bool fileExists(const std::string& filename);
00024
00025 static std::string basename(std::string fn);
00026 static std::string extension(std::string fn);
00027 static std::string removeExtension(std::string ext);
00028 };
00029 }
00030
00031 #endif