OpenFOAM logo
Open Source CFD Toolkit

ITstream Class Reference

Inheritance diagram for ITstream:

Inheritance graph
[legend]
Collaboration diagram for ITstream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ITstream (const string &name, const tokenList &tokens, streamFormat format=ASCII, versionNumber version=currentVersion)
 Construct from components.
 ITstream (const ITstream &its)
 Construct as copy.
const fileNamename () const
 Return the name of the stream.
fileNamename ()
 Return non-const access to the name of the stream.
label tokenIndex () const
 Return the current token index.
label nRemainingTokens () const
 Return the number of remaining tokens.
ios_base::fmtflags flags () const
 Return flags of output stream.
Istreamread (token &)
 Return next token from stream.
Istreamread (char &)
 Read a character.
Istreamread (word &)
 Read a word.
Istreamread (string &)
Istreamread (label &)
 Read a label.
Istreamread (floatScalar &)
 Read a floatScalar.
Istreamread (doubleScalar &)
 Read a doubleScalar.
Istreamread (char *, std::streamsize)
 Read binary block.
Istreamrewind ()
 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.

Constructor & Destructor Documentation

ITstream const string name,
const tokenList tokens,
streamFormat  format = ASCII,
versionNumber  version = currentVersion
[inline]
 

Construct from components.

Definition at line 79 of file ITstream.H.

ITstream const ITstream its  )  [inline]
 

Construct as copy.

Definition at line 97 of file ITstream.H.


Member Function Documentation

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

Set flags of stream.

Definition at line 177 of file ITstream.H.

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

Return flags of output stream.

Implements IOstream.

Definition at line 138 of file ITstream.H.

fileName& name  )  [inline, virtual]
 

Return non-const access to the name of the stream.

Reimplemented from IOstream.

Reimplemented in primitiveEntry.

Definition at line 120 of file ITstream.H.

const fileName& name  )  const [inline, virtual]
 

Return the name of the stream.

Reimplemented from IOstream.

Reimplemented in primitiveEntry.

Definition at line 114 of file ITstream.H.

label nRemainingTokens  )  const [inline]
 

Return the number of remaining tokens.

Definition at line 132 of file ITstream.H.

void print Ostream  )  const [virtual]
 

Print description of IOstream to Ostream.

Reimplemented from IOstream.

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

Read binary block.

Implements Istream.

Istream& read doubleScalar  )  [virtual]
 

Read a doubleScalar.

Implements Istream.

Istream& read floatScalar  )  [virtual]
 

Read a floatScalar.

Implements Istream.

Istream& read label  )  [virtual]
 

Read a label.

Implements Istream.

Istream& read string  )  [virtual]
 

Implements Istream.

Istream& read word  )  [virtual]
 

Read a word.

Implements Istream.

Istream& read char &   )  [virtual]
 

Read a character.

Implements Istream.

Istream& read token  )  [virtual]
 

Return next token from stream.

Implements Istream.

Istream& rewind  )  [virtual]
 

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

Implements Istream.

label tokenIndex  )  const [inline]
 

Return the current token index.

Definition at line 126 of file ITstream.H.

References Foam::size().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org