Horizon
Classes | Public Member Functions | Protected Attributes | List of all members
Catch::ColourImpl Class Referenceabstract

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

IStreamm_stream
 The associated stream of this ColourImpl instance.
 

Member Function Documentation

◆ guardColour()

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.


The documentation for this class was generated from the following files: