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

ITstream Class Reference

Inheritance diagram for ITstream:

Inheritance graph
[legend]
Collaboration diagram for ITstream:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 59 of file ITstream.H.


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 fileName & name () const
 Return the name of the stream.
fileName & name ()
 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.
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.

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.

References IOstream::setGood(), and IOstream::setOpened().

Here is the call graph for this function:

ITstream ( const ITstream &  its  )  [inline]

Construct as copy.

Definition at line 97 of file ITstream.H.


Member Function Documentation

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.

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.

label tokenIndex (  )  const [inline]

Return the current token index.

Definition at line 126 of file ITstream.H.

References UList::size().

Here is the call graph for this function:

label nRemainingTokens (  )  const [inline]

Return the number of remaining tokens.

Definition at line 132 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.

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 177 of file ITstream.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