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

IPstream Class Reference

Inheritance diagram for IPstream:

Inheritance graph
[legend]
Collaboration diagram for IPstream:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 60 of file IPstream.H.


Public Member Functions

 IPstream (const int fromProcNo, const label bufSize=0, streamFormat format=BINARY, versionNumber version=currentVersion)
 Construct given process index to read from and optional buffer size,.
 ~IPstream ()
ios_base::fmtflags flags () const
 Return flags of output stream.
Istream & read (token &)
 Return next token from stream.
Istream & read (char &)
 Read a character.
Istream & read (word &)
 Read a word.
Istream & read (string &)
Istream & read (label &)
 Read a label.
Istream & read (floatScalar &)
 Read a floatScalar.
Istream & read (doubleScalar &)
 Read a doubleScalar.
Istream & read (char *, std::streamsize)
 Read binary block.
Istream & rewind ()
 Rewind and return the stream so that it may be read again.
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 label read (const int fromProcNo, char *buf, const std::streamsize bufSize)
 Read into given buffer from given processor and return the.

Constructor & Destructor Documentation

IPstream ( const int  fromProcNo,
const label  bufSize = 0,
streamFormat  format = BINARY,
versionNumber  version = currentVersion 
)

Construct given process index to read from and optional buffer size,.

read format and IO version

~IPstream (  ) 


Member Function Documentation

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

Return flags of output stream.

Implements IOstream.

Definition at line 110 of file IPstream.H.

static label read ( const int  fromProcNo,
char *  buf,
const std::streamsize  bufSize 
) [static]

Read into given buffer from given processor and return the.

message size

Istream& read ( token &   )  [virtual]

Return next token from stream.

Implements Istream.

Istream& read ( char &   )  [virtual]

Read a character.

Implements Istream.

Istream& read ( word &   )  [virtual]

Read a word.

Implements Istream.

Istream& read ( string &   )  [virtual]

Implements Istream.

Istream& read ( label &   )  [virtual]

Read a label.

Implements Istream.

Istream& read ( floatScalar &   )  [virtual]

Read a floatScalar.

Implements Istream.

Istream& read ( doubleScalar &   )  [virtual]

Read a doubleScalar.

Implements Istream.

Istream& read ( char *  ,
std::streamsize   
) [virtual]

Read binary block.

Implements Istream.

Istream& rewind (  )  [virtual]

Rewind and return the stream so that it may be read again.

Implements Istream.

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

Set flags of stream.

Definition at line 160 of file IPstream.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 file: Copyright © 2000-2007 OpenCFD Ltd