00001 #ifndef gridripper_util_FileUtil_h 00002 #define gridripper_util_FileUtil_h 00003 00004 #include <string> 00005 00006 namespace gridripper { namespace util { 00007 00008 using namespace std; 00009 00017 class FileUtil 00018 { 00019 public: 00028 static string chopExtension(const string& fname); 00029 00038 static string extension(const string& fname); 00039 00040 private: 00041 static int extensionIndex(const string& fname); 00042 }; 00043 00044 } } // namespace gridripper::util 00045 00046 #endif /* gridripper_util_FileUtil_h */