PrefixedMessage
Convenience message for custom Alert prefixes.
Defined in Rodin/Alert/Message.h
template < class Prefix> class PrefixedMessage;
| Template parameters | |
|---|---|
| Prefix | Prefix type derived from MessagePrefix. |
This class mirrors the default behavior of specialized messages such as Info, while allowing callers to provide their own prefix type and color.
↓
PrefixedMessage
Inherits from
| Base class | Responsibility |
|---|---|
Message<Prefix>publicFull typeMessage< Prefix > | Forward declaration of the Message template class. |
Inherited interface
| Declared in | Members |
|---|---|
Message |
Public types
Constructors, destructors, conversion operators
- PrefixedMessage()
- Constructs a message that writes to std::cout.
- PrefixedMessage(std::ostream& os)
- Constructs a message that writes to the given output stream.
Function documentation
PrefixedMessage(std::ostream& os)
Constructs a message that writes to the given output stream.
| Parameters | |
|---|---|
| os | Output stream. |