FileUtil.hh

Go to the documentation of this file.
00001 // $Header: /cvs/lcd/slic/include/FileUtil.hh,v 1.10 2006/09/05 23:21:42 jeremy Exp $
00002 
00003 #ifndef SLIC_FILEUTIL_HH
00004 #define SLIC_FILEUTIL_HH 1
00005 
00006 // std
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

Generated on Thu Nov 15 15:24:15 2007 for Simulator for the Linear Collider by  doxygen 1.5.4