Jpp
master_rocky
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 Member Functions | |
JStreamState (const JStreamState &) | |
JStreamState (JStreamState &&) | |
JStreamState & | operator= (const JStreamState &) |
JStreamState & | operator= (JStreamState &&) |
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 |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 67 of file JStreamState.hh.
|
private |
Definition at line 68 of file JStreamState.hh.