3 #ifndef GCP_UTIL_LOGMSGHANDLER_H
4 #define GCP_UTIL_LOGMSGHANDLER_H
20 #include "gcp/util/common/Mutex.h"
45 std::ostringstream os_;
47 unsigned lastReadIndex_;
67 void append(
unsigned seq, std::string text, LogMsg::Type type=LogMsg::TYPE_UNSPEC);
69 void appendWithSpace(
unsigned seq, std::string text, LogMsg::Type type=LogMsg::TYPE_UNSPEC);
84 std::map<unsigned, LogMsg*> messages_;
88 void eraseMessage(
unsigned seq);
92 LogMsg* findMessage(
unsigned seq);
101 #endif // End #ifndef GCP_UTIL_LOGMSGHANDLER_H
LogMsgHandler()
Definition: LogMsgHandler.cc:13
std::string getNextMessageSubstr(unsigned seq, unsigned maxChars, bool &isLast)
Definition: LogMsgHandler.cc:146
virtual ~LogMsgHandler()
Definition: LogMsgHandler.cc:21
Definition: LogMsgHandler.h:29
std::string getMessage(unsigned seq)
Definition: LogMsgHandler.cc:85
Definition: LogMsgHandler.h:25
std::string readMessage(unsigned seq)
Definition: LogMsgHandler.cc:137