Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CVSSourceTree Class Reference

#include <cvsSourceTree.h>

List of all members.

Public Member Functions

 CVSSourceTree ()
 ~CVSSourceTree ()
void set_root (const Filename &root_path)
bool scan (const Filename &key_filename)
CVSSourceDirectoryget_root () const
CVSSourceDirectoryfind_directory (const Filename &path)
CVSSourceDirectoryfind_relpath (const string &relpath)
CVSSourceDirectoryfind_dirname (const string &dirname)
CVSSourceDirectorychoose_directory (const Filename &filename, CVSSourceDirectory *suggested_dir, bool force, bool interactive)
Filename get_root_fullpath ()
Filename get_root_dirname () const
void add_file (const Filename &filename, CVSSourceDirectory *dir)

Static Public Member Functions

bool temp_chdir (const Filename &path)
void restore_cwd ()

Private Types

typedef pvector< CVSSourceDirectory * > Directories
typedef pmap< Filename, DirectoriesFilenames

Private Member Functions

CVSSourceDirectoryprompt_user (const string &filename, CVSSourceDirectory *suggested_dir, const Directories &dirs, bool force, bool interactive)
CVSSourceDirectoryask_existing (const string &filename, CVSSourceDirectory *dir)
CVSSourceDirectoryask_existing (const string &filename, const Directories &dirs, CVSSourceDirectory *suggested_dir)
CVSSourceDirectoryask_new (const string &filename, CVSSourceDirectory *dir)
CVSSourceDirectoryask_any (const string &filename)
string prompt (const string &message)

Static Private Member Functions

Filename get_actual_fullpath (const Filename &path)
Filename get_start_fullpath ()

Private Attributes

Filename _path
CVSSourceDirectory_root
Filenames _filenames
bool _got_root_fullpath
Filename _root_fullpath

Static Private Attributes

bool _got_start_fullpath = false
Filename _start_fullpath


Member Typedef Documentation

typedef pvector<CVSSourceDirectory *> CVSSourceTree::Directories [private]
 

Definition at line 62 of file cvsSourceTree.h.

typedef pmap<Filename, Directories> CVSSourceTree::Filenames [private]
 

Definition at line 85 of file cvsSourceTree.h.


Constructor & Destructor Documentation

CVSSourceTree::CVSSourceTree  ) 
 

Definition at line 44 of file cvsSourceTree.cxx.

References _got_root_fullpath, _root, and NULL.

CVSSourceTree::~CVSSourceTree  ) 
 

Definition at line 55 of file cvsSourceTree.cxx.

References _root, and NULL.


Member Function Documentation

void CVSSourceTree::add_file const Filename filename,
CVSSourceDirectory dir
 

Definition at line 235 of file cvsSourceTree.cxx.

References _filenames.

Referenced by CVSSourceDirectory::scan().

CVSSourceDirectory * CVSSourceTree::ask_any const string &  filename  )  [private]
 

Definition at line 442 of file cvsSourceTree.cxx.

References find_directory(), find_dirname(), find_relpath(), nassertr, nout, NULL, and prompt().

Referenced by prompt_user().

CVSSourceDirectory * CVSSourceTree::ask_existing const string &  filename,
const Directories dirs,
CVSSourceDirectory suggested_dir
[private]
 

Definition at line 360 of file cvsSourceTree.cxx.

References CVSSourceDirectory::get_path(), nassertr, nout, NULL, and prompt().

CVSSourceDirectory * CVSSourceTree::ask_existing const string &  filename,
CVSSourceDirectory dir
[private]
 

Definition at line 335 of file cvsSourceTree.cxx.

References CVSSourceDirectory::get_path(), nassertr, nout, NULL, and prompt().

Referenced by prompt_user().

CVSSourceDirectory * CVSSourceTree::ask_new const string &  filename,
CVSSourceDirectory dir
[private]
 

Definition at line 417 of file cvsSourceTree.cxx.

References CVSSourceDirectory::get_path(), nassertr, nout, NULL, and prompt().

Referenced by prompt_user().

CVSSourceDirectory * CVSSourceTree::choose_directory const Filename filename,
CVSSourceDirectory suggested_dir,
bool  force,
bool  interactive
 

Definition at line 180 of file cvsSourceTree.cxx.

References _filenames, and prompt_user().

Referenced by CVSCopy::import().

CVSSourceDirectory * CVSSourceTree::find_directory const Filename path  ) 
 

Definition at line 108 of file cvsSourceTree.cxx.

References _root, CVSSourceDirectory::find_relpath(), get_actual_fullpath(), get_root_fullpath(), NULL, and path.

Referenced by ask_any(), and CVSCopy::post_command_line().

CVSSourceDirectory * CVSSourceTree::find_dirname const string &  dirname  ) 
 

Definition at line 165 of file cvsSourceTree.cxx.

