OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

OPstream Class Reference

Inheritance diagram for OPstream:

Inheritance graph
[legend]
Collaboration diagram for OPstream:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 60 of file OPstream.H.


Public Member Functions

 OPstream (const int toProcNo, const label bufSize=0, const bool bufferedTransfer=true, streamFormat format=BINARY, versionNumber version=currentVersion)
 Construct given process index to send to and optional buffer size,.
 ~OPstream ()
ios_base::fmtflags flags () const
 Return flags of output stream.
Ostream & write (const token &)
 Write next token to stream.
Ostream & write (const char)
 Write character.
Ostream & write (const char *)
 Write character string.
Ostream & write (const word &)
 Write word.
Ostream & write (const string &)
 Write string.
Ostream & write (const label)
 Write label.
Ostream & write (const floatScalar)
 Write floatScalar.
Ostream & write (const doubleScalar)
 Write doubleScalar.
Ostream & write (const char *, std::streamsize)
 Write binary block.
void indent ()
 Add indentation characters.
void flush ()
 Flush stream.
void endl ()
 Add '
' and flush stream.
int width () const
 Get width of output field.
int width (const int)
 Set width of output field (and return old width).
int precision () const
 Get precision of output field.
int precision (const int)
 Set precision of output field (and return old precision).
bool bufferedTransfer () const
 Get the data transfer option of the stream.
bool bufferedTransfer (const bool bfrdTransfer)
 Set the buffering option of the stream.
ios_base::fmtflags flags (const ios_base::fmtflags)
 Set flags of stream.
void print (Ostream &) const
 Print description of IOstream to Ostream.

Static Public Member Functions

static bool write (const int toProcNo, const char *buf, const std::streamsize bufSize, const bool bufferedTransfer=true)
 Write given buffer to given processor.

Constructor & Destructor Documentation

OPstream ( const int  toProcNo,
const label  bufSize = 0,
const bool  bufferedTransfer = true,
streamFormat  format = BINARY,
versionNumber  version = currentVersion 
)

Construct given process index to send to and optional buffer size,.

write format and IO version

~OPstream (  ) 


Member Function Documentation

ios_base::fmtflags flags (  )  const [inline, virtual]

Return flags of output stream.

Implements IOstream.

Definition at line 112 of file OPstream.H.

static bool write ( const int  toProcNo,
const char *  buf,
const std::streamsize  bufSize,
const bool  bufferedTransfer = true 
) [static]

Write given buffer to given processor.

Ostream& write ( const token &   )  [virtual]

Write next token to stream.

Implements Ostream.

Ostream& write ( const   char  )  [virtual]

Write character.

Implements Ostream.

Ostream& write ( const char *   )  [virtual]

Write character string.

Implements Ostream.

Ostream& write ( const word &   )  [virtual]

Write word.

Implements Ostream.

Ostream& write ( const string &   )  [virtual]

Write string.

Implements Ostream.

Ostream& write ( const   label  )  [virtual]

Write label.

Implements Ostream.

Ostream& write ( const   floatScalar  )  [virtual]

Write floatScalar.

Implements Ostream.

Ostream& write ( const   doubleScalar  )  [virtual]

Write doubleScalar.

Implements Ostream.

Ostream& write ( const char *  ,
std::streamsize   
) [virtual]

Write binary block.

Implements Ostream.

void indent (  )  [inline, virtual]

Add indentation characters.

Implements Ostream.

Definition at line 157 of file OPstream.H.

void flush (  )  [inline, virtual]

Flush stream.

Implements Ostream.

Definition at line 164 of file OPstream.H.

void endl (  )  [inline, virtual]

Add '
' and flush stream.

Implements Ostream.

Definition at line 168 of file OPstream.H.

int width (  )  const [inline, virtual]

Get width of output field.

Implements Ostream.

Definition at line 172 of file OPstream.H.

int width ( const   int  )  [inline, virtual]

Set width of output field (and return old width).

Implements Ostream.

Definition at line 178 of file OPstream.H.

int precision (  )  const [inline, virtual]

Get precision of output field.

Implements Ostream.

Definition at line 184 of file OPstream.H.

int precision ( const   int  )  [inline, virtual]

Set precision of output field (and return old precision).

Implements Ostream.

Definition at line 190 of file OPstream.H.

bool bufferedTransfer (  )  const [inline]

Get the data transfer option of the stream.

Definition at line 196 of file OPstream.H.

bool bufferedTransfer ( const bool  bfrdTransfer  )  [inline]

Set the buffering option of the stream.

Definition at line 202 of file OPstream.H.

ios_base::fmtflags flags ( const ios_base::fmtflags   )  [inline]

Set flags of stream.

Definition at line 213 of file OPstream.H.

void print ( Ostream &   )  const [virtual]

Print description of IOstream to Ostream.

Reimplemented from IOstream.


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