Saves some status of the specified stream object, and restores it. More...
#include <BinaryDumpUtils.h>
Public Member Functions | |
FormatFlagsGuard (IOS &ios) | |
~FormatFlagsGuard () | |
void | restore () |
Private Attributes | |
IOS & | ios |
IOS::fmtflags const | flags |
IOS::char_type const | fill |
Saves some status of the specified stream object, and restores it.
IOS | type of stream object, with flag interface like std::ostream |
This object uses the RIIA pattern to read some status from a stream, and then restore it on the destruction of the object itself. Example:
Saved settings currently include:
std::ios_base::flags()
)std::basic_ios::fill()
) Definition at line 206 of file BinaryDumpUtils.h.
|
inline |
Definition at line 360 of file BinaryDumpUtils.h.
|
inline |
Definition at line 363 of file BinaryDumpUtils.h.
|
inline |
Definition at line 365 of file BinaryDumpUtils.h.
|
private |
Definition at line 357 of file BinaryDumpUtils.h.
|
private |
Definition at line 356 of file BinaryDumpUtils.h.
|
private |
Definition at line 353 of file BinaryDumpUtils.h.