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

SoftCVS Class Reference

#include <softCVS.h>

Inheritance diagram for SoftCVS:

ProgramBase List of all members.

Public Member Functions

 SoftCVS ()
void run ()

Protected Attributes

bool _no_cvs
string _cvs_binary

Private Types

typedef pvector< SoftFilenameSceneFiles
typedef pmultiset< SoftFilenameElementFiles

Private Member Functions

void traverse_root ()
void traverse_subdir (const Filename &directory)
void collapse_scene_files ()
void count_references ()
void remove_unused_elements ()
bool rename_file (SceneFiles::iterator begin, SceneFiles::iterator end)
bool scan_cvs (const string &dirname, pset< string > &cvs_elements)
void scan_scene_file (istream &in)
bool cvs_add (const string &path)
bool cvs_add_or_remove (const string &cvs_command, const vector_string &paths)

Private Attributes

SceneFiles _scene_files
ElementFiles _element_files
vector_string _cvs_add
vector_string _cvs_remove

Member Typedef Documentation

typedef pmultiset<SoftFilename> SoftCVS::ElementFiles [private]
 

Definition at line 47 of file softCVS.h.

typedef pvector<SoftFilename> SoftCVS::SceneFiles [private]
 

Definition at line 46 of file softCVS.h.


Constructor & Destructor Documentation

SoftCVS::SoftCVS  ) 
 

Definition at line 31 of file softCVS.cxx.

References _cvs_binary, _no_cvs, ProgramBase::add_option(), ProgramBase::add_runline(), ProgramBase::clear_runlines(), ProgramBase::dispatch_none(), ProgramBase::dispatch_string(), NULL, and ProgramBase::set_program_description().


Member Function Documentation

void SoftCVS::collapse_scene_files  )  [private]
 

Definition at line 219 of file softCVS.cxx.

References _scene_files, SoftFilename::is_1_0(), SoftFilename::make_1_0(), and rename_file().

Referenced by run().

void SoftCVS::count_references  )  [private]
 

Definition at line 263 of file softCVS.cxx.

References _cvs_add, _scene_files, SoftFilename::get_dirname(), SoftFilename::get_filename(), SoftFilename::get_in_cvs(), nout, Filename::open_read(), scan_scene_file(), and Filename::set_text().

Referenced by run().

bool SoftCVS::cvs_add const string &  path  )  [private]
 

Definition at line 495 of file softCVS.cxx.

References _cvs_binary, nout, and path.

Referenced by scan_cvs().

bool SoftCVS::cvs_add_or_remove const string &  cvs_command,
const vector_string paths
[private]
 

Definition at line 515 of file softCVS.cxx.

References _cvs_binary, nout, and path.

Referenced by run().

void SoftCVS::remove_unused_elements  )  [private]
 

Definition at line 292 of file softCVS.cxx.

References _cvs_add, _cvs_remove, _element_files, SoftFilename::get_dirname(), SoftFilename::get_filename(), SoftFilename::get_in_cvs(), SoftFilename::get_use_count(), and nout.

Referenced by run().

bool SoftCVS::rename_file SceneFiles::iterator  begin,
SceneFiles::iterator  end
[private]
 

Definition at line 324 of file softCVS.cxx.

References _cvs_add, _cvs_remove, end, SoftFilename::get_1_0_filename(), SoftFilename::get_dirname(), SoftFilename::get_filename(), SoftFilename::get_in_cvs(), length, nassertr, nout, p, Filename::rename_to(), SoftFilename::set_in_cvs(), and Filename::unlink().

Referenced by collapse_scene_files().

void SoftCVS::run  ) 
 

Definition at line 71 of file softCVS.cxx.

References _cvs_add, _cvs_remove, _no_cvs, collapse_scene_files(), count_references(), cvs_add_or_remove(), Filename::exists(), nout, remove_unused_elements(), and traverse_root().

Referenced by main().

bool SoftCVS::scan_cvs const string &  dirname,
pset< string > &  cvs_elements
[private]
 

Definition at line 404 of file softCVS.cxx.

References cvs_add(), Filename::exists(), nout, Filename::open_read(), Filename::set_text(), and size_t.

Referenced by traverse_subdir().

void SoftCVS::scan_scene_file istream &  in  )  [private]
 

Definition at line 453 of file softCVS.cxx.

References _element_files, c, SoftFilename::increment_use_count(), and v.

Referenced by count_references().

void SoftCVS::traverse_root  )  [private]
 

Definition at line 118 of file softCVS.cxx.

References Filename::is_directory(), nout, root, traverse_subdir(), and vector_string.

Referenced by run().

void SoftCVS::traverse_subdir const Filename directory  )  [private]
 

Definition at line 144 of file softCVS.cxx.

References _cvs_add, _element_files, _no_cvs, _scene_files, Filename, Filename::get_basename(), SoftFilename::get_extension(), SoftFilename::has_version(), SoftFilename::increment_use_count(), nout, scan_cvs(), Filename::scan_directory(), SoftFilename::set_in_cvs(), and vector_string.

Referenced by traverse_root().


Member Data Documentation

vector_string SoftCVS::_cvs_add [private]
 

Definition at line 68 of file softCVS.h.

Referenced by count_references(), remove_unused_elements(), rename_file(), run(), and traverse_subdir().

string SoftCVS::_cvs_binary [protected]
 

Definition at line 73 of file softCVS.h.

Referenced by cvs_add(), cvs_add_or_remove(), and SoftCVS().

vector_string SoftCVS::_cvs_remove [private]
 

Definition at line 69 of file softCVS.h.

Referenced by remove_unused_elements(), rename_file(), and run().

ElementFiles SoftCVS::_element_files [private]
 

Definition at line 66 of file softCVS.h.

Referenced by remove_unused_elements(), scan_scene_file(), and traverse_subdir().

bool SoftCVS::_no_cvs [protected]
 

Definition at line 72 of file softCVS.h.

Referenced by run(), SoftCVS(), and traverse_subdir().

SceneFiles SoftCVS::_scene_files [private]
 

Definition at line 65 of file softCVS.h.

Referenced by collapse_scene_files(), count_references(), and traverse_subdir().


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