Merge release-5-0 into master
[alexxy/gromacs.git] / src / gromacs / utility / path.h
similarity index 94%
rename from src/gromacs/fileio/path.h
rename to src/gromacs/utility/path.h
index 4114c72380a6e6455807b97213b15dae85279aa6..ef2b3e884879ca7c7ecbc8ea4f282037379b8911 100644 (file)
  *
  * \author Teemu Murtola <teemu.murtola@gmail.com>
  * \inlibraryapi
- * \ingroup module_fileio
+ * \ingroup module_utility
  */
-#ifndef GMX_FILEIO_PATH_H
-#define GMX_FILEIO_PATH_H
+#ifndef GMX_UTILITY_PATH_H
+#define GMX_UTILITY_PATH_H
 
 #include <string>
 #include <utility>
@@ -67,6 +67,8 @@ class Path
         static std::string normalize(const std::string &path);
         static std::string getParentPath(const std::string &path);
         static std::string getFilename(const std::string &path);
+        static bool hasExtension(const std::string &path);
+        static std::string stripExtension(const std::string &path);
 
         static bool exists(const char *path);
         static bool exists(const std::string &path);