class
WarningWarning output handler.
Contents
Same as Debug, but by default writes output to standard error output. Thus it is possible to separate / mute Debug, Warning and Error outputs.
Base classes
- class Debug
- Debug output handler.
Public static functions
- static auto noNewlineAtTheEnd() -> Warning deprecated
- Warning output without newline at the end.
-
static auto noNewlineAtTheEnd(std::
ostream* output) -> Warning deprecated - Warning output without newline at the end.
-
static void setOutput(std::
ostream* output) deprecated - Set output for instances in this scope.
-
static auto output() -> std::
ostream* - Current warning output stream.
- static auto isTty() -> bool
- Whether current warning output is a TTY.
Constructors, destructors, conversion operators
Public functions
Function documentation
static Warning Corrade:: Utility:: Warning:: noNewlineAtTheEnd()
Warning output without newline at the end.
static Warning Corrade:: Utility:: Warning:: noNewlineAtTheEnd(std:: ostream* output)
Warning output without newline at the end.
static void Corrade:: Utility:: Warning:: setOutput(std:: ostream* output)
Set output for instances in this scope.
static std:: ostream* Corrade:: Utility:: Warning:: output()
Current warning output stream.
Warning output constructed with the Warning(Flags) constructor will be using this output stream.
static bool Corrade:: Utility:: Warning:: isTty()
Whether current warning output is a TTY.
Calls isTty(std::
Corrade:: Utility:: Warning:: Warning(std:: ostream* output,
Flags flags = {}) explicit
Constructor.
Parameters | |
---|---|
output | Stream where to put warning output. If set to nullptr , no warning output will be written anywhere. |
flags | Output flags |
All new instances created using the default Warning() constructor during lifetime of this instance will inherit the output set in output
.
Corrade:: Utility:: Warning:: ~Warning()
Destructor.
Resets the output redirection back to the output of enclosing scope. If there was any output, adds newline at the end. Also resets output color modifier, if there was any.