class which save a stream state and restore it at dtor time More...
#include <stream_util.h>
Public Member Functions | |
io_state (std::ios &stream) | |
~io_state () | |
restore the stream state | |
Private Attributes | |
std::ios & | stream |
std::ios::fmtflags | format |
std::streamsize | precision |
char | fill |
class which save a stream state and restore it at dtor time
Definition at line 18 of file stream_util.h.
io_state::io_state | ( | std::ios & | stream | ) |
save the stream flags, precision and fill char.
width is restored at end of expression, there is no need to save it. tie and locale are not saved currently
error state shouldn't be saved.
io_state::~io_state | ( | ) |
char io_state::fill [private] |
Definition at line 36 of file stream_util.h.
Referenced by ~io_state().
std::ios::fmtflags io_state::format [private] |
Definition at line 34 of file stream_util.h.
Referenced by ~io_state().
std::streamsize io_state::precision [private] |
Definition at line 35 of file stream_util.h.
Referenced by ~io_state().
std::ios& io_state::stream [private] |
Definition at line 32 of file stream_util.h.
Referenced by ~io_state().