Panda3D
Public Member Functions | Public Attributes

CVSSourceTree::FilePath Class Reference

List of all members.

Public Member Functions

 FilePath ()
 Creates an invalid FilePath specification.
 FilePath (CVSSourceDirectory *dir, const string &basename)
 Creates a valid FilePath specification with the indicated directory and basename.
Filename get_fullpath () const
 Returns the full path to this file.
Filename get_path () const
 Returns the relative path to this file from the root of the source tree.
Filename get_rel_from (const CVSSourceDirectory *other) const
 Returns the relative path to this file as seen from the indicated source directory.
bool is_valid () const
 Returns true if this FilePath represents a valid file, or false if it represents an error return.

Public Attributes

string _basename
CVSSourceDirectory_dir

Detailed Description

Definition at line 58 of file cvsSourceTree.h.


Constructor & Destructor Documentation

CVSSourceTree::FilePath::FilePath ( )

Creates an invalid FilePath specification.

Definition at line 557 of file cvsSourceTree.cxx.

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.


Member Function Documentation

Filename CVSSourceTree::FilePath::get_fullpath ( ) const

Returns the full path to this file.

Definition at line 604 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 593 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 616 of file cvsSourceTree.cxx.

References CVSSourceDirectory::get_rel_to().

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations