12 #ifndef ARGOS_COLORED_TEXT_H
13 #define ARGOS_COLORED_TEXT_H
15 #include <argos3/core/utility/datatypes/datatypes.h>
89 #define DEFINE_ARGOS_STREAM_COLOR_HELPER(lc_color, uc_color) \
90 inline std::ostream& lc_color(std::ostream& c_os) { \
91 c_os << SLogColor(ARGOS_LOG_ATTRIBUTE_BRIGHT, ARGOS_LOG_COLOR_ ## uc_color); \
128 inline std::ostream&
reset(std::ostream& c_os) {
unsigned char UInt8
8-bit unsigned integer.
The namespace containing all the ARGoS related code.
std::ostream & reset(std::ostream &c_os)
Resets the text to the default settings.
std::ostream & operator<<(std::ostream &c_os, const CByteArray &c_byte_array)
EARGoSLogAttributes
The possible attributes of the logged text.
@ ARGOS_LOG_ATTRIBUTE_BRIGHT
@ ARGOS_LOG_ATTRIBUTE_DIM
@ ARGOS_LOG_ATTRIBUTE_HIDDEN
@ ARGOS_LOG_ATTRIBUTE_BLINK
@ ARGOS_LOG_ATTRIBUTE_RESET
@ ARGOS_LOG_ATTRIBUTE_UNDERSCORE
@ ARGOS_LOG_ATTRIBUTE_REVERSE
DEFINE_ARGOS_STREAM_COLOR_HELPER(red, RED)
Bright red text modifier.
EARGoSLogColors
The possible colors of the logged text.
@ ARGOS_LOG_COLOR_MAGENTA
Stream modifier to set attribute and color of the subsequent text.
UInt8 Attribute
The text attribute.
SLogColor()
Constructor with standard settings.
SLogColor(EARGoSLogAttributes e_attribute, EARGoSLogColors e_foreground_color)
Constructor with custom settings.
UInt8 Foreground
The foreground color.