OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

IStringStream Class Reference

Input from memory buffer stream. More...

Inheritance diagram for IStringStream:
Collaboration diagram for IStringStream:

List of all members.


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.
Istreamoperator() () const
 Return a non-const reference to const Istream.

Detailed Description

Input from memory buffer stream.

Source files

Definition at line 45 of file IStringStream.H.


Constructor & Destructor Documentation

IStringStream ( const string buffer,
streamFormat  format = ASCII,
versionNumber  version = currentVersion 
) [inline]

Construct from string.

Definition at line 56 of file IStringStream.H.

IStringStream ( const char *  buffer,
streamFormat  format = ASCII,
versionNumber  version = currentVersion 
) [inline]

Construct from char*.

Definition at line 74 of file IStringStream.H.

~IStringStream (  )  [inline]

Definition at line 92 of file IStringStream.H.


Member Function Documentation

string str (  )  const [inline]

Return the string.

Definition at line 103 of file IStringStream.H.

References ISstream::stream().

Referenced by OStringStream::print().

Here is the call graph for this function:

Here is the caller graph for this function:

void print ( Ostream os  )  const [virtual]

Print description to Ostream.

Reimplemented from ISstream.

Definition at line 27 of file StringStreamsPrint.C.

Referenced by OStringStream::print().

Here is the caller graph for this function:

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 122 of file IStringStream.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd