- Timestamp:
- Jul 28, 2011, 10:35:41 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/util/output/ConsoleWriter.cc
r8789 r8794 51 51 } 52 52 53 void ConsoleWriter:: output(OutputLevel level, OutputContext context, const std::vector<std::string>& lines)53 void ConsoleWriter::printLine(const std::string& line) 54 54 { 55 const std::string& prefix = OutputManager::getInstance().getDefaultPrefix(level, context); 56 std::string blanks(prefix.length(), ' '); 57 58 for (size_t i = 0; i < lines.size(); ++i) 59 std::cout << (i == 0 ? prefix : blanks) << lines[i] << std::endl; 55 std::cout << line << std::endl; 60 56 } 61 57
Note: See TracChangeset
for help on using the changeset viewer.