Extracts and stores directory path, base filename and extension.
More...
#include <FilePath.h>
|
|
typedef Path< std::string,'/', true, false, true > | path_t |
| |
|
|
template<typename ... TT> |
| | FilePath (const TT &... args) |
| | Constructor.
|
| |
| | FilePath (const FilePath &s) |
| | Copy constructor.
|
| |
|
void | clear () |
| |
|
bool | empty () const |
| |
|
template<typename ... TT> |
| void | set (const TT &... args) |
| |
|
template<typename T , typename ... TT> |
| void | append (const T &arg, const TT &... args) |
| |
|
void | append (const FilePath &path) |
| | Appends directory and sets filename (basename and extension).
|
| |
|
void | append (const std::string &s) |
| | Extracts at least filename. If the string contains leading dir elements, \i append them to this->dir .
|
| |
|
void | append (const char *s) |
| |
|
void | append () |
| |
|
bool | operator== (const FilePath &p) const |
| |
|
virtual std::ostream & | toStream (std::ostream &ostr) const |
| | Directory path separator.
|
| |
|
virtual std::string | str () const |
| |
|
virtual | operator std::string () const |
| |
|
FilePath & | operator<< (const FilePath &path) |
| |
|
void | debug (std::ostream &ostr=std::cout) const |
| |
|
|
static int | mkdir (const std::string &dirpath, int flags=S_IRWXU|S_IRWXG|S_IROTH|S_IXOTH) |
| |
|
static int | mkdir (const FilePath::path_t &dirpath, int flags=S_IRWXU|S_IRWXG|S_IROTH|S_IXOTH) |
| |
|
|
path_t | dir |
| |
|
std::string | tail |
| |
|
std::string | extension |
| |
|
|
void | handleBasename (const std::string &basename) |
| |
Extracts and stores directory path, base filename and extension.
Upon construction and after setting, splits a full path string to
dir - directory path (Path<std::string>)
basename - filename without directory path and extension
ext - extension, without dot (png, txt
◆ FilePath()
Copy constructor.
In Linux and Unix...
The documentation for this class was generated from the following files:
- src/drain/util/FilePath.h
- src/drain/util/FilePath.cpp