IOstreams.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011 OpenFOAM Foundation
9 Copyright (C) 2020 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27InClass
28 Foam::IOstream
29
30Description
31 Useful combination of include files which define Sin, Sout and Serr and
32 the use of IO streams generally.
33
34\*---------------------------------------------------------------------------*/
35
36#ifndef IOstreams_H
37#define IOstreams_H
38
39// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40
41#include "ISstream.H"
42#include "prefixOSstream.H"
43#include "token.H"
44#include "char.H"
45#include "int.H"
46#include "uint.H"
47
48// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49// Global predefined streams for standard input, output
50
51namespace Foam
52{
53 //- ISstream wrapped stdin (std::cin)
54 extern ISstream Sin;
55
56 //- OSstream wrapped stdout (std::cout)
57 extern OSstream Sout;
58
59 //- OSstream wrapped stderr (std::cerr)
60 extern OSstream Serr;
61
62 //- OSstream wrapped stdout (std::cout) with parallel prefix
63 extern prefixOSstream Pout;
64
65 //- OSstream wrapped stderr (std::cerr) with parallel prefix
66 extern prefixOSstream Perr;
67}
68
69// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
70
71#endif
72
73// ************************************************************************* //
A character and a pointer to a character string.
System signed integer.
Namespace for OpenFOAM.
prefixOSstream Perr
OSstream wrapped stderr (std::cerr) with parallel prefix.
OSstream Sout
OSstream wrapped stdout (std::cout)
OSstream Serr
OSstream wrapped stderr (std::cerr)
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
ISstream Sin
ISstream wrapped stdin (std::cin)
System unsigned integer.