surfaceRegistry.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) 2016 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
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 
27 Class
28  Foam::surfaceRegistry
29 
30 Description
31  Wraps the normal objectRegistry with a local instance for %surfaces.
32 
33 SourceFiles
34  surfaceRegistry.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef Foam_surfaceRegistry_H
39 #define Foam_surfaceRegistry_H
40 
41 #include "objectRegistry.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class surfaceRegistry Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 class surfaceRegistry
53 :
54  public objectRegistry
55 {
56 public:
57 
58  // Static Data Members
59 
60  //- The prefix to local: %surfaces
61  static const word prefix;
62 
63  //- The default surface name: %default
64  static word defaultName;
65 
66 
67  //- Runtime type information
68  TypeName("surfaceRegistry");
69 
70 
71  // Generated Methods
72 
73  //- No copy construct
74  surfaceRegistry(const surfaceRegistry&) = delete;
75 
76  //- No copy assignment
77  surfaceRegistry& operator=(const surfaceRegistry&) = delete;
78 
79 
80  // Constructors
81 
82  //- Construct for given objectRegistry. Uses default surface name
83  explicit surfaceRegistry(const objectRegistry& obr);
84 
85  //- Construct for given objectRegistry and named surface
86  surfaceRegistry(const objectRegistry& obr, const word& surfName);
87 
88 
89  //- Destructor
90  virtual ~surfaceRegistry() = default;
91 };
92 
93 
94 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95 
96 } // End namespace Foam
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 #endif
101 
102 // ************************************************************************* //
static const word prefix
The prefix to local: surfaces.
virtual ~surfaceRegistry()=default
Destructor.
Wraps the normal objectRegistry with a local instance for surfaces.
TypeName("surfaceRegistry")
Runtime type information.
surfaceRegistry & operator=(const surfaceRegistry &)=delete
No copy assignment.
A class for handling words, derived from Foam::string.
Definition: word.H:63
surfaceRegistry(const surfaceRegistry &)=delete
No copy construct.
static word defaultName
The default surface name: default.
Registry of regIOobjects.
Namespace for OpenFOAM.