#include <status_message.hpp>
|
template<typename MessageType , typename... MessageRest> |
static void | format (std::ostream &str, MessageType const &msg, MessageRest...rest) |
|
template<typename MessageType > |
static void | format (std::ostream &str, MessageType const &msg) |
|
Class encapsulating facilities to signal messages and errors.
Enumeration for different categories of status message.
Enumerator |
---|
Information |
An informational message.
|
Warning |
Warning message.
|
Error |
Error message, the issuer is responsible for returning from the current callback call.
The calling class (i.e., a component will be called again in the nest iteration.
|
Abort |
Severe error.
Execution should be terminated after the current iteration
|
Critical |
Critical error, control shall not return to the calling function.
|
template<typename MessageType , typename... MessageRest>
static void visr::StatusMessage::format |
( |
std::ostream & |
str, |
|
|
MessageType const & |
msg, |
|
|
MessageRest... |
rest |
|
) |
| |
|
inlinestatic |
Create a status message from an arbitrary sequence of arguments. This template function is invoked recursively (at compile time)
- Template Parameters
-
MessageType | type of the first argument |
MessageRest | parameter type holding all arguments apart from the rest. |
- Parameters
-
str | The output stream to which the arguments are written to. |
msg | First argument. All types that have an <<operator() are acceptable. |
rest | variable-length list containing all parameters except the first. |
template<typename MessageType >
static void visr::StatusMessage::format |
( |
std::ostream & |
str, |
|
|
MessageType const & |
msg |
|
) |
| |
|
inlinestatic |
Create a status message from an arbitrary sequence of arguments. This is the terminal case of the recursive formatStatusMessage() function above.
- Template Parameters
-
MessageType | type of the message argument |
- Parameters
-
str | The output stream to which the arguments are written to. |
msg | Message argument. All types that have an <<operator() are acceptable. |
The documentation for this class was generated from the following file: