dune-common  2.3.0
ios_state.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 #ifndef DUNE_COMMON_IOS_STATE_HH
4 #define DUNE_COMMON_IOS_STATE_HH
5 
6 #include <ios>
7 
8 namespace Dune {
32  {
33  public:
35  typedef std::ios_base state_type;
36 
47 
52 
59  void restore();
60 
61  private:
63  state_type& ios;
65  state_type::fmtflags oldflags;
67  std::streamsize oldprec;
69  std::streamsize oldwidth;
70  };
71 
73 }
74 
75 #endif // DUNE_COMMON_IOS_STATE_HH