#include <ioflags.hpp>
Public Member Functions | |
ioflags (std::basic_ios< char > &stream) | |
~ioflags () | |
Restore the formatting flags. | |
Private Attributes | |
std::basic_ios< char > & | stream_ |
std::ios_base::fmtflags | flags_ |
ioflags
. Set whatever flags you want. When the block exits or function returns, the original flags are restored.
Definition at line 15 of file ioflags.hpp.
ioflags::ioflags | ( | std::basic_ios< char > & | stream | ) | [inline] |
Save the formatting flags from stream
.
stream | The stream that will have its flags modified and restored. |
Definition at line 20 of file ioflags.hpp.
ioflags::~ioflags | ( | ) | [inline] |
std::basic_ios<char>& ioflags::stream_ [private] |
std::ios_base::fmtflags ioflags::flags_ [private] |