ITK
5.2.0
Insight Toolkit
|
#include <itkStdStreamStateSave.h>
Public Member Functions | |
StdStreamStateSave (std::ios &stream) | |
~StdStreamStateSave () | |
Private Attributes | |
std::ios & | m_Ios |
std::ios | m_State |
Save a stream's format state and restore it upon destruction.
An RAII class to provide an exception safe mechanism to restore the format state of a stream. The class holds a resource (the stream's format state) and resets the resource to a default state upon destruction.
Typical usage:
Definition at line 47 of file itkStdStreamStateSave.h.
|
inlineexplicit |
Definition at line 52 of file itkStdStreamStateSave.h.
References m_State.
|
inline |
Definition at line 58 of file itkStdStreamStateSave.h.
|
private |
Definition at line 61 of file itkStdStreamStateSave.h.
Referenced by ~StdStreamStateSave().
|
private |
Definition at line 62 of file itkStdStreamStateSave.h.
Referenced by StdStreamStateSave(), and ~StdStreamStateSave().