Base Framework
|
Push and pop default context of format output stream. More...
#include <base/string/FormatOutputStream.h>
Inherits Object.
Public Member Functions | |
PushContext (FormatOutputStream &_stream) noexcept | |
const Context & | getContext () const noexcept |
~PushContext () noexcept | |
Push and pop default context of format output stream.
The class is used to store and restore the default context of a format output stream using the stack.
Example:
|
noexcept |
Stores the current default context onto the stack and makes the current context the new default context of the stream object.
|
noexcept |
Restores the default context of the format output stream. The current context of the stream object is reset to the default context.