Public Member Functions | |
FilePath () | |
Creates an invalid FilePath specification. More... | |
FilePath (CVSSourceDirectory *dir, const std::string &basename) | |
Creates a valid FilePath specification with the indicated directory and basename. More... | |
Filename | get_fullpath () const |
Returns the full path to this file. More... | |
Filename | get_path () const |
Returns the relative path to this file from the root of the source tree. More... | |
Filename | get_rel_from (const CVSSourceDirectory *other) const |
Returns the relative path to this file as seen from the indicated source directory. More... | |
bool | is_valid () const |
Returns true if this FilePath represents a valid file, or false if it represents an error return. More... | |
Public Attributes | |
std::string | _basename |
CVSSourceDirectory * | _dir |
Definition at line 52 of file cvsSourceTree.h.
CVSSourceTree::FilePath::FilePath | ( | ) |
Creates an invalid FilePath specification.
Definition at line 495 of file cvsSourceTree.cxx.
CVSSourceTree::FilePath::FilePath | ( | CVSSourceDirectory * | dir, |
const std::string & | basename | ||
) |
Creates a valid FilePath specification with the indicated directory and basename.
Definition at line 505 of file cvsSourceTree.cxx.
Filename CVSSourceTree::FilePath::get_fullpath | ( | ) | const |
Returns the full path to this file.
Definition at line 533 of file cvsSourceTree.cxx.
Filename CVSSourceTree::FilePath::get_path | ( | ) | const |
Returns the relative path to this file from the root of the source tree.
Definition at line 524 of file cvsSourceTree.cxx.
Filename CVSSourceTree::FilePath::get_rel_from | ( | const CVSSourceDirectory * | other | ) | const |
Returns the relative path to this file as seen from the indicated source directory.
Definition at line 543 of file cvsSourceTree.cxx.
bool CVSSourceTree::FilePath::is_valid | ( | ) | const |
Returns true if this FilePath represents a valid file, or false if it represents an error return.
Definition at line 516 of file cvsSourceTree.cxx.