62 void pushColor(
long front, std::ostream& stream = std::cout);
72 void pushColor(
long front,
long back, std::ostream& stream = std::cout);
75 void popColor(std::ostream& stream = std::cout);
Helper class for scoped color stack operations.
Definition ConsoleManip.hpp:78
ScopedColor(const long front, std::ostream &stream=std::cout)
Constructor with output stream and front color flags.
Definition ConsoleManip.hpp:88
ScopedColor(const long front, const long back, std::ostream &stream=std::cout)
Constructor with output stream, and front- and back color flags.
Definition ConsoleManip.hpp:96
std::ostream & mStream
Definition ConsoleManip.hpp:80
~ScopedColor()
Destructor which will reset the previous color from the output stream.
Definition ConsoleManip.hpp:100
Definition ConsoleManip.hpp:13
bool isEnabled()
Returns true if console manipulation is enabled.
void enable(bool enable)
Enables or disables console manipulation. By default enabled.
void pushColor(long front, std::ostream &stream=std::cout)
Pushes the specified front color flags onto the stack.
void popColor(std::ostream &stream=std::cout)
Pops the previous front and back color flags from the stack.
Output stream color flags enumeration.
Definition ConsoleManip.hpp:16
@ Black
Black color flag.
Definition ConsoleManip.hpp:31
@ Blue
Blue color flag.
Definition ConsoleManip.hpp:25
@ Pink
Pink color flag (Red | Blue | Intens).
Definition ConsoleManip.hpp:43
@ Intens
Intensity color flag.
Definition ConsoleManip.hpp:28
@ Cyan
Cyan color flag (Green | Blue | Intens).
Definition ConsoleManip.hpp:46
@ Yellow
Yellow color flag (Red | Green | Intens).
Definition ConsoleManip.hpp:40
@ Green
Green color flag.
Definition ConsoleManip.hpp:22
@ White
White color flag (Gray | Intens).
Definition ConsoleManip.hpp:37
@ Red
Red color flag.
Definition ConsoleManip.hpp:19
@ Gray
Gray color flag (Red | Green | Blue).
Definition ConsoleManip.hpp:34