Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CVSSourceTree::FilePath Class Reference

Public Member Functions

 FilePath ()
 Creates an invalid FilePath specification.
 
 FilePath (CVSSourceDirectory *dir, const std::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

std::string _basename
 
CVSSourceDirectory_dir
 

Detailed Description

Definition at line 52 of file cvsSourceTree.h.

Constructor & Destructor Documentation

◆ FilePath() [1/2]

CVSSourceTree::FilePath::FilePath ( )

Creates an invalid FilePath specification.

Definition at line 494 of file cvsSourceTree.cxx.

◆ FilePath() [2/2]

CVSSourceTree::FilePath::FilePath ( CVSSourceDirectory * dir,
const std::string & basename )

Creates a valid FilePath specification with the indicated directory and basename.

Definition at line 504 of file cvsSourceTree.cxx.

Member Function Documentation

◆ get_fullpath()

Filename CVSSourceTree::FilePath::get_fullpath ( ) const

Returns the full path to this file.

Definition at line 532 of file cvsSourceTree.cxx.

Referenced by CVSCopy::import().

◆ 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 523 of file cvsSourceTree.cxx.

Referenced by CVSCopy::import().

◆ get_rel_from()

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 542 of file cvsSourceTree.cxx.

References CVSSourceDirectory::get_rel_to().

◆ is_valid()

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 515 of file cvsSourceTree.cxx.

Referenced by CVSCopy::import().

Member Data Documentation

◆ _basename

std::string CVSSourceTree::FilePath::_basename

Definition at line 62 of file cvsSourceTree.h.

◆ _dir

CVSSourceDirectory* CVSSourceTree::FilePath::_dir

Definition at line 61 of file cvsSourceTree.h.


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