Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Colour Struct Reference

#include <catch_console_colour.h>

Public Types

enum  Code {
  None = 0 , White , Red , Green ,
  Blue , Cyan , Yellow , Grey ,
  Bright = 0x10 , BrightRed = Bright | Red , BrightGreen = Bright | Green , LightGrey = Bright | Grey ,
  BrightWhite = Bright | White , BrightYellow = Bright | Yellow , FileName = LightGrey , Warning = BrightYellow ,
  ResultError = BrightRed , ResultSuccess = BrightGreen , ResultExpectedFailure = Warning , Error = BrightRed ,
  Success = Green , OriginalExpression = Cyan , ReconstructedExpression = BrightYellow , SecondaryText = LightGrey ,
  Headers = White
}
 

Public Member Functions

 Colour (Code _colourCode)
 
 Colour (Colour &&other) noexcept
 
Colouroperator= (Colour &&other) noexcept
 
 ~Colour ()
 

Static Public Member Functions

static void use (Code _colourCode)
 

Detailed Description

Definition at line 15 of file catch_console_colour.h.

Member Enumeration Documentation

◆ Code

Enumerator
None 
White 
Red 
Green 
Blue 
Cyan 
Yellow 
Grey 
Bright 
BrightRed 
BrightGreen 
LightGrey 
BrightWhite 
BrightYellow 
FileName 
Warning 
ResultError 
ResultSuccess 
ResultExpectedFailure 
Error 
Success 
OriginalExpression 
ReconstructedExpression 
SecondaryText 
Headers 

Definition at line 16 of file catch_console_colour.h.

16 {
17 None = 0,
18
19 White,
20 Red,
21 Green,
22 Blue,
23 Cyan,
24 Yellow,
25 Grey,
26
27 Bright = 0x10,
28
34
35 // By intention
41
43 Success = Green,
44
47
50 };
Error
Definition calc.cpp:23

Constructor & Destructor Documentation

◆ Colour() [1/2]

Catch::Colour::Colour ( Code _colourCode)

Definition at line 210 of file catch_console_colour.cpp.

210{ use( _colourCode ); }
static void use(Code _colourCode)
Here is the call graph for this function:

◆ Colour() [2/2]

Catch::Colour::Colour ( Colour && other)
noexcept

Definition at line 211 of file catch_console_colour.cpp.

211 {
212 m_moved = rhs.m_moved;
213 rhs.m_moved = true;
214 }

◆ ~Colour()

Catch::Colour::~Colour ( )

Definition at line 221 of file catch_console_colour.cpp.

221{ if( !m_moved ) use( None ); }
Here is the call graph for this function:

Member Function Documentation

◆ operator=()

Colour & Catch::Colour::operator= ( Colour && other)
noexcept

Definition at line 215 of file catch_console_colour.cpp.

215 {
216 m_moved = rhs.m_moved;
217 rhs.m_moved = true;
218 return *this;
219 }

◆ use()

void Catch::Colour::use ( Code _colourCode)
static

Definition at line 223 of file catch_console_colour.cpp.

223 {
224 static IColourImpl* impl = platformColourInstance();
225 impl->use( _colourCode );
226 }
Here is the caller graph for this function:

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