Input from memory buffer stream. More...
#include <OpenFOAM/IStringStream.H>
Input from memory buffer stream.
Definition at line 50 of file IStringStream.H.
Public Member Functions | |
IStringStream (const string &buffer, streamFormat format=ASCII, versionNumber version=currentVersion) | |
Construct from string.
| |
IStringStream (const char *buffer, streamFormat format=ASCII, versionNumber version=currentVersion) | |
Construct from char*.
| |
~IStringStream () | |
string | str () const |
Return the string.
| |
void | print (Ostream &) const |
Print description to Ostream.
| |
Istream & | operator() () const |
Return a non-const reference to const Istream.
|
IStringStream | ( | const string & | buffer, |
streamFormat | format = ASCII ,
|
||
versionNumber | version = currentVersion
|
||
) | [inline]
|
Construct from string.
Definition at line 61 of file IStringStream.H.
IStringStream | ( | const char * | buffer, |
streamFormat | format = ASCII ,
|
||
versionNumber | version = currentVersion
|
||
) | [inline]
|
Construct from char*.
Definition at line 79 of file IStringStream.H.
~IStringStream | ( | ) | [inline]
|
Definition at line 97 of file IStringStream.H.
References ISstream::stream().
string str | ( | ) | const [inline]
|
Return the string.
Definition at line 108 of file IStringStream.H.
References ISstream::stream().
Referenced by IStringStream::print().
void print | ( | Ostream & | os ) | const [virtual]
|
Print description to Ostream.
Reimplemented from ISstream.
Definition at line 34 of file StringStreamsPrint.C.
References Foam::endl(), ISstream::name(), and IStringStream::str().
Istream& operator() | ( | ) | const [inline]
|
Return a non-const reference to const Istream.
Needed for read-constructors where the stream argument is temporary: e.g. thing thisThing(IFstream("thingFileName")());
Reimplemented from Istream.
Definition at line 125 of file IStringStream.H.