1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
28 Abstract base class for writing Ensight data
33 \*---------------------------------------------------------------------------*/
35 #ifndef ensightStream_H
36 #define ensightStream_H
39 #include "scalarField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class ensightStream Declaration
49 \*---------------------------------------------------------------------------*/
57 // Private Member Functions
59 //- Disallow default bitwise copy construct
60 ensightStream(const ensightStream&);
62 //- Disallow default bitwise assignment
63 void operator=(const ensightStream&);
70 //- Construct from components
71 ensightStream(const fileName& f)
78 virtual ~ensightStream()
84 const fileName& name() const
89 virtual bool ascii() const = 0;
91 virtual void write(const char*) = 0;
93 virtual void write(const int) = 0;
95 virtual void write(const scalarField&) = 0;
97 virtual void write(const List<int>&) = 0;
99 virtual void writePartHeader(const label) = 0;
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 } // End namespace Foam
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 // ************************************************************************* //