38 "A general logging service providing a quality of service (severity)" 39 "|Message[string]:The message"),
41 fMsgQueue(
std::bind(&
MessageDimTX::UpdateService, this, placeholders::_1))
46 Message(
"MessageDimTX started.");
69 Out() <<
" !! " << get<0>(
data).GetAsStr() <<
" - Sending failed!" << endl;
121 : fMinLogLevel(0), fConnected(false), fMsg(imp),
122 fDimMessage((name+
"/MESSAGE").c_str(), (void*)NULL, 0, this)
138 const string server = name.substr(0, name.find_first_of(
'/'));
Queue< std::tuple< Time, std::string, int > > fMsgQueue
MessageDimRX(const std::string &name, MessageImp &imp)
void setQuality(int quality)
The base implementation of a distributed messaging system.
Adds some functionality to boost::posix_time::ptime for our needs.
bool UpdateService(const std::tuple< Time, std::string, int > &data)
int Write(const Time &t, const std::string &txt, int qos=kInfo)
MessageDimTX(const std::string &name, std::ostream &out=std::cout)
int getTimestampMillisecs()
std::ostream & Out() const
virtual int Write(const Time &time, const std::string &txt, int qos=kMessage)
bool wait(bool abrt=false)
Based on MessageImp, redirects log-output to a Dim service MESSAGE.
void setData(const void *ptr, size_t sz)
DimStampedInfo fDimMessage
int Message(const std::string &str)