FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

IStringStream Class Reference

Input from memory buffer stream. More...

#include <OpenFOAM/IStringStream.H>


Detailed Description

Input from memory buffer stream.

Source files

Definition at line 50 of file IStringStream.H.

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

Constructor & Destructor Documentation

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().


Member Function Documentation

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.


The documentation for this class was generated from the following files: