Changeset 13207 for trunk


Ignore:
Timestamp:
03/23/12 15:59:43 (13 years ago)
Author:
tbretz
Message:
Addeda  new log-class: comments
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/MessageImp.cc

    r11398 r13207  
    114114    {
    115115    case kMessage: fOut << kDefault       << " -> "; break;
     116    case kComment: fOut << kDefault       << " #> "; break;
    116117    case kInfo:    fOut << kGreen         << " I> "; break;
    117118    case kWarn:    fOut << kYellow        << " W> "; break;
  • trunk/FACT++/src/MessageImp.h

    r11402 r13207  
    1919        kError   = 40, ///< Error, something unexpected happened, but can still be handled by the program
    2020        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
    2122        kDebug   = 99, ///< A message used for debugging only
    2223    };
     
    4445    int Error(const std::string &str)    { return Update(str, kError);   }
    4546    int Fatal(const std::string &str)    { return Update(str, kFatal);   }
     47    int Comment(const std::string &str)  { return Update(str, kComment); }
    4648
    4749    int Debug(const char *txt)   { return Debug(std::string(txt));   }
     
    5153    int Error(const char *txt)   { return Error(std::string(txt));   }
    5254    int Fatal(const char *txt)   { return Fatal(std::string(txt));   }
     55    int Comment(const char *txt) { return Comment(std::string(txt)); }
    5356
    5457    int Debug(const std::ostringstream &str)   { return Debug(str.str());   }
     
    5861    int Error(const std::ostringstream &str)   { return Error(str.str());   }
    5962    int Fatal(const std::ostringstream &str)   { return Fatal(str.str());   }
     63    int Comment(const std::ostringstream &str) { return Comment(str.str()); }
    6064
    6165    std::ostream &operator()() const { return fOut; }
Note: See TracChangeset for help on using the changeset viewer.