ContRap-Core
|
Class LoggerMessage represents a message with type, string, and sender. More...
#include <logger.h>
Public Member Functions | |
LoggerMessage (const std::string &message, MessageType type=COMMENT_MESSAGE, const std::string &sender="") | |
Logger message from properties. | |
std::string & | get_message () |
Returns the message. | |
MessageType | get_type () const |
Returns the type. | |
std::string & | get_sender () |
Returns the sender. | |
std::string | to_string () const |
Converts the message to a string. | |
Protected Attributes | |
std::string | message |
Message of the logger. | |
MessageType | type |
Type of the message. | |
std::string | sender |
Name of the sender. |
Class LoggerMessage represents a message with type, string, and sender.
crp::LoggerMessage::LoggerMessage | ( | const std::string & | message, |
MessageType | type = COMMENT_MESSAGE , |
||
const std::string & | sender = "" |
||
) | [inline] |
std::string& crp::LoggerMessage::get_message | ( | ) | [inline] |
Returns the message.
std::string& crp::LoggerMessage::get_sender | ( | ) | [inline] |
Returns the sender.
MessageType crp::LoggerMessage::get_type | ( | ) | const [inline] |
Returns the type.
std::string crp::LoggerMessage::to_string | ( | ) | const [inline] |
Converts the message to a string.
std::string crp::LoggerMessage::message [protected] |
Message of the logger.
std::string crp::LoggerMessage::sender [protected] |
Name of the sender.
MessageType crp::LoggerMessage::type [protected] |
Type of the message.