|
C++ Utilities 5.36.0
Useful C++ classes and routines such as argument parser, IO and conversion utilities
|
#include "../global.h"#include "../misc/traits.h"#include <ostream>#include <string_view>#include <tuple>Go to the source code of this file.
Namespaces | |
| namespace | CppUtilities |
| Contains all utilities provided by the c++utilities library. | |
| namespace | CppUtilities::EscapeCodes |
| Encapsulates functions for formatted terminal output using ANSI escape codes. | |
Functions | |
| void | CppUtilities::EscapeCodes::setStyle (std::ostream &stream, TextAttribute displayAttribute=TextAttribute::Reset) |
| void | CppUtilities::EscapeCodes::setStyle (std::ostream &stream, Color color, ColorContext context=ColorContext::Foreground, TextAttribute displayAttribute=TextAttribute::Reset) |
| void | CppUtilities::EscapeCodes::setStyle (std::ostream &stream, Color foregroundColor, Color backgroundColor, TextAttribute displayAttribute=TextAttribute::Reset) |
| void | CppUtilities::EscapeCodes::resetStyle (std::ostream &stream) |
| void | CppUtilities::EscapeCodes::setCursor (std::ostream &stream, unsigned int row=0, unsigned int col=0) |
| void | CppUtilities::EscapeCodes::moveCursor (std::ostream &stream, unsigned int cells, Direction direction) |
| void | CppUtilities::EscapeCodes::saveCursor (std::ostream &stream) |
| void | CppUtilities::EscapeCodes::restoreCursor (std::ostream &stream) |
| void | CppUtilities::EscapeCodes::eraseDisplay (std::ostream &stream) |
| void | CppUtilities::EscapeCodes::eraseLine (std::ostream &stream) |
| std::ostream & | CppUtilities::EscapeCodes::operator<< (std::ostream &stream, TextAttribute displayAttribute) |
| constexpr auto | CppUtilities::EscapeCodes::color (Color foreground, Color background, TextAttribute displayAttribute=TextAttribute::Reset) |
| constexpr auto | CppUtilities::EscapeCodes::color (Color foreground, ColorContext context, TextAttribute displayAttribute=TextAttribute::Reset) |
| template<typename TupleType, Traits::EnableIfAny< std::is_same< TupleType, std::tuple< Color, Color, TextAttribute > >, std::is_same< TupleType, std::tuple< Color, ColorContext, TextAttribute > > > * = nullptr> | |
| std::ostream & | CppUtilities::EscapeCodes::operator<< (std::ostream &stream, TupleType displayAttribute) |
| CPP_UTILITIES_EXPORT std::ostream & | CppUtilities::EscapeCodes::operator<< (std::ostream &stream, Phrases phrase) |
| Prints the specified phrase in a formatted manner using ANSI escape codes. | |
| CPP_UTILITIES_EXPORT std::string_view | CppUtilities::EscapeCodes::phraseString (Phrases phrase) |
| Returns a string for the specified phrase without formatting. | |
| CPP_UTILITIES_EXPORT std::string_view | CppUtilities::EscapeCodes::formattedPhraseString (Phrases phrase) |
| Returns a string for the specified phrase which is formatted using ANSI escape codes. | |
Variables | |
| CPP_UTILITIES_EXPORT bool | CppUtilities::EscapeCodes::enabled |
| Controls whether the functions inside the EscapeCodes namespace actually make use of escape codes. | |