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

Ostream.H File Reference


Detailed Description

View Ostream.H
License
This file is part of OpenFOAM.

OpenFOAM is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Description
An Ostream is an abstract base class for all output systems;
be they streams, files, token lists etc.  The basic operations
are construct, close, read token, read primitive and read binary
block.  In addition version control and line number counting is
incorporated.  Usually one would use the read primitive member
functions,  but if one were reading a stream on unknown data
sequence one can read token by token, and then analyse.

Definition in file Ostream.H.

Go to the source code of this file.


Namespaces

namespace  Foam

Classes

class  Ostream

Typedefs

typedef Ostream &(*) OstreamManip (Ostream &)

Functions

Ostream & operator<< (Ostream &os, OstreamManip f)
 operator<< handling for manipulators without arguments
Ostream & operator<< (Ostream &os, IOstreamManip f)
 operator<< handling for manipulators without arguments
Ostream & indent (Ostream &os)
 Indent stream.
Ostream & incrIndent (Ostream &os)
 Increment the indent level.
Ostream & decrIndent (Ostream &os)
 Decrement the indent level.
Ostream & flush (Ostream &os)
 Flush stream.
Ostream & endl (Ostream &os)
 Add '
' and flush stream.

Variables

static const char tab = '\t'
static const char nl = '\n'
Copyright © 2000-2007 OpenCFD Ltd