ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkStdStreamStateSave.h>
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.
Public Member Functions | |
StdStreamStateSave (std::ios &stream) | |
~StdStreamStateSave () | |
Private Attributes | |
std::ios & | m_Ios |
std::ios | m_State |
|
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 64 of file itkStdStreamStateSave.h.
Referenced by ~StdStreamStateSave().
|
private |
Definition at line 65 of file itkStdStreamStateSave.h.
Referenced by StdStreamStateSave(), and ~StdStreamStateSave().