Go to the documentation of this file.
35 #ifndef IStringStream_H
36 #define IStringStream_H
69 *(new std::istringstream(buffer)),
70 "IStringStream.sourceFile",
87 *(new std::istringstream(buffer)),
88 "IStringStream.sourceFile",
98 delete &
dynamic_cast<std::istringstream&
>(
stdStream());
109 return dynamic_cast<const std::istringstream&
>
streamFormat format() const
Return current stream format.
virtual istream & stdStream()
Access to underlying std::istream.
static const versionNumber currentVersion
Current version number.
void print(Ostream &) const
Print description to Ostream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Istream & operator()() const
Return a non-const reference to const Istream.
ISstream(istream &is, const string &name, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Construct as wrapper around istream.
Input from memory buffer stream.
versionNumber version() const
Return the stream version.
IStringStream(const string &buffer, streamFormat format=ASCII, versionNumber version=currentVersion)
Construct from string.
~IStringStream()
Destructor.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
string str() const
Return the string.
streamFormat
Enumeration for the format of data in the stream.