DOLFIN
DOLFIN C++ interface
Loading...
Searching...
No Matches
XYZFile.h
1// Copyright (C) 2005-2007 Garth N. Wells
2//
3// This file is part of DOLFIN.
4//
5// DOLFIN is free software: you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// DOLFIN is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17//
18// Modified by Nuno Lopes 2008
19// Modified by Anders Logg 2011
20//
21// First added: 2008-07-02
22// Last changed: 2011-11-21
23
24#ifndef __XYZ_FILE_H
25#define __XYZ_FILE_H
26
27#include <string>
28#include "GenericFile.h"
29
30namespace dolfin
31{
32
33 class Function;
34
36
37 class XYZFile : public GenericFile
38 {
39 public:
40
42
45 explicit XYZFile(const std::string filename);
46
47 // Destructor
48 ~XYZFile();
49
52 void write(const Function& u);
53
54 private:
55
56 void results_write(const Function& u) const;
57 void xyz_name_update();
58
59 template<typename T>
60 void mesh_function_write(T& meshfunction);
61
62 // raw filename
63 std::string xyz_filename;
64
65 };
66
67}
68
69#endif
Definition Function.h:66
Base class for file I/O objects.
Definition GenericFile.h:45
Simple and light file format for use with Xd3d.
Definition XYZFile.h:38
void write(const Function &u)
Definition XYZFile.cpp:53
XYZFile(const std::string filename)
Simple and light file format for use with Xd3d.
Definition XYZFile.cpp:42
Definition adapt.h:30