Changeset 550 for CMT/HEAD/source/cmt_parser.cxx
- Timestamp:
- Aug 23, 2010, 11:31:26 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_parser.cxx
r549 r550 4042 4042 do_check_configuration (ap); 4043 4043 4044 switch (ap.mode) 4045 { 4046 case Xml : 4047 Cmt::print_xml_prolog ("setup"); 4048 cout << "<setup>"; 4049 break; 4050 } 4044 4051 print (ap.mode); 4052 switch (ap.mode) 4053 { 4054 case Xml : 4055 cout << "</setup>" << endl; 4056 break; 4057 } 4045 4058 4046 4059 // … … 4568 4581 4569 4582 //---------------------------------------------------------- 4570 void Cmt::do_show_projects (const ArgParser& /*ap*/) 4571 { 4572 Project::show_all (); 4583 void Cmt::do_show_projects (const ArgParser& ap) 4584 //void Cmt::do_show_projects (const ArgParser& /*ap*/) 4585 { 4586 Project::show_all (ap.mode); 4573 4587 } 4574 4588 … … 4774 4788 4775 4789 //---------------------------------------------------------- 4776 void Cmt::do_show_uses (const ArgParser& /*ap*/, ostream& out) 4777 { 4778 Use::show_all (false, out); 4790 void Cmt::do_show_uses (const ArgParser& ap, ostream& out) 4791 //void Cmt::do_show_uses (const ArgParser& /*ap*/, ostream& out) 4792 { 4793 Use::show_all (false, out, ap.mode); 4794 // Use::show_all (false, out); 4779 4795 } 4780 4796 … … 7123 7139 } 7124 7140 7141 switch (mode) 7142 { 7143 case Xml : 7144 break; 7145 default : 7125 7146 cout << endl; 7147 break; 7148 } 7126 7149 } 7127 7150 … … 7294 7317 7295 7318 break; 7319 case Xml : 7320 if (do_root) 7321 { 7322 cout << "<variable><name>" << use.prefix << "ROOT</name>" 7323 << "<value>" << use.get_full_path () << "</value></variable>"; 7324 } 7325 7326 if (use.get_package_name () == "CMT") 7327 { 7328 cout << "<variable><name>CMTCONFIG</name>" 7329 << "<value>" << system << "</value></variable>"; 7330 } 7331 else 7332 { 7333 if (do_config) 7334 { 7335 cout << "<variable><name>" << use.prefix << "CONFIG</name>" 7336 << "<value>" << tag << "</value></variable>"; 7337 } 7338 } 7339 7340 break; 7296 7341 case Requirements : 7297 7342 if (do_root && … … 7451 7496 tabs--; 7452 7497 } 7498 } 7499 7500 //---------------------------------------------------------- 7501 void Cmt::print_xml_prolog (const cmt_string& root, ostream& out) 7502 { 7503 out << "<?xml version=\"1.0\" standalone=\"no\"?>" << endl; 7504 cmt_string dtd_file (Me.m_cmt_root); 7505 dtd_file += CmtSystem::file_separator (); 7506 dtd_file += "mgr"; 7507 dtd_file += CmtSystem::file_separator (); 7508 dtd_file += "CMT.dtd"; 7509 out << "<!DOCTYPE " + root + " SYSTEM \"" + dtd_file + "\">" << endl; 7453 7510 } 7454 7511
Note: See TracChangeset
for help on using the changeset viewer.