1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::writeRegisteredObject
29 Takes over the writing of registered IO objects
32 writeRegisteredObject.C
33 IOwriteRegisteredObject.H
35 \*---------------------------------------------------------------------------*/
37 #ifndef writeRegisteredObject_H
38 #define writeRegisteredObject_H
40 #include "pointFieldFwd.H"
42 #include "runTimeSelectionTables.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 // Forward declaration of classes
54 /*---------------------------------------------------------------------------*\
55 Class writeRegisteredObject Declaration
56 \*---------------------------------------------------------------------------*/
58 class writeRegisteredObject
64 //- Name of this set of writeRegisteredObject
67 const objectRegistry& obr_;
73 // Read from dictionary
75 //- Names of objects to control
76 wordList objectNames_;
79 // Private Member Functions
82 //- Disallow default bitwise copy construct
83 writeRegisteredObject(const writeRegisteredObject&);
85 //- Disallow default bitwise assignment
86 void operator=(const writeRegisteredObject&);
91 //- Runtime type information
92 TypeName("writeRegisteredObject");
97 //- Construct for given objectRegistry and dictionary.
98 // Allow the possibility to load fields from files
102 const objectRegistry&,
104 const bool loadFromFiles = false
109 virtual ~writeRegisteredObject();
114 //- Return name of the writeRegisteredObject
115 virtual const word& name() const
120 //- Read the writeRegisteredObject data
121 virtual void read(const dictionary&);
123 //- Execute, currently does nothing
124 virtual void execute();
126 //- Execute at the final time-loop, currently does nothing
129 //- Write the writeRegisteredObject
130 virtual void write();
132 //- Update for changes of mesh
133 virtual void updateMesh(const mapPolyMesh&)
136 //- Update for changes of mesh
137 virtual void movePoints(const pointField&)
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 } // End namespace Foam
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 // ************************************************************************* //