15#ifndef _A_UTILS_UTIL_FILESYSTEM_PATH_INCLUDED_
16#define _A_UTILS_UTIL_FILESYSTEM_PATH_INCLUDED_
77 Path(
const std::string& path);
94 operator std::string()
const;
280 class Implementation;
281 std::unique_ptr<Implementation> _impl;
282 friend
bool operator==(const
Path& lhs, const
Path& rhs);
311std::ostream& operator<<(std::ostream& os, const
Path& p);
PathException(const std::string &message)
Path()
Default CTOR for an empty path.
Path(const std::string &path)
Path & operator=(const Path &path)
Path getLastElement() const
std::string toString(PathSeparator separator=PS_Native) const
bool isBaseOf(const Path &path) const
Path & appendToBasename(const std::string &str)
std::string getExtension() const
Path & removeLastElement()
bool setPath(const std::string &path)
Path & append(const Path &path)
Path & replaceExtension(const std::string &extension)
PathSeparator
Path separator types.
Definition path.h:49
@ PS_ForwardSlash
Unix slash.
Definition path.h:50
@ PS_Native
Native slash, depending on the current platform.
Definition path.h:52
@ PS_BackwardSlash
Windows slash.
Definition path.h:51
#define DEV_ESSENTIAL_DEPRECATED(msg)
Definition deprecated.h:44
Serves as component for path and filesystem functionality.
Definition filesystem.h:20
Path getWorkingDirectory()
Serves as the root component, with common functionality documented in core functionality.
Definition base.h:24