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

OStringStream Class Reference

Output to memory buffer stream. More...

Inheritance diagram for OStringStream:
Collaboration diagram for OStringStream:

List of all members.


Public Member Functions

 OStringStream (streamFormat format=ASCII, versionNumber version=currentVersion)
 Construct and set stream status.
 OStringStream (const OStringStream &oss)
 Construct as copy.
 ~OStringStream ()
string str () const
 Return the string.
void rewind ()
 Clear the OStringStream.
void print (Ostream &) const
 Print description to Ostream.

Detailed Description

Output to memory buffer stream.

Source files

Definition at line 45 of file OStringStream.H.


Constructor & Destructor Documentation

OStringStream ( streamFormat  format = ASCII,
versionNumber  version = currentVersion 
) [inline]

Construct and set stream status.

Definition at line 56 of file OStringStream.H.

OStringStream ( const OStringStream oss  )  [inline]

Construct as copy.

Definition at line 71 of file OStringStream.H.

~OStringStream (  )  [inline]

Definition at line 93 of file OStringStream.H.


Member Function Documentation

string str (  )  const [inline]

Return the string.

Definition at line 104 of file OStringStream.H.

References OSstream::stream().

Referenced by Foam::operator>>(), and primitiveEntry::primitiveEntry().

Here is the call graph for this function:

Here is the caller graph for this function:

void rewind (  )  [inline]

Clear the OStringStream.

Definition at line 113 of file OStringStream.H.

void print ( Ostream os  )  const [virtual]

Print description to Ostream.

Reimplemented from OSstream.

Definition at line 36 of file StringStreamsPrint.C.

References Foam::endl(), ISstream::name(), IStringStream::print(), and IStringStream::str().

Here is the call graph for this function:


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