A decorator of CStringList special for keeping logs.
Definition at line 52 of file CLog.h.
#include <mrpt/utils/CLog.h>
Public Member Functions | |
CLog () | |
virtual | ~CLog () |
void | pushMessages (std::string message) |
push a message | |
void | pushMessages (mrpt::utils::CStringList messages) |
push a list of messages | |
void | popMessages (std::string &message) |
pop the current unpublished message (clear the content of "message") | |
void | popMessages (mrpt::utils::CStringList &messages) |
pop all unpublished messages (clear the content of "messages") | |
void | getMessages (size_t begin, size_t end, mrpt::utils::CStringList &messages) |
get messages from "begin" to "end" (clear the content of "messages") | |
void | saveLog (std::string name) |
save the current log | |
void | loadLog (std::string name) |
load a log (clear the previous content) | |
void | clearLog () |
clear the log content | |
void | setLastMessageIndex (size_t index) |
change the last unpublished message. | |
size_t | getLastMessageIndex () |
get the current unpublished message index. | |
Protected Attributes | |
mrpt::synch::CCriticalSection | semaphore |
size_t | last |
mrpt::utils::CLog::CLog | ( | ) |
virtual mrpt::utils::CLog::~CLog | ( | ) | [virtual] |
void mrpt::utils::CLog::clearLog | ( | ) |
clear the log content
size_t mrpt::utils::CLog::getLastMessageIndex | ( | ) |
get the current unpublished message index.
void mrpt::utils::CLog::getMessages | ( | size_t | begin, |
size_t | end, | ||
mrpt::utils::CStringList & | messages | ||
) |
get messages from "begin" to "end" (clear the content of "messages")
void mrpt::utils::CLog::loadLog | ( | std::string | name ) |
load a log (clear the previous content)
void mrpt::utils::CLog::popMessages | ( | std::string & | message ) |
pop the current unpublished message (clear the content of "message")
void mrpt::utils::CLog::popMessages | ( | mrpt::utils::CStringList & | messages ) |
pop all unpublished messages (clear the content of "messages")
void mrpt::utils::CLog::pushMessages | ( | mrpt::utils::CStringList | messages ) |
push a list of messages
void mrpt::utils::CLog::pushMessages | ( | std::string | message ) |
push a message
void mrpt::utils::CLog::saveLog | ( | std::string | name ) |
save the current log
void mrpt::utils::CLog::setLastMessageIndex | ( | size_t | index ) |
change the last unpublished message.
IMPORTANT: this function should not be used directly.
size_t mrpt::utils::CLog::last [protected] |
Page generated by Doxygen 1.7.2 for MRPT 0.9.4 SVN: at Mon Jan 10 22:46:17 UTC 2011 |