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