Line | Branch | Exec | Source |
---|---|---|---|
1 | // SPDX-FileCopyrightText: 2022-2023 Dennis Gläser <dennis.glaeser@iws.uni-stuttgart.de> | ||
2 | // SPDX-License-Identifier: MIT | ||
3 | /*! | ||
4 | * \file | ||
5 | * \ingroup VTK | ||
6 | * \copydoc GridFormat::PVTSReader | ||
7 | */ | ||
8 | #ifndef GRIDFORMAT_VTK_PVTS_READER_HPP_ | ||
9 | #define GRIDFORMAT_VTK_PVTS_READER_HPP_ | ||
10 | |||
11 | #include <gridformat/vtk/vts_reader.hpp> | ||
12 | #include <gridformat/vtk/pxml_reader.hpp> | ||
13 | |||
14 | namespace GridFormat { | ||
15 | |||
16 | /*! | ||
17 | * \ingroup VTK | ||
18 | * \brief Reader for .pvts file format | ||
19 | * \copydetails VTK::PXMLStructuredGridReader | ||
20 | */ | ||
21 | class PVTSReader : public VTK::PXMLStructuredGridReader<VTSReader> { | ||
22 | using ParentType = VTK::PXMLStructuredGridReader<VTSReader>; | ||
23 | |||
24 | public: | ||
25 | 1 | PVTSReader() | |
26 |
2/4✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
|
2 | : ParentType("PStructuredGrid") |
27 | 1 | {} | |
28 | |||
29 | 48 | explicit PVTSReader(const NullCommunicator&) | |
30 |
2/4✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 48 times.
✗ Branch 5 not taken.
|
96 | : ParentType("PStructuredGrid") |
31 | 48 | {} | |
32 | |||
33 | template<Concepts::Communicator C> | ||
34 | 82 | explicit PVTSReader(const C& comm) | |
35 |
2/4✓ Branch 2 taken 82 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 82 times.
✗ Branch 6 not taken.
|
164 | : ParentType("PStructuredGrid", comm) |
36 | 82 | {} | |
37 | |||
38 | private: | ||
39 | 2 | std::string _name() const override { | |
40 |
1/2✓ Branch 1 taken 2 times.
✗ Branch 2 not taken.
|
4 | return "PVTSReader"; |
41 | } | ||
42 | }; | ||
43 | |||
44 | } // namespace GridFormat | ||
45 | |||
46 | #endif // GRIDFORMAT_VTK_PVTS_READER_HPP_ | ||
47 |