ITK
4.9.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 Member Functions | |
void | operator= (const StdStreamStateSave &) ITK_DELETE_FUNCTION |
StdStreamStateSave (const StdStreamStateSave &) ITK_DELETE_FUNCTION | |
Private Attributes | |
std::ios & | m_Ios |
std::ios | m_State |
|
inlineexplicit |
Definition at line 50 of file itkStdStreamStateSave.h.
References m_State.
|
inline |
Definition at line 56 of file itkStdStreamStateSave.h.
|
private |
|
private |
|
private |
Definition at line 65 of file itkStdStreamStateSave.h.
Referenced by ~StdStreamStateSave().
|
private |
Definition at line 66 of file itkStdStreamStateSave.h.
Referenced by StdStreamStateSave(), and ~StdStreamStateSave().