OGS
PVDFile.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <string>
14 #include <utility>
15 #include <vector>
16 
17 namespace MeshLib
18 {
19 namespace IO
20 {
21 
24 class PVDFile
25 {
26 public:
28  explicit PVDFile(std::string pvd_fname)
29  : pvd_filename(std::move(pvd_fname))
30  {
31  }
32 
34  void addVTUFile(std::string const& vtu_fname, double timestep);
35 
36  std::string const pvd_filename;
37 
38 private:
39  std::vector<std::pair<double, std::string>>
40  _datasets; // a vector of (time, VTU file name)
41 };
42 
43 } // namespace IO
44 } // namespace MeshLib
std::string const pvd_filename
Definition: PVDFile.h:36
std::vector< std::pair< double, std::string > > _datasets
Definition: PVDFile.h:40
void addVTUFile(std::string const &vtu_fname, double timestep)
Add a VTU file to this PVD file.
Definition: PVDFile.cpp:28
PVDFile(std::string pvd_fname)
Set a PVD file path.
Definition: PVDFile.h:28