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

CVSCopy Class Reference

#include <cvsCopy.h>

Inheritance diagram for CVSCopy:

ProgramBase FltCopy MayaCopy TestCopy List of all members.

Public Member Functions

 CVSCopy ()
CVSSourceDirectoryimport (const Filename &source, void *extra_data, CVSSourceDirectory *suggested_dir)
bool continue_after_error ()

Protected Types

typedef vector_string SourceFiles
typedef pmap< string, CVSSourceDirectory * > CopiedFiles

Protected Member Functions

virtual bool handle_args (Args &args)
virtual bool post_command_line ()
virtual bool verify_file (const Filename &source, const Filename &dest, CVSSourceDirectory *dest_dir, void *extra_data)
virtual bool copy_file (const Filename &source, const Filename &dest, CVSSourceDirectory *dest_dir, void *extra_data, bool new_file)=0
bool verify_binary_file (Filename source, Filename dest)
bool copy_binary_file (Filename source, Filename dest)
bool cvs_add (const Filename &filename)
virtual string filter_filename (const string &source)

Static Protected Member Functions

string protect_from_shell (const string &source)

Protected Attributes

bool _force
bool _interactive
bool _got_model_dirname
Filename _model_dirname
bool _got_map_dirname
Filename _map_dirname
bool _got_root_dirname
Filename _root_dirname
Filename _key_filename
bool _no_cvs
string _cvs_binary
bool _user_aborted
SourceFiles _source_files
CVSSourceTree _tree
CVSSourceDirectory_model_dir
CVSSourceDirectory_map_dir
CopiedFiles _copied_files

Private Member Functions

bool scan_hierarchy ()
bool scan_for_root (const string &dirname)
string prompt (const string &message)

Member Typedef Documentation

typedef pmap<string, CVSSourceDirectory *> CVSCopy::CopiedFiles [protected]
 

Definition at line 91 of file cvsCopy.h.

typedef vector_string CVSCopy::SourceFiles [protected]
 

Definition at line 84 of file cvsCopy.h.


Constructor & Destructor Documentation

CVSCopy::CVSCopy  ) 
 

Definition at line 31 of file cvsCopy.cxx.

References _cvs_binary, _force, _got_map_dirname, _got_model_dirname, _got_root_dirname, _interactive, _key_filename, _map_dir, _map_dirname, _model_dir, _model_dirname, _no_cvs, _root_dirname, _user_aborted, ProgramBase::add_option(), ProgramBase::add_runline(), ProgramBase::clear_runlines(), ProgramBase::dispatch_filename(), ProgramBase::dispatch_none(), ProgramBase::dispatch_string(), and NULL.


Member Function Documentation

bool CVSCopy::continue_after_error  ) 
 

Definition at line 172 of file cvsCopy.cxx.

References _user_aborted, nassertr, nout, and prompt().

Referenced by import().

bool CVSCopy::copy_binary_file Filename  source,
Filename  dest
[protected]
 

Definition at line 333 of file cvsCopy.cxx.

References c, nout, Filename::open_read(), Filename::open_write(), Filename::set_binary(), and Filename::unlink().

Referenced by TestCopy::copy_file(), MayaCopy::copy_texture(), and FltCopy::copy_texture().

virtual bool CVSCopy::copy_file const Filename source,
const Filename dest,
CVSSourceDirectory dest_dir,
void extra_data,
bool  new_file
[protected, pure virtual]
 

Implemented in TestCopy, FltCopy, and MayaCopy.

Referenced by import().

bool CVSCopy::cvs_add const Filename filename  )  [protected]
 

Definition at line 377 of file cvsCopy.cxx.

References _cvs_binary, Filename::get_basename(), Filename::get_dirname(), nout, protect_from_shell(), CVSSourceTree::restore_cwd(), and CVSSourceTree::temp_chdir().

Referenced by FltCopy::copy_texture(), and import().

string CVSCopy::filter_filename const string &  source  )  [protected, virtual]
 

Reimplemented in MayaCopy.

Definition at line 454 of file cvsCopy.cxx.

Referenced by import().

bool CVSCopy::handle_args Args args  )  [protected, virtual]
 

Definition at line 206 of file cvsCopy.cxx.

References _source_files, and nout.

CVSSourceDirectory * CVSCopy::import const Filename source,
void extra_data,
CVSSourceDirectory suggested_dir
 

Definition at line 117 of file cvsCopy.cxx.

References _copied_files, _force, _interactive, _tree, CVSSourceTree::choose_directory(), continue_after_error(), copy_file(), cvs_add(), Filename::exists(), filter_filename(), Filename::get_basename(), CVSSourceDirectory::get_fullpath(), nassertr, nout, NULL, and verify_file().

