Jpp
18.2.1
the software that should make you happy
|
This class can be used to temporarily redirect one output (input) stream to another output (input) stream. More...
#include <JRedirectStream.hh>
Public Member Functions | |
JRedirectStream (std::ostream &from, std::ostream &to) | |
Constructor. More... | |
JRedirectStream (std::istream &from, std::istream &to) | |
Constructor. More... | |
~JRedirectStream () | |
Destructor. More... | |
virtual bool | getStatus () const override |
Get status of object. More... | |
operator bool () const | |
Type conversion operator. More... | |
bool | operator! () const |
Negated status of this object. More... | |
Private Member Functions | |
JRedirectStream (const JRedirectStream &) | |
JRedirectStream (JRedirectStream &&) | |
JRedirectStream & | operator= (const JRedirectStream &) |
JRedirectStream & | operator= (JRedirectStream &&) |
Private Attributes | |
std::ios & | ios |
std::streambuf * | p |
This class can be used to temporarily redirect one output (input) stream to another output (input) stream.
The destructor restores the internal buffer of the first output (input) stream.
Definition at line 24 of file JRedirectStream.hh.
|
inline |
Constructor.
The output stream from is redirected to output stream to.
from | output stream |
to | output stream |
Definition at line 35 of file JRedirectStream.hh.
|
inline |
Constructor.
The input stream from is redirected to input stream to.
from | input stream |
to | input stream |
Definition at line 52 of file JRedirectStream.hh.
|
inline |
|
private |
|
private |
|
inlineoverridevirtual |
Get status of object.
Implements JLANG::JAbstractObjectStatus.
Definition at line 77 of file JRedirectStream.hh.
|
private |
|
private |
|
inlineinherited |
Type conversion operator.
Definition at line 33 of file JAbstractObjectStatus.hh.
|
inlineinherited |
Negated status of this object.
Definition at line 44 of file JAbstractObjectStatus.hh.
|
private |
Definition at line 83 of file JRedirectStream.hh.
|
private |
Definition at line 84 of file JRedirectStream.hh.