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
13namespace Catch {
14
15 struct Colour {
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
Definition calc.cpp:23
os_t os
auto operator<<(std::ostream &os, LazyExpression const &lazyExpr) -> std::ostream &
Colour(Code _colourCode)
static void use(Code _colourCode)
Colour & operator=(Colour &&other) noexcept
Definition bench.cpp:18