bool CVSCopy::post_command_line  )  [protected, virtual]
 

Reimplemented from ProgramBase.

Definition at line 227 of file cvsCopy.cxx.

References _map_dir, _map_dirname, _model_dir, _model_dirname, _tree, CVSSourceTree::find_directory(), CVSSourceTree::find_relpath(), CVSSourceTree::get_root_dirname(), nout, NULL, and scan_hierarchy().

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

Definition at line 516 of file cvsCopy.cxx.

References nout, p, q, and size_t.

Referenced by continue_after_error(), and scan_for_root().

string CVSCopy::protect_from_shell const string &  source  )  [static, protected]
 

Definition at line 410 of file cvsCopy.cxx.

Referenced by cvs_add().

bool CVSCopy::scan_for_root const string &  dirname  )  [private]
 

Definition at line 492 of file cvsCopy.cxx.

References Filename::exists(), nout, and prompt().

Referenced by scan_hierarchy().

bool CVSCopy::scan_hierarchy  )  [private]
 

Definition at line 468 of file cvsCopy.cxx.

References _got_root_dirname, _key_filename, _model_dirname, _root_dirname, _tree, CVSSourceTree::get_root_fullpath(), nout, CVSSourceTree::scan(), scan_for_root(), and CVSSourceTree::set_root().

Referenced by post_command_line().

bool CVSCopy::verify_binary_file Filename  source,
Filename  dest
[protected]
 

Definition at line 283 of file cvsCopy.cxx.

References cs, Filename::open_read(), s, and Filename::set_binary().

bool CVSCopy::verify_file const Filename source,
const Filename dest,
CVSSourceDirectory dest_dir,
void extra_data
[protected, virtual]
 

Definition at line 270 of file cvsCopy.cxx.

Referenced by import().


Member Data Documentation

CopiedFiles CVSCopy::_copied_files [protected]
 

Definition at line 92 of file cvsCopy.h.

Referenced by import().

string CVSCopy::_cvs_binary [protected]
 

Definition at line 81 of file cvsCopy.h.

Referenced by cvs_add(), and CVSCopy().

bool CVSCopy::_force [protected]
 

Definition at line 71 of file cvsCopy.h.

Referenced by CVSCopy(), and import().

bool CVSCopy::_got_map_dirname [protected]
 

Definition at line 75 of file cvsCopy.h.

Referenced by CVSCopy().

bool CVSCopy::_got_model_dirname [protected]
 

Definition at line 73 of file cvsCopy.h.

Referenced by CVSCopy().

bool CVSCopy::_got_root_dirname [protected]
 

Definition at line 77 of file cvsCopy.h.

Referenced by CVSCopy(), and scan_hierarchy().

bool CVSCopy::_interactive [protected]
 

Definition at line 72 of file cvsCopy.h.

Referenced by CVSCopy(), and import().

Filename CVSCopy::_key_filename [protected]
 

Definition at line 79 of file cvsCopy.h.

Referenced by CVSCopy(), and scan_hierarchy().

CVSSourceDirectory* CVSCopy::_map_dir [protected]
 

Definition at line 89 of file cvsCopy.h.

Referenced by FltCopy::copy_flt_file(), CVSCopy(), MayaCopy::extract_texture(), and post_command_line().

Filename CVSCopy::_map_dirname [protected]
 

Definition at line 76 of file cvsCopy.h.

Referenced by CVSCopy(), and post_command_line().

CVSSourceDirectory* CVSCopy::_model_dir [protected]
 

Definition at line 88 of file cvsCopy.h.

Referenced by FltCopy::copy_flt_file(), CVSCopy(), post_command_line(), TestCopy::run(), MayaCopy::run(), and FltCopy::run().

Filename CVSCopy::_model_dirname [protected]
 

Definition at line 74 of file cvsCopy.h.

Referenced by CVSCopy(), post_command_line(), and scan_hierarchy().

bool CVSCopy::_no_cvs [protected]
 

Definition at line 80 of file cvsCopy.h.

Referenced by CVSCopy().

Filename CVSCopy::_root_dirname [protected]
 

Definition at line 78 of file cvsCopy.h.

Referenced by CVSCopy(), and scan_hierarchy().

SourceFiles CVSCopy::_source_files [protected]
 

Definition at line 85 of file cvsCopy.h.

Referenced by handle_args(), TestCopy::run(), MayaCopy::run(), and FltCopy::run().

CVSSourceTree CVSCopy::_tree [protected]
 

Definition at line 87 of file cvsCopy.h.

Referenced by import(), post_command_line(), and scan_hierarchy().

bool CVSCopy::_user_aborted [protected]
 

Definition at line 82 of file cvsCopy.h.

Referenced by continue_after_error(), and CVSCopy().


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