Loading...
Searching...
No Matches
removeRegisteredObject.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) 2013-2016 OpenFOAM Foundation
9 Copyright (C) 2015-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
27Class
28 Foam::functionObjects::removeRegisteredObject
29
30Group
31 grpUtilitiesFunctionObjects
32
33Description
34 Removes registered objects if present in the database.
35
36Usage
37 Minimal example by using \c system/controlDict.functions:
38 \verbatim
39 removeRegisteredObjectFO
40 {
41 // Mandatory entries
42 type removeRegisteredObject;
43 libs (utilityFunctionObjects);
44 objects <wordList>; // (obj1 obj2);
45
46 // Inherited entries
47 ...
48 }
49 \endverbatim
50
51 where the entries mean:
52 \table
53 Property | Description | Type | Reqd | Deflt
54 type | Type name: removeRegisteredObject | word | yes | -
55 libs | Library name: utilityFunctionObjects | word | yes | -
56 objects | Names of objects to control | wordList | yes | -
57 \endtable
58
59 The inherited entries are elaborated in:
60 - \link regionFunctionObject.H \endlink
61
62SourceFiles
63 removeRegisteredObject.C
64
65\*---------------------------------------------------------------------------*/
66
67#ifndef Foam_functionObjects_removeRegisteredObject_H
68#define Foam_functionObjects_removeRegisteredObject_H
69
71#include "wordList.H"
72
73// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
74
75namespace Foam
76{
77namespace functionObjects
78{
79
80/*---------------------------------------------------------------------------*\
81 Class removeRegisteredObject Declaration
82\*---------------------------------------------------------------------------*/
83
85:
87{
88 // Private Data
89
90 //- Names of objects to control
91 wordList objectNames_;
92
93
94 // Private Member Functions
95
96 //- No copy construct
97 removeRegisteredObject(const removeRegisteredObject&) = delete;
98
99 //- No copy assignment
100 void operator=(const removeRegisteredObject&) = delete;
101
102
103public:
104
105 //- Runtime type information
106 TypeName("removeRegisteredObject");
107
108
109 // Constructors
110
111 //- Construct from name, Time and dictionary
112 removeRegisteredObject
113 (
114 const word& name,
115 const Time& runTime,
116 const dictionary& dict
117 );
118
119
120 //- Destructor
121 virtual ~removeRegisteredObject() = default;
122
123
124 // Member Functions
125
126 //- Read the function-object dictionary
127 virtual bool read(const dictionary& dict);
128
129 //- Execute the function-object operations
130 virtual bool execute();
131
132 //- Write the function-object results (no-op)
133 virtual bool write();
134};
135
136
137// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138
139} // End namespace functionObjects
140} // End namespace Foam
141
142// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143
144#endif
145
146// ************************************************************************* //
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition Time.H:75
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
const word & name() const noexcept
Return the name of this functionObject.
Specialization of Foam::functionObject for a region and providing a reference to the region Foam::obj...
regionFunctionObject(const regionFunctionObject &)=delete
No copy construct.
Removes registered objects if present in the database.
virtual ~removeRegisteredObject()=default
Destructor.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
TypeName("removeRegisteredObject")
Runtime type information.
virtual bool execute()
Execute the function-object operations.
virtual bool write()
Write the function-object results (no-op).
A class for handling words, derived from Foam::string.
Definition word.H:66
engineTime & runTime
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
Namespace for OpenFOAM.
List< word > wordList
List of word.
Definition fileName.H:60
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68