Jpp
master_rocky-43-ge265d140c
the software that should make you happy
|
This class can be used to temporarily redirect an input stream to an input string. More...
#include <JRedirectString.hh>
Public Member Functions | |
JRedirectString (std::istream &is, const std::string &buffer) | |
Constructor. More... | |
~JRedirectString () | |
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 | |
JRedirectString (const JRedirectString &) | |
JRedirectString (JRedirectString &&) | |
JRedirectString & | operator= (const JRedirectString &) |
JRedirectString & | operator= (JRedirectString &&) |
Private Attributes | |
std::ios & | ios |
std::streambuf * | p |
This class can be used to temporarily redirect an input stream to an input string.
The destructor restores the internal buffer of the input stream.
Definition at line 26 of file JRedirectString.hh.
|
inline |
Constructor.
The input stream is redirected to the given input string.
is | input stream |
buffer | input string |
Definition at line 37 of file JRedirectString.hh.
|
inline |
Destructor.
Restore internal buffer and delete temporary buffer.
Definition at line 48 of file JRedirectString.hh.
|
private |
|
private |
|
inlineoverridevirtual |
Get status of object.
Implements JLANG::JAbstractObjectStatus.
Definition at line 59 of file JRedirectString.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 65 of file JRedirectString.hh.
|
private |
Definition at line 66 of file JRedirectString.hh.