Project 3 - Currency Type
Public Member Functions | List of all members
ioflags Class Reference

#include <ioflags.hpp>

Public Member Functions

 ioflags (std::basic_ios< char > &stream)
 
 ~ioflags ()
 Restore the formatting flags.
 
 ioflags (ioflags const &)=delete
 
ioflagsoperator= (ioflags const &)=delete
 

Detailed Description

Save and restore I/O stream flags. When a function needs to temporarily alter an I/O stream flags, simply define an object of type ioflags. Set whatever flags you want. When the block exits or function returns, the original flags are restored.

Definition at line 15 of file ioflags.hpp.

Constructor & Destructor Documentation

ioflags::ioflags ( std::basic_ios< char > &  stream)
inline

Save the formatting flags from stream.

Parameters
streamThe stream that will have its flags modified and restored.

Definition at line 20 of file ioflags.hpp.


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