Ocean
|
Messenger object, one object for each message. More...
Public Types | |
using | MessageType = Messenger::MessageType |
Re-definition of MessageType. More... | |
Public Member Functions | |
MessageObject (const MessageType type) | |
Creates a new message object. More... | |
MessageObject (const MessageType type, std::string &&location) | |
Creates a new message object. More... | |
MessageObject (const MessageObject &messageObject)=default | |
Copy-constructs a new message object. More... | |
~MessageObject () | |
Destructs a message object. More... | |
MessageObject & | newLine (const bool condition=true) |
Adds a new line to this message object if a specified condition holds. More... | |
MessageObject & | operator<< (std::string &&message) |
Pushes another information message. More... | |
MessageObject & | operator<< (const std::string &message) |
Pushes another information message. More... | |
MessageObject & | operator<< (const char *message) |
Pushes another information message. More... | |
MessageObject & | operator<< (const double message) |
Pushes another information message. More... | |
MessageObject & | operator<< (const float message) |
Pushes another information message. More... | |
MessageObject & | operator<< (const int message) |
Pushes another information message. More... | |
MessageObject & | operator<< (const unsigned int message) |
Pushes another information message. More... | |
MessageObject & | operator<< (const long message) |
Pushes another information message. More... | |
MessageObject & | operator<< (const long long message) |
Pushes another information message. More... | |
MessageObject & | operator<< (const unsigned long long message) |
Pushes another information message. More... | |
MessageObject & | operator<< (const long unsigned int message) |
Pushes another information message. More... | |
void | operator<< (const MessageObject &message) |
Pushes another information message. More... | |
MessageObject & | operator= (const MessageObject &messageObject)=default |
Assign operator. More... | |
Protected Member Functions | |
MessageObject (const MessageType type, std::string &&location, std::string &&message) | |
Creates a new message object. More... | |
Protected Attributes | |
std::string | message_ |
Entire message. More... | |
std::string | location_ |
Location of the message. More... | |
Messenger::MessageType | type_ = Messenger::TYPE_UNDEFINED |
Type of this messenger. More... | |
Messenger object, one object for each message.
This class is a helper class only, therefore there is no need to use it directly.
tActive | True, if the message object is active; False, e.g., on builds in which messages must not appear in binary files |
using Ocean::MessageObject< tActive >::MessageType = Messenger::MessageType |
Re-definition of MessageType.
|
inlineexplicit |
Creates a new message object.
type | The type of the message object |
|
inline |
Creates a new message object.
type | The type of the message object |
location | The location of the message |
|
default |
Copy-constructs a new message object.
messageObject | Another instance that will be used to create this instance, must be valid |
|
inline |
Destructs a message object.
|
inlineprotected |
Creates a new message object.
type | The type of the message object |
location | The location of the message object |
message | The message of the object |
|
inline |
Adds a new line to this message object if a specified condition holds.
condition | True, to add the line; False, to do nothing |
|
inline |
Pushes another information message.
message | The message to push |
|
inline |
Pushes another information message.
message | The message to push |
|
inline |
Pushes another information message.
message | The message to push |
|
inline |
Pushes another information message.
message | The message to push |
|
inline |
Pushes another information message.
message | The message to push |
|
inline |
Pushes another information message.
message | The message to push |
|
inline |
Pushes another information message.
message | The message to push |
|
inline |
Pushes another information message.
message | The message to push |
|
inline |
Pushes another information message.
message | The message to push |
|
inline |
Pushes another information message.
message | The message to push |
|
inline |
Pushes another information message.
message | The message to push |
|
inline |
Pushes another information message.
message | The message to push |
|
default |
Assign operator.
messageObject | Another instance that will assigned to this instance, must be valid |
|
protected |
Location of the message.
|
protected |
Entire message.
|
protected |
Type of this messenger.