fvExprDriverWriter.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-2018 Bernhard Gschaider
9 Copyright (C) 2019-2021 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
27Class
28 Foam::expressions::fvExprDriverWriter
29
30Description
31 Registered input/output for an expressions::fvExprDriver
32
33SourceFiles
34 fvExprDriverWriter.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef expressions_fvExprDriverWriter_H
39#define expressions_fvExprDriverWriter_H
40
41#include "fvExprDriver.H"
42#include "regIOobject.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48namespace expressions
49{
50
51/*---------------------------------------------------------------------------*\
52 Class fvExprDriverWriter Declaration
53\*---------------------------------------------------------------------------*/
56:
57 public regIOobject
58{
59 // Private Data
60
61 //- The driver to read/write
62 fvExprDriver& driver_;
63
64
65 // Private Member Functions
66
67 //- No default construct
68 fvExprDriverWriter() = delete;
69
70 //- No copy construct
72
73 //- No copy assignment
74 void operator=(const fvExprDriverWriter&) = delete;
75
76
77public:
78
79 //- Runtime type information
80 TypeNameNoDebug("fvExprDriverWriter");
81
82
83 // Constructors
84
85 //- Construct for named driver
87
88
89 //- Destructor
90 virtual ~fvExprDriverWriter() = default;
91
92
93 // Member Functions
94
95 virtual bool readData(Istream& is);
96 virtual bool writeData(Ostream& os) const;
97};
98
99
100// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101
102} // End namespace expressions
103} // End namespace Foam
104
105// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106
107#endif
108
109// ************************************************************************* //
const word & name() const noexcept
Return the object name.
Definition: IOobjectI.H:65
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:64
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
Registered input/output for an expressions::fvExprDriver.
virtual bool writeData(Ostream &os) const
Pure virtual writeData function.
TypeNameNoDebug("fvExprDriverWriter")
Runtime type information.
virtual bool readData(Istream &is)
Virtual readData function.
virtual ~fvExprDriverWriter()=default
Destructor.
Base driver for parsing value expressions associated with an fvMesh.
Definition: fvExprDriver.H:139
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:76
A class for handling words, derived from Foam::string.
Definition: word.H:68
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
#define TypeNameNoDebug(TypeNameString)
Declare a ClassNameNoDebug() with extra virtual type info.
Definition: typeInfo.H:68