|
Horizon
|
Classes | |
| class | ColourGuard |
| RAII wrapper around writing specific colour of text using specific colour impl into a stream. More... | |
Public Member Functions | |
| ColourImpl (IStream *stream) | |
| ColourGuard | guardColour (Colour::Code colourCode) |
| Creates a guard object for given colour and this colour impl. More... | |
Protected Attributes | |
| IStream * | m_stream |
| The associated stream of this ColourImpl instance. | |
| ColourImpl::ColourGuard Catch::ColourImpl::guardColour | ( | Colour::Code | colourCode | ) |
Creates a guard object for given colour and this colour impl.
Important: the guard starts disengaged, and has to be engaged explicitly.