References _root, and CVSSourceDirectory::find_dirname().

Referenced by ask_any().

CVSSourceDirectory * CVSSourceTree::find_relpath const string &  relpath  ) 
 

Definition at line 135 of file cvsSourceTree.cxx.

References _root, CVSSourceDirectory::find_relpath(), first, CVSSourceDirectory::get_dirname(), NULL, and size_t.

Referenced by ask_any(), and CVSCopy::post_command_line().

Filename CVSSourceTree::get_actual_fullpath const Filename path  )  [static, private]
 

Definition at line 506 of file cvsSourceTree.cxx.

References Filename::make_canonical(), and path.

Referenced by find_directory(), and get_root_fullpath().

CVSSourceDirectory * CVSSourceTree::get_root  )  const
 

Definition at line 96 of file cvsSourceTree.cxx.

References _root.

Filename CVSSourceTree::get_root_dirname  )  const
 

Definition at line 222 of file cvsSourceTree.cxx.

References _root, Filename, CVSSourceDirectory::get_dirname(), nassertr, and NULL.

Referenced by CVSCopy::post_command_line().

Filename CVSSourceTree::get_root_fullpath  ) 
 

Definition at line 206 of file cvsSourceTree.cxx.

References _got_root_fullpath, _path, _root_fullpath, Filename::empty(), Filename, get_actual_fullpath(), and nassertr.

Referenced by find_directory(), CVSSourceDirectory::get_fullpath(), scan(), and CVSCopy::scan_hierarchy().

Filename CVSSourceTree::get_start_fullpath  )  [static, private]
 

Definition at line 520 of file cvsSourceTree.cxx.

References _got_start_fullpath, _start_fullpath, ExecutionEnvironment::get_cwd(), and Filename::to_os_specific().

Referenced by restore_cwd(), and temp_chdir().

string CVSSourceTree::prompt const string &  message  )  [private]
 

Definition at line 475 of file cvsSourceTree.cxx.

References nout, p, q, and size_t.

Referenced by ask_any(), ask_existing(), and ask_new().

CVSSourceDirectory * CVSSourceTree::prompt_user const string &  filename,
CVSSourceDirectory suggested_dir,
const Directories dirs,
bool  force,
bool  interactive
[private]
 

Definition at line 287 of file cvsSourceTree.cxx.

References ask_any(), ask_existing(), ask_new(), and NULL.

Referenced by choose_directory().

void CVSSourceTree::restore_cwd  )  [static]
 

Definition at line 267 of file cvsSourceTree.cxx.

References get_start_fullpath(), nout, and Filename::to_os_specific().

Referenced by CVSCopy::cvs_add().

bool CVSSourceTree::scan const Filename key_filename  ) 
 

Definition at line 83 of file cvsSourceTree.cxx.

References _path, _root, Filename::get_basename(), get_root_fullpath(), nassertr, NULL, and CVSSourceDirectory::scan().

Referenced by CVSCopy::scan_hierarchy().

void CVSSourceTree::set_root const Filename root_path  ) 
 

Definition at line 69 of file cvsSourceTree.cxx.

References _path, Filename::empty(), and nassertv.

Referenced by CVSCopy::scan_hierarchy().

bool CVSSourceTree::temp_chdir const Filename path  )  [static]
 

Definition at line 248 of file cvsSourceTree.cxx.

References get_start_fullpath(), and path.

Referenced by CVSCopy::cvs_add().


Member Data Documentation

Filenames CVSSourceTree::_filenames [private]
 

Definition at line 86 of file cvsSourceTree.h.

Referenced by add_file(), and choose_directory().

bool CVSSourceTree::_got_root_fullpath [private]
 

Definition at line 90 of file cvsSourceTree.h.

Referenced by CVSSourceTree(), and get_root_fullpath().

bool CVSSourceTree::_got_start_fullpath = false [static, private]
 

Definition at line 35 of file cvsSourceTree.cxx.

Referenced by get_start_fullpath().

Filename CVSSourceTree::_path [private]
 

Definition at line 82 of file cvsSourceTree.h.

Referenced by get_root_fullpath(), scan(), and set_root().

CVSSourceDirectory* CVSSourceTree::_root [private]
 

Definition at line 83 of file cvsSourceTree.h.

Referenced by CVSSourceTree(), find_directory(), find_dirname(), find_relpath(), get_root(), get_root_dirname(), scan(), and ~CVSSourceTree().

Filename CVSSourceTree::_root_fullpath [private]
 

Definition at line 91 of file cvsSourceTree.h.

Referenced by get_root_fullpath().

Filename CVSSourceTree::_start_fullpath [static, private]
 

Definition at line 36 of file cvsSourceTree.cxx.

Referenced by get_start_fullpath().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:00:47 2003 for Panda-Tool by doxygen1.3