|
Ocean
|
This class provides access to three different Message objects, e.g., for regular information, warnings, or errors. More...
#include <Messenger.h>
Data Structures | |
| struct | StreamHelper |
| Helper class allowing to specify a specific message object or stream type. More... | |
Public Types | |
| typedef Ocean::MessageObject< Messenger::isActive()> | MessageObject |
Definition of a default message object, only active if Messenger::isActive() == true. | |
| typedef Ocean::MessageObject< Messenger::isActive() &&Messenger::isDebugBuild()> | DebugMessageObject |
Definition of a debug message object, only active on debug builds and if Messenger::isActive() == true. | |
Static Public Member Functions | |
| static DebugMessageObject | debug () |
| Returns the message for debug messages. | |
| static MessageObject | info () |
| Returns the message for information messages. | |
| static MessageObject | warning () |
| Returns the message for warning messages. | |
| static MessageObject | error () |
| Returns the message for error messages. | |
| template<typename T , typename TStream = MessageObject> | |
| static constexpr bool | isSupported () |
| Returns whether a specific data type can be written to a message object (or an arbitrary stream). | |
This class provides access to three different Message objects, e.g., for regular information, warnings, or errors.
| typedef Ocean::MessageObject<Messenger::isActive() && Messenger::isDebugBuild()> Ocean::Log::DebugMessageObject |
Definition of a debug message object, only active on debug builds and if Messenger::isActive() == true.
Definition of a default message object, only active if Messenger::isActive() == true.
|
inlinestatic |
Returns the message for debug messages.
Debug messages do not show up on release builds.
The debug log is intended to simplify code like this:
|
inlinestatic |
Returns the message for error messages.
|
inlinestatic |
Returns the message for information messages.
|
staticconstexpr |
Returns whether a specific data type can be written to a message object (or an arbitrary stream).
The function returns whether the shift operator of MessageObject (or of an arbitrary stream) supports the specified data type. Usage:
| T | The data type to be checked |
| TStream | The data type of the message object (or stream) to be checked |
|
inlinestatic |
Returns the message for warning messages.