OGS
PVDFile.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <string>
7#include <utility>
8#include <vector>
9
10namespace MeshLib
11{
12namespace IO
13{
14
18{
19public:
21 explicit PVDFile(std::string pvd_fname)
22 : pvd_filename(std::move(pvd_fname))
23 {
24 }
25
27 void addVTUFile(std::string const& vtu_fname, double timestep);
28
29 std::string const pvd_filename;
30
31private:
32 std::vector<std::pair<double, std::string>>
33 _datasets; // a vector of (time, VTU file name)
34};
35
36} // namespace IO
37} // namespace MeshLib
std::string const pvd_filename
Definition PVDFile.h:29
std::vector< std::pair< double, std::string > > _datasets
Definition PVDFile.h:33
void addVTUFile(std::string const &vtu_fname, double timestep)
Add a VTU file to this PVD file.
Definition PVDFile.cpp:23
PVDFile(std::string pvd_fname)
Set a PVD file path.
Definition PVDFile.h:21