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
10
namespace
MeshLib
11
{
12
namespace
IO
13
{
14
17
class
PVDFile
18
{
19
public
:
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
31
private
:
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
MeshLib::IO::PVDFile::pvd_filename
std::string const pvd_filename
Definition
PVDFile.h:29
MeshLib::IO::PVDFile::_datasets
std::vector< std::pair< double, std::string > > _datasets
Definition
PVDFile.h:33
MeshLib::IO::PVDFile::addVTUFile
void addVTUFile(std::string const &vtu_fname, double timestep)
Add a VTU file to this PVD file.
Definition
PVDFile.cpp:23
MeshLib::IO::PVDFile::PVDFile
PVDFile(std::string pvd_fname)
Set a PVD file path.
Definition
PVDFile.h:21
MeshLib::IO
Definition
MeshIO.cpp:262
MeshLib
Definition
ProjectData.h:30
MeshLib
IO
VtkIO
PVDFile.h
Generated by
1.14.0