Changeset 1227
- Timestamp:
- Oct 17, 2010, 11:16:13 PM (13 years ago)
- Location:
- branches/visitor
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/visitor/bin/svncopyright.cc
r1119 r1227 67 67 Directory tree(0,option.root(),""); 68 68 69 if (option.verbose()) 70 std::cout << "Parsing directory tree" << std::endl; 71 tree.parse(option.verbose(), option.ignore_cache()); 72 update_copyright(tree, option.verbose()); 69 update_copyright(tree, option.verbose(), option.ignore_cache()); 73 70 } 74 71 catch (std::runtime_error& e) { -
branches/visitor/lib/CopyrightVisitor.cc
r1225 r1227 31 31 CopyrightVisitor::CopyrightVisitor(std::map<std::string, Alias>& alias, 32 32 bool verbose, 33 const std::map<int,svn_revnum_t>& year2rev) 34 : NodeVisitor(), alias_(alias), verbose_(verbose), year2rev_(year2rev) 33 const std::map<int,svn_revnum_t>& year2rev, 34 bool ignore_cache) 35 : NodeVisitor(), alias_(alias), verbose_(verbose), year2rev_(year2rev), 36 ignore_cache_(ignore_cache) 35 37 {} 36 38 … … 51 53 void CopyrightVisitor::visit(File& file) 52 54 { 55 file.parse(verbose_, ignore_cache_); 53 56 file.print_copyright(alias_, verbose_, year2rev_); 54 57 } -
branches/visitor/lib/CopyrightVisitor.h
r1225 r1227 42 42 public: 43 43 CopyrightVisitor(std::map<std::string, Alias>&, bool verbose, 44 const std::map<int, svn_revnum_t>& year2rev); 44 const std::map<int, svn_revnum_t>& year2rev, 45 bool ignore_cache); 45 46 46 47 /** … … 61 62 bool verbose_; 62 63 const std::map<int, svn_revnum_t>& year2rev_; 64 bool ignore_cache_; 63 65 }; 64 66 }} // end of namespace svndigest and namespace theplu -
branches/visitor/lib/main_utility.cc
r1225 r1227 59 59 60 60 61 void update_copyright(Node& tree, bool verbose )61 void update_copyright(Node& tree, bool verbose, bool ignore_cache) 62 62 { 63 63 if (verbose) … … 79 79 } 80 80 81 CopyrightVisitor visitor(alias, verbose, year2rev );81 CopyrightVisitor visitor(alias, verbose, year2rev, ignore_cache); 82 82 tree.traverse(visitor); 83 83 } -
branches/visitor/lib/main_utility.h
r1225 r1227 46 46 \brief update copyright statements in \a node 47 47 */ 48 void update_copyright(Node& node, bool verbose );48 void update_copyright(Node& node, bool verbose, bool ignore_cache); 49 49 50 50 }} // end of namespace svndigest end of namespace theplu
Note: See TracChangeset
for help on using the changeset viewer.