diff options
Diffstat (limited to 'cpp/src/Slice/FileTracker.cpp')
-rw-r--r-- | cpp/src/Slice/FileTracker.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/cpp/src/Slice/FileTracker.cpp b/cpp/src/Slice/FileTracker.cpp index e57de914e31..fbba124fc3b 100644 --- a/cpp/src/Slice/FileTracker.cpp +++ b/cpp/src/Slice/FileTracker.cpp @@ -7,7 +7,9 @@ // // ********************************************************************** + #include <Slice/FileTracker.h> +#include <IceUtil/ConsoleUtil.h> #ifdef _WIN32 # include <direct.h> @@ -15,6 +17,7 @@ # include <unistd.h> #endif +using namespace IceUtilInternal; using namespace std; Slice::FileException::FileException(const char* file, int line, const string& r) : @@ -149,30 +152,30 @@ Slice::FileTracker::cleanup() void Slice::FileTracker::dumpxml() { - cout << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << endl; + consoleOut << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << endl; - cout << "<generated>" << endl; + consoleOut << "<generated>" << endl; for(map<string, string>::const_iterator p = _errors.begin(); p != _errors.end(); ++p) { - cout << " <source name=\"" << p->first << "\""; + consoleOut << " <source name=\"" << p->first << "\""; map<string, list<string> >::const_iterator q = _generated.find(p->first); if(q == _generated.end()) { - cout << " error=\"true\">" << endl; + consoleOut << " error=\"true\">" << endl; } else { - cout << ">" << endl; + consoleOut << ">" << endl; for(list<string>::const_iterator r = q->second.begin(); r != q->second.end(); ++r) { - cout << " <file name=\"" << *r << "\"/>" << endl; + consoleOut << " <file name=\"" << *r << "\"/>" << endl; } } - cout << " <output>" << escape(p->second) << "</output>" << endl; - cout << " </source>" << endl; + consoleOut << " <output>" << escape(p->second) << "</output>" << endl; + consoleOut << " </source>" << endl; } - cout << "</generated>" << endl; + consoleOut << "</generated>" << endl; } string |