Public Methods |
|
void? | run (const cmt_string &constituent) |
void? | run (const cmt_string &location, const cmt_string &package, const cmt_string &filter_out="") |
|
? |
Definition at line 755 of file cmt_triggers.cxx. References CmtSystem::basename(), FAwk::run(), CmtSystem::scan_dir(), and cmt_vector< cmt_string >::size(). 00758 { 00759 static cmt_regexp expression ("[.]triggers$"); 00760 00761 TriggerAnalyzer analyzer (package); 00762 00763 CmtSystem::cmt_string_vector files; 00764 00765 CmtSystem::scan_dir (location, expression, files); 00766 00767 cmt_string name; 00768 00769 for (int i = 0; i < files.size (); i++) 00770 { 00771 const cmt_string& file = files[i]; 00772 00773 if (filter_out != "") 00774 { 00775 CmtSystem::basename (file, ".triggers", name); 00776 if (name == filter_out) continue; 00777 } 00778 00779 analyzer.run (file); 00780 } 00781 } |
|
? |
Definition at line 726 of file cmt_triggers.cxx. References Use::current(), CmtSystem::file_separator(), Use::get_ordered_uses(), Use::get_package_name(), mgr_style, Use::real_path, cmt_vector< Use * >::size(), Use::style, and Use::version. 00727 { 00728 Use* use = &(Use::current ()); 00729 00730 run ("./", use->get_package_name (), constituent); 00731 00732 Use::UsePtrVector& uses = Use::get_ordered_uses (); 00733 for (int i = 0; i < uses.size (); i++) 00734 { 00735 use = uses[i]; 00736 00737 cmt_string s; 00738 00739 s = use->real_path; 00740 s += CmtSystem::file_separator (); 00741 s += use->get_package_name (); 00742 s += CmtSystem::file_separator (); 00743 s += use->version; 00744 s += CmtSystem::file_separator (); 00745 00746 if (use->style == mgr_style) s += "mgr"; 00747 else s += "cmt"; 00748 00749 s += CmtSystem::file_separator (); 00750 00751 run (s, use->get_package_name ()); 00752 } 00753 } |