1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 Foam::coordinateSystems
28 Provides a centralized coordinateSystem collection.
31 Mixing normal constructors and the coordinateSystems::New constructor
32 may yield unexpected results.
37 \*---------------------------------------------------------------------------*/
38 #ifndef coordinateSystems_H
39 #define coordinateSystems_H
41 #include "coordinateSystem.H"
42 #include "IOPtrList.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 /*---------------------------------------------------------------------------*\
50 Class coordinateSystems Declaration
51 \*---------------------------------------------------------------------------*/
53 class coordinateSystems
55 public IOPtrList<coordinateSystem>
58 // Private Member Functions
60 //- Disallow default bitwise copy construct
61 coordinateSystems(const coordinateSystems&);
63 //- Disallow default bitwise assignment
64 void operator=(const coordinateSystems&);
68 //- Runtime type information
69 TypeName("coordinateSystems");
73 //- Read construct from IOobject
74 explicit coordinateSystems(const IOobject&);
76 //- Construct from IOobject and a PtrList
80 const PtrList<coordinateSystem>&
83 //- Construct from IOobject and transferring the PtrList contents
87 const Xfer<PtrList<coordinateSystem> >&
92 //- Return previously registered or read construct from "constant"
93 static const coordinateSystems& New(const objectRegistry&);
97 //- Find and return index for a given keyword, returns -1 if not found
98 label find(const word& key) const;
100 //- Search for given keyword
101 bool found(const word& keyword) const;
103 //- Return the table of contents (list of all keywords)
104 wordList toc() const;
107 bool writeData(Ostream&, bool subDict=true) const;
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace Foam
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 // ************************************************************************* //