Panda3D
|
Public Member Functions | |
FilePath () | |
Creates an invalid FilePath specification. More... | |
FilePath (CVSSourceDirectory *dir, const 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 | |
string | _basename |
CVSSourceDirectory * | _dir |
Definition at line 58 of file cvsSourceTree.h.
CVSSourceTree::FilePath::FilePath | ( | ) |
Creates an invalid FilePath specification.
Definition at line 557 of file cvsSourceTree.cxx.
Referenced by CVSSourceTree::restore_cwd().
CVSSourceTree::FilePath::FilePath | ( | CVSSourceDirectory * | dir, |
const string & | basename | ||
) |
Creates a valid FilePath specification with the indicated directory and basename.
Definition at line 569 of file cvsSourceTree.cxx.
References is_valid().
Filename CVSSourceTree::FilePath::get_fullpath | ( | ) | const |
Returns the full path to this file.
Definition at line 604 of file cvsSourceTree.cxx.
References CVSSourceDirectory::get_fullpath(), and get_rel_from().
Referenced by get_path().
Filename CVSSourceTree::FilePath::get_path | ( | ) | const |
Returns the relative path to this file from the root of the source tree.
Definition at line 593 of file cvsSourceTree.cxx.
References get_fullpath(), and CVSSourceDirectory::get_path().
Referenced by is_valid(), and CVSSourceTree::restore_cwd().
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 616 of file cvsSourceTree.cxx.
References CVSSourceDirectory::get_rel_to().
Referenced by get_fullpath().
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 582 of file cvsSourceTree.cxx.
References get_path().
Referenced by FilePath(), and CVSSourceTree::restore_cwd().