|
|
|
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-2007 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 coordinateSystems 00027 00028 Description 00029 Container class for a set of coordinateSystems with the 00030 coordinateSystem member functions implemented to loop over 00031 the functions for each coordinateSystem. 00032 00033 SourceFiles 00034 coordinateSystems.C 00035 00036 \*---------------------------------------------------------------------------*/ 00037 00038 #ifndef coordinateSystems_H 00039 #define coordinateSystems_H 00040 00041 #include "coordinateSystem.H" 00042 #include "PtrList.H" 00043 00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00045 00046 namespace Foam 00047 { 00048 00049 /*---------------------------------------------------------------------------*\ 00050 Class coordinateSystems Declaration 00051 \*---------------------------------------------------------------------------*/ 00052 00053 class coordinateSystems 00054 : 00055 public PtrList<coordinateSystem> 00056 { 00057 00058 // Private Member Functions 00059 00060 //- Disallow default bitwise assignment 00061 void operator=(const coordinateSystems&); 00062 00063 public: 00064 00065 // Static data members 00066 00067 //- Type name of list contents 00068 static const word dataType; 00069 00070 // Public Member Functions 00071 00072 00073 // Constructors 00074 00075 //- Construct null 00076 coordinateSystems(); 00077 00078 //- Read construct from registry, name. instance 00079 coordinateSystems 00080 ( 00081 const objectRegistry& registry, 00082 const word& name = "coordinateSystems", 00083 const fileName& instance = "constant" 00084 ); 00085 00086 //- Read construct from IOobject 00087 coordinateSystems(const IOobject&); 00088 00089 // Member Functions 00090 00091 00092 //- Find and return index for a given keyword, returns -1 if not found 00093 label find(const word& key) const; 00094 00095 //- Search for given keyword 00096 bool found(const word& keyword) const; 00097 00098 //- Return the table of contents (list of all keywords) 00099 wordList toc() const; 00100 00101 //- Rewrite coordinateSystem entry with appropriate dictionary entry 00102 bool rewriteDict(dictionary& dict, bool noType = false) const; 00103 00104 //- write data 00105 bool writeData(Ostream&, bool subDict = true) const; 00106 }; 00107 00108 00109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00110 00111 } // End namespace Foam 00112 00113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00114 00115 #endif 00116 00117 // ************************************************************************* // |