Add phrase for info
This commit is contained in:
parent
3051675bbe
commit
fe3929c340
|
@ -80,6 +80,12 @@ std::ostream &operator<<(std::ostream &stream, Phrases phrase)
|
||||||
setStyle(stream, TextAttribute::Reset);
|
setStyle(stream, TextAttribute::Reset);
|
||||||
stream << std::endl;
|
stream << std::endl;
|
||||||
break;
|
break;
|
||||||
|
case Phrases::Info:
|
||||||
|
setStyle(stream, Color::Blue, ColorContext::Foreground, TextAttribute::Bold);
|
||||||
|
stream << "Info: ";
|
||||||
|
setStyle(stream, TextAttribute::Reset);
|
||||||
|
setStyle(stream, TextAttribute::Bold);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return stream;
|
return stream;
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,6 +132,7 @@ enum class Phrases {
|
||||||
ErrorMessage, /**< bold, red "==> ERROR: " */
|
ErrorMessage, /**< bold, red "==> ERROR: " */
|
||||||
WarningMessage, /**< bold, yellow "==> WARNING: " */
|
WarningMessage, /**< bold, yellow "==> WARNING: " */
|
||||||
EndFlush, /**< resets the style and flushes the stream */
|
EndFlush, /**< resets the style and flushes the stream */
|
||||||
|
Info, /**< bold, blue "Info: " */
|
||||||
};
|
};
|
||||||
CPP_UTILITIES_EXPORT std::ostream &operator<<(std::ostream &stream, Phrases phrase);
|
CPP_UTILITIES_EXPORT std::ostream &operator<<(std::ostream &stream, Phrases phrase);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue