Public Member Functions | Private Attributes
vul_ios_state_saver Class Reference

Use RAII to save and restore precision and other state on an iostream. More...

#include <vul_ios_state.h>

List of all members.

Public Member Functions

 vul_ios_state_saver (vcl_ios_base &s)
 ~vul_ios_state_saver ()
void restore ()

Private Attributes

vcl_ios_base & stream_
const vcl_ios_fmtflags flags_
const vcl_streamsize precision_
const vcl_streamsize width_

Detailed Description

Use RAII to save and restore precision and other state on an iostream.

Definition at line 49 of file vul_ios_state.h.


Constructor & Destructor Documentation

vul_ios_state_saver::vul_ios_state_saver ( vcl_ios_base &  s) [inline, explicit]

Definition at line 52 of file vul_ios_state.h.

vul_ios_state_saver::~vul_ios_state_saver ( ) [inline]

Definition at line 58 of file vul_ios_state.h.


Member Function Documentation

void vul_ios_state_saver::restore ( ) [inline]

Definition at line 61 of file vul_ios_state.h.


Member Data Documentation

const vcl_ios_fmtflags vul_ios_state_saver::flags_ [private]

Definition at line 70 of file vul_ios_state.h.

const vcl_streamsize vul_ios_state_saver::precision_ [private]

Definition at line 71 of file vul_ios_state.h.

vcl_ios_base& vul_ios_state_saver::stream_ [private]

Definition at line 69 of file vul_ios_state.h.

const vcl_streamsize vul_ios_state_saver::width_ [private]

Definition at line 72 of file vul_ios_state.h.


The documentation for this class was generated from the following file: