Jpp
15.0.0
the software that should make you happy
|
This class can be used to temporarily exchange the states between streams. More...
#include <JStreamState.hh>
Public Member Functions | |
JStreamState (std::ostream &from, std::ostream &to) | |
Constructor. More... | |
JStreamState (std::istream &from, std::istream &to) | |
Constructor. More... | |
~JStreamState () | |
Destructor. More... | |
Private Attributes | |
std::ios & | __from |
std::ios & | __to |
This class can be used to temporarily exchange the states between streams.
The constructor transfers the state from the first stream to the second stream and the destructor transfers back the state from the second stream to the first stream.
Definition at line 23 of file JStreamState.hh.
|
inline |
Constructor.
The stream state of from
is transfered to stream state of to
.
from | output stream |
to | output stream |
Definition at line 32 of file JStreamState.hh.
|
inline |
Constructor.
The stream state of from
is transfered to stream state of to
.
from | input stream |
to | input stream |
Definition at line 48 of file JStreamState.hh.
|
inline |
|
private |
Definition at line 67 of file JStreamState.hh.
|
private |
Definition at line 68 of file JStreamState.hh.