Panda3D
Public Member Functions | Public Attributes | List of all members
CVSSourceTree::FilePath Class Reference

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
 

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 495 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 505 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 533 of file cvsSourceTree.cxx.

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

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

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


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