Add Phrases::EndFlush

This commit is contained in:
Martchus 2017-10-09 20:36:18 +02:00
parent f35124eff5
commit 4011040e57
3 changed files with 6 additions and 1 deletions

View File

@ -128,7 +128,7 @@ set(META_APP_AUTHOR "Martchus")
set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
set(META_APP_DESCRIPTION "Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities")
set(META_VERSION_MAJOR 4)
set(META_VERSION_MINOR 10)
set(META_VERSION_MINOR 11)
set(META_VERSION_PATCH 0)
# find required 3rd party libraries

View File

@ -53,6 +53,10 @@ std::ostream &operator<<(std::ostream &stream, Phrases phrase)
setStyle(stream, TextAttribute::Reset);
setStyle(stream, TextAttribute::Bold);
break;
case Phrases::EndFlush:
setStyle(stream, TextAttribute::Reset);
stream << std::endl;
break;
}
return stream;
}

View File

@ -112,6 +112,7 @@ enum class Phrases {
SubMessage, /**< bold, blue " -> " */
ErrorMessage, /**< bold, red "==> ERROR: " */
WarningMessage, /**< bold, yellow "==> WARNING: " */
EndFlush, /**< resets the style and flushes the stream */
};
CPP_UTILITIES_EXPORT std::ostream &operator<<(std::ostream &stream, Phrases phrase);