ENH: patchCloud: return pTraits<Type>::max for unfound points
[OpenFOAM-1.7.x.git] / src / sampling / sampledSet / writers / jplot / jplotSetWriter.H
blobc6182c75a1f7669c23251423069f94f0a60ca9e9
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
13     the Free Software Foundation, either version 3 of the License, or
14     (at your 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
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
24 Class
25     Foam::jplotSetWriter
27 SourceFiles
28     jplotSetWriter.C
30 \*---------------------------------------------------------------------------*/
32 #ifndef jplotSetWriter_H
33 #define jplotSetWriter_H
35 #include "writer.H"
36 #include "vector.H"
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 namespace Foam
43 /*---------------------------------------------------------------------------*\
44                       Class jplotSetWriter Declaration
45 \*---------------------------------------------------------------------------*/
47 template<class Type>
48 class jplotSetWriter
50     public writer<Type>
53     // Private Member Functions
55         //- Write header
56         Ostream& writeHeader(Ostream&) const;
58 public:
60     //- Runtime type information
61     TypeName("jplot");
64     // Constructors
66         //- Construct null
67         jplotSetWriter();
70     //- Destructor
71     virtual ~jplotSetWriter();
74     // Member Functions
76         virtual fileName getFileName
77         (
78             const coordSet&,
79             const wordList&
80         ) const;
82         virtual void write
83         (
84             const coordSet&,
85             const wordList&,
86             const List<const Field<Type>*>&,
87             Ostream&
88         ) const;
90         virtual void write
91         (
92             const bool writeTracks,
93             const PtrList<coordSet>&,
94             const wordList& valueSetNames,
95             const List<List<Field<Type> > >&,
96             Ostream&
97         ) const
98         {
99             notImplemented
100             (
101                 "jplotSetWriter<Type>::write\n"
102                 "(\n"
103                 "    const bool,\n"
104                 "    const PtrList<coordSet>&,\n"
105                 "    const wordList&,\n"
106                 "    const List<List<Field<Type> > >&,\n"
107                 "    Ostream&\n"
108                 ") const"
109             );
110         }
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 } // End namespace Foam
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 #ifdef NoRepository
121 #   include "jplotSetWriter.C"
122 #endif
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 #endif
128 // ************************************************************************* //