1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM 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 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::fileFormats::FTRsurfaceFormat
29 Reading of the (now deprecated and infrequently used)
30 Foam Trisurface Format.
35 \*---------------------------------------------------------------------------*/
37 #ifndef FTRsurfaceFormat_H
38 #define FTRsurfaceFormat_H
41 #include "MeshedSurface.H"
42 #include "UnsortedMeshedSurface.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 /*---------------------------------------------------------------------------*\
52 Class FTRsurfaceFormat Declaration
53 \*---------------------------------------------------------------------------*/
56 class FTRsurfaceFormat
58 public UnsortedMeshedSurface<Face>
62 //- read compatibility for ftr patch definitions
68 //- Type of patch (ignored since it is usually "empty")
73 const word& name() const
78 friend Istream& operator>>(Istream& is, ftrPatch& p)
80 is >> p.name_ >> p.type_;
86 // Private Member Functions
88 //- Disallow default bitwise copy construct
89 FTRsurfaceFormat(const FTRsurfaceFormat<Face>&);
91 //- Disallow default bitwise assignment
92 void operator=(const FTRsurfaceFormat<Face>&);
99 //- Construct from file name
100 FTRsurfaceFormat(const fileName&);
105 //- Read file and return surface
106 static autoPtr<UnsortedMeshedSurface<Face> > New(const fileName& name)
108 return autoPtr<UnsortedMeshedSurface<Face> >
110 new FTRsurfaceFormat<Face>(name)
117 virtual ~FTRsurfaceFormat()
124 virtual bool read(const fileName&);
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 } // End namespace fileFormats
131 } // End namespace Foam
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 # include "FTRsurfaceFormat.C"
139 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 // ************************************************************************* //