Changeset 13207
- Timestamp:
- 03/23/12 15:59:43 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/MessageImp.cc
r11398 r13207 114 114 { 115 115 case kMessage: fOut << kDefault << " -> "; break; 116 case kComment: fOut << kDefault << " #> "; break; 116 117 case kInfo: fOut << kGreen << " I> "; break; 117 118 case kWarn: fOut << kYellow << " W> "; break; -
trunk/FACT++/src/MessageImp.h
r11402 r13207 19 19 kError = 40, ///< Error, something unexpected happened, but can still be handled by the program 20 20 kFatal = 50, ///< An error which cannot be handled at all happend, the only solution is program termination 21 kComment = 90, ///< A comment which is always printed 21 22 kDebug = 99, ///< A message used for debugging only 22 23 }; … … 44 45 int Error(const std::string &str) { return Update(str, kError); } 45 46 int Fatal(const std::string &str) { return Update(str, kFatal); } 47 int Comment(const std::string &str) { return Update(str, kComment); } 46 48 47 49 int Debug(const char *txt) { return Debug(std::string(txt)); } … … 51 53 int Error(const char *txt) { return Error(std::string(txt)); } 52 54 int Fatal(const char *txt) { return Fatal(std::string(txt)); } 55 int Comment(const char *txt) { return Comment(std::string(txt)); } 53 56 54 57 int Debug(const std::ostringstream &str) { return Debug(str.str()); } … … 58 61 int Error(const std::ostringstream &str) { return Error(str.str()); } 59 62 int Fatal(const std::ostringstream &str) { return Fatal(str.str()); } 63 int Comment(const std::ostringstream &str) { return Comment(str.str()); } 60 64 61 65 std::ostream &operator()() const { return fOut; }
Note:
See TracChangeset
for help on using the changeset viewer.