Add Phrases::EndFlush
This commit is contained in:
parent
f35124eff5
commit
4011040e57
|
@ -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_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_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_MAJOR 4)
|
||||||
set(META_VERSION_MINOR 10)
|
set(META_VERSION_MINOR 11)
|
||||||
set(META_VERSION_PATCH 0)
|
set(META_VERSION_PATCH 0)
|
||||||
|
|
||||||
# find required 3rd party libraries
|
# find required 3rd party libraries
|
||||||
|
|
|
@ -53,6 +53,10 @@ std::ostream &operator<<(std::ostream &stream, Phrases phrase)
|
||||||
setStyle(stream, TextAttribute::Reset);
|
setStyle(stream, TextAttribute::Reset);
|
||||||
setStyle(stream, TextAttribute::Bold);
|
setStyle(stream, TextAttribute::Bold);
|
||||||
break;
|
break;
|
||||||
|
case Phrases::EndFlush:
|
||||||
|
setStyle(stream, TextAttribute::Reset);
|
||||||
|
stream << std::endl;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return stream;
|
return stream;
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,6 +112,7 @@ enum class Phrases {
|
||||||
SubMessage, /**< bold, blue " -> " */
|
SubMessage, /**< bold, blue " -> " */
|
||||||
ErrorMessage, /**< bold, red "==> ERROR: " */
|
ErrorMessage, /**< bold, red "==> ERROR: " */
|
||||||
WarningMessage, /**< bold, yellow "==> WARNING: " */
|
WarningMessage, /**< bold, yellow "==> WARNING: " */
|
||||||
|
EndFlush, /**< resets the style and flushes the stream */
|
||||||
};
|
};
|
||||||
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