41 #ifndef __OPENFLUID_TOOLS_FILESYSTEMPATH_HPP__
42 #define __OPENFLUID_TOOLS_FILESYSTEMPATH_HPP__
51 #include <openfluid/global.hpp>
65 std::filesystem::path m_Path;
76 #if defined(OPENFLUID_OS_UNIX)
78 #elif defined(OPENFLUID_OS_WINDOWS)
89 #if defined(OPENFLUID_OS_UNIX)
91 #elif defined(OPENFLUID_OS_WINDOWS)
126 const std::filesystem::path& stdPath() const;
154 static std::
string removeTrailingSeparators(const std::
string&
Path,
char Sep = '/') noexcept;
161 std::
string toNative() const;
167 std::
string toGeneric() const;
173 std::
string toGenericClean() const;
179 std::vector<std::
string>
split() const;
186 std::
string filename() const;
193 std::
string dirname() const;
202 std::
string basename() const;
210 std::
string minimalBasename() const;
217 std::
string extension() const;
224 std::
string completeExtension() const;
239 std::
string relativeTo(const std::
string&
Path) const;
246 bool isDirectory(const std::
string&
Path = "") const;
253 bool isFile(const std::
string&
Path = "") const;
260 bool exists(const std::
string&
Path = "") const;
285 bool makeFile(const std::
string&
Path = "") const;
#define CPPCLASS_DEFAULT_FIVE(classname)
Definition: CppLangHelpers.hpp:57
#define OPENFLUID_API
Definition: dllexport.hpp:86
Definition: ApplicationException.hpp:47