1 #ifndef FACT_MessageImp 2 #define FACT_MessageImp 37 void StateChanged(
const Time &
time,
const std::string &server,
const std::string &msg,
int state);
54 int Debug(
const char *txt) {
return Debug(std::string(txt)); }
56 int Info(
const char *txt) {
return Info(std::string(txt)); }
57 int Warn(
const char *txt) {
return Warn(std::string(txt)); }
58 int Error(
const char *txt) {
return Error(std::string(txt)); }
59 int Alarm(
const char *txt) {
return Alarm(std::string(txt)); }
60 int Fatal(
const char *txt) {
return Fatal(std::string(txt)); }
65 int Info(
const std::ostringstream &
str) {
return Info(str.str()); }
66 int Warn(
const std::ostringstream &
str) {
return Warn(str.str()); }
73 std::ostream &
Out()
const {
return fOut; }
std::ostream & operator()() const
int Update(const std::ostringstream &str, int severity=kMessage)
int Update(const char *txt, int severity=kMessage)
int Comment(const std::string &str)
int Debug(const std::ostringstream &str)
virtual bool MessageQueueEmpty() const
int Comment(const std::ostringstream &str)
int Debug(const char *txt)
A warning, things that somehow might result in unexpected or unwanted bahaviour.
int Error(const std::ostringstream &str)
int Debug(const std::string &str)
int Fatal(const char *txt)
The base implementation of a distributed messaging system.
void StateChanged(const Time &time, const std::string &server, const std::string &msg, int state)
Adds some functionality to boost::posix_time::ptime for our needs.
int Info(const std::ostringstream &str)
int Alarm(const std::ostringstream &str)
int Alarm(const std::string &str)
int Info(const char *txt)
int Warn(const std::ostringstream &str)
int WriteImp(const Time &time, const std::string &txt, int qos=kMessage)
Mjd of last message.
std::ostream & Out() const
int Comment(const char *txt)
An info telling something which can be interesting to know.
int Message(const char *txt)
Severity
Severity of a message.
Just a message, usually obsolete.
virtual int Write(const Time &time, const std::string &txt, int qos=kMessage)
A message used for debugging only.
uint32_t fLastMjd
The ostream to which by default Write redirects its output.
int Error(const std::string &str)
int Update(const std::string &txt, int severity=kMessage)
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
int Warn(const std::string &str)
int Fatal(const std::ostringstream &str)
MessageImp(std::ostream &out=std::cout)
Error, something unexpected happened, but can still be handled by the program.
A comment which is always printed.
Error, something unexpected happened, but needs user intervention (i.e. it needs a signal to the user...
int Error(const char *txt)
int Info(const std::string &str)
int Message(const std::string &str)
int Fatal(const std::string &str)
virtual void IndicateStateChange(const Time &, const std::string &)
An error which cannot be handled at all happend, the only solution is program termination.
int Warn(const char *txt)
int Alarm(const char *txt)
int Message(const std::ostringstream &str)