|
|
|
coordinateSystems.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 Foam::coordinateSystems 00027 00028 Description 00029 Provides a centralized coordinateSystem collection. 00030 00031 Note 00032 Mixing normal constructors and the coordinateSystems::New constructor 00033 may yield unexpected results. 00034 00035 SourceFiles 00036 coordinateSystems.C 00037 00038 \*---------------------------------------------------------------------------*/ 00039 #ifndef coordinateSystems_H 00040 #define coordinateSystems_H 00041 00042 #include "coordinateSystem.H" 00043 #include "IOPtrList.H" 00044 00045 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00046 00047 namespace Foam 00048 { 00049 00050 /*---------------------------------------------------------------------------*\ 00051 Class coordinateSystems Declaration 00052 \*---------------------------------------------------------------------------*/ 00053 00054 class coordinateSystems 00055 : 00056 public IOPtrList<coordinateSystem> 00057 { 00058 00059 // Private Member Functions 00060 00061 //- Disallow default bitwise copy construct 00062 coordinateSystems(const coordinateSystems&); 00063 00064 //- Disallow default bitwise assignment 00065 void operator=(const coordinateSystems&); 00066 00067 public: 00068 00069 //- Runtime type information 00070 TypeName("coordinateSystems"); 00071 00072 // Constructors 00073 00074 //- Read construct from IOobject 00075 explicit coordinateSystems(const IOobject&); 00076 00077 //- Construct from IOobject and a PtrList 00078 coordinateSystems 00079 ( 00080 const IOobject&, 00081 const PtrList<coordinateSystem>& 00082 ); 00083 00084 //- Construct from IOobject and transferring the PtrList contents 00085 coordinateSystems 00086 ( 00087 const IOobject&, 00088 const Xfer<PtrList<coordinateSystem> >& 00089 ); 00090 00091 // Selectors 00092 00093 //- Return previously registered or read construct from "constant" 00094 static const coordinateSystems& New(const objectRegistry&); 00095 00096 // Member Functions 00097 00098 //- Find and return index for a given keyword, returns -1 if not found 00099 label find(const word& key) const; 00100 00101 //- Search for given keyword 00102 bool found(const word& keyword) const; 00103 00104 //- Return the table of contents (list of all keywords) 00105 wordList toc() const; 00106 00107 //- write data 00108 bool writeData(Ostream&, bool subDict=true) const; 00109 }; 00110 00111 00112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00113 00114 } // End namespace Foam 00115 00116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00117 00118 #endif 00119 00120 // ************************************************************************* // |