Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
FilePath Class Reference

Extracts and stores directory path, base filename and extension. More...

#include <FilePath.h>

Collaboration diagram for FilePath:
Collaboration graph
[legend]

Public Types

typedef Path< std::string,'/', true, false, true > path_t
 

Public Member Functions

template<typename ... TT>
 FilePath (const TT &... args)
 Constructor.
 
 FilePath (const FilePath &s)
 Copy constructor. More...
 
void clear ()
 
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 ()
 
bool operator== (const FilePath &p) const
 
virtual std::ostream & toStream (std::ostream &ostr) const
 Directory path separator.
 
virtual std::string str () const
 
FilePathoperator<< (const FilePath &path)
 

Static Public Member Functions

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)
 

Public Attributes

path_t dir
 
std::string basename
 
std::string extension
 

Detailed Description

Extracts and stores directory path, base filename and extension.

Upon construction and after setting, splits a full path string to

Constructor & Destructor Documentation

◆ FilePath()

FilePath ( const FilePath s)

Copy constructor.

In Linux and Unix...


The documentation for this class was generated from the following files: