Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_console_colour.h
Go to the documentation of this file.
1
/*
2
* Created by Phil on 25/2/2012.
3
* Copyright 2012 Two Blue Cubes Ltd. All rights reserved.
4
*
5
* Distributed under the Boost Software License, Version 1.0. (See accompanying
6
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7
*/
8
#ifndef TWOBLUECUBES_CATCH_CONSOLE_COLOUR_HPP_INCLUDED
9
#define TWOBLUECUBES_CATCH_CONSOLE_COLOUR_HPP_INCLUDED
10
11
#include "
catch_common.h
"
12
13
namespace
Catch
{
14
15
struct
Colour
{
16
enum
Code
{
17
None
= 0,
18
19
White
,
20
Red
,
21
Green
,
22
Blue
,
23
Cyan
,
24
Yellow
,
25
Grey
,
26
27
Bright
= 0x10,
28
29
BrightRed
=
Bright
|
Red
,
30
BrightGreen
=
Bright
|
Green
,
31
LightGrey
=
Bright
|
Grey
,
32
BrightWhite
=
Bright
|
White
,
33
BrightYellow
=
Bright
|
Yellow
,
34
35
// By intention
36
FileName
=
LightGrey
,
37
Warning
=
BrightYellow
,
38
ResultError
=
BrightRed
,
39
ResultSuccess
=
BrightGreen
,
40
ResultExpectedFailure
=
Warning
,
41
42
Error
=
BrightRed
,
43
Success
=
Green
,
44
45
OriginalExpression
=
Cyan
,
46
ReconstructedExpression
=
BrightYellow
,
47
48
SecondaryText
=
LightGrey
,
49
Headers
=
White
50
};
51
52
// Use constructed object for RAII guard
53
Colour
(
Code
_colourCode );
54
Colour
(
Colour
&& other )
noexcept
;
55
Colour
&
operator=
(
Colour
&& other )
noexcept
;
56
~Colour
();
57
58
// Use static method for one-shot changes
59
static
void
use
(
Code
_colourCode );
60
61
private
:
62
bool
m_moved =
false
;
63
};
64
65
std::ostream&
operator <<
( std::ostream&
os
, Colour
const
& );
66
67
}
// end namespace Catch
68
69
#endif
// TWOBLUECUBES_CATCH_CONSOLE_COLOUR_HPP_INCLUDED
Error
Error
Definition
calc.cpp:23
catch_common.h
os
os_t os
Definition
environment.hpp:23
Catch
Definition
231-Cfg-OutputStreams.cpp:32
Catch::operator<<
auto operator<<(std::ostream &os, LazyExpression const &lazyExpr) -> std::ostream &
Definition
catch_assertionhandler.cpp:38
Catch::Colour
Definition
catch_console_colour.h:15
Catch::Colour::~Colour
~Colour()
Definition
catch_console_colour.cpp:221
Catch::Colour::Colour
Colour(Code _colourCode)
Definition
catch_console_colour.cpp:210
Catch::Colour::ReconstructedExpression
@ ReconstructedExpression
Definition
catch_console_colour.h:46
Catch::Colour::BrightWhite
@ BrightWhite
Definition
catch_console_colour.h:32
Catch::Colour::ResultExpectedFailure
@ ResultExpectedFailure
Definition
catch_console_colour.h:40
Catch::Colour::Yellow
@ Yellow
Definition
catch_console_colour.h:24
Catch::Colour::Cyan
@ Cyan
Definition
catch_console_colour.h:23
Catch::Colour::Headers
@ Headers
Definition
catch_console_colour.h:49
Catch::Colour::ResultError
@ ResultError
Definition
catch_console_colour.h:38
Catch::Colour::Bright
@ Bright
Definition
catch_console_colour.h:27
Catch::Colour::Red
@ Red
Definition
catch_console_colour.h:20
Catch::Colour::White
@ White
Definition
catch_console_colour.h:19
Catch::Colour::None
@ None
Definition
catch_console_colour.h:17
Catch::Colour::BrightRed
@ BrightRed
Definition
catch_console_colour.h:29
Catch::Colour::FileName
@ FileName
Definition
catch_console_colour.h:36
Catch::Colour::Grey
@ Grey
Definition
catch_console_colour.h:25
Catch::Colour::Green
@ Green
Definition
catch_console_colour.h:21
Catch::Colour::Success
@ Success
Definition
catch_console_colour.h:43
Catch::Colour::LightGrey
@ LightGrey
Definition
catch_console_colour.h:31
Catch::Colour::Warning
@ Warning
Definition
catch_console_colour.h:37
Catch::Colour::BrightYellow
@ BrightYellow
Definition
catch_console_colour.h:33
Catch::Colour::BrightGreen
@ BrightGreen
Definition
catch_console_colour.h:30
Catch::Colour::OriginalExpression
@ OriginalExpression
Definition
catch_console_colour.h:45
Catch::Colour::Blue
@ Blue
Definition
catch_console_colour.h:22
Catch::Colour::SecondaryText
@ SecondaryText
Definition
catch_console_colour.h:48
Catch::Colour::ResultSuccess
@ ResultSuccess
Definition
catch_console_colour.h:39
Catch::Colour::use
static void use(Code _colourCode)
Definition
catch_console_colour.cpp:223
Catch::Colour::operator=
Colour & operator=(Colour &&other) noexcept
Definition
catch_console_colour.cpp:215
Code
Definition
bench.cpp:18
libraries
sys-vm
external
Catch2
include
internal
catch_console_colour.h
Generated by
1.12.0