#include <path.hpp>
Public Member Functions | |
| path (std::string s) | |
| constructor from a string | |
| path (const char *s) | |
| constructor from a char * | |
| path (const path &ref) | |
| copy constructor | |
| path & | operator= (const path &ref) |
| assignment operator | |
| bool | operator== (const path &ref) const |
| comparison operator | |
| std::string | basename () const |
| this function returns the basename that's it the right most member of a path | |
| void | reset_read () |
| reset for read_subdir. next call to read_subdir is the most global | |
| bool | read_subdir (std::string &r) |
| sequentially read the elements that compose the path | |
| bool | is_relative () const |
| whether the path is relative or absolute (= start with a /) | |
| bool | pop (std::string &arg) |
| remove and gives in argument the basename of the path | |
| bool | pop_front (std::string &arg) |
| remove and gives in argument the outer most member of the path | |
| path | operator+ (const path &arg) const |
| add a path to the current path. The added path *must* be a relative path | |
| path & | operator+= (const path &arg) |
| add a path to the current path. The added path *must* be a relative path | |
| bool | is_subdir_of (const path &p, bool case_sensit) const |
| test whether the current object is a subdir of the method's argument | |
| std::string | display () const |
| the returned string is the representation of the current object in Unix notation | |
| unsigned int | degre () const |
| returns the number of member in the path | |
several operations are provided as well as convertion functions
Definition at line 48 of file path.hpp.
|
|
constructor from a string This realizes the string to path convertion function
Referenced by path(). |
|
|
constructor from a char * this realizes the char * to path convertion function
Definition at line 61 of file path.hpp. References path(). |
|
|
returns the number of member in the path
|
|
||||||||||||
|
test whether the current object is a subdir of the method's argument
|
|
|
add a path to the current path. The added path *must* be a relative path
|
|
|
add a path to the current path. The added path *must* be a relative path
|
|
|
remove and gives in argument the basename of the path
|
|
|
remove and gives in argument the outer most member of the path
|
|
|
sequentially read the elements that compose the path
|
1.4.2