preCICE v3.1.1
Loading...
Searching...
No Matches
ExportVTP.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Eigen/Core>
4#include <iosfwd>
5#include <string>
6#include <vector>
7#include "io/ExportXML.hpp"
8#include "logging/Logger.hpp"
9
10namespace precice {
11namespace mesh {
12class Mesh;
13class Edge;
14class Triangle;
15} // namespace mesh
16} // namespace precice
17
18namespace precice {
19namespace io {
20
27class ExportVTP : public ExportXML {
28private:
29 mutable logging::Logger _log{"io::ExportVTP"};
30
31 std::string getVTKFormat() const override;
32 std::string getParallelExtension() const override;
33 std::string getPieceExtension() const override;
34 std::string getPieceAttributes(const mesh::Mesh &mesh) const override;
35
36 void writeParallelCells(std::ostream &out) const override;
37
38 void exportConnectivity(std::ostream &outFile, const mesh::Mesh &mesh) const override;
39};
40
41} // namespace io
42} // namespace precice
std::ostream & out
logging::Logger _log
Definition ExportVTP.hpp:29
std::string getVTKFormat() const override
Definition ExportVTP.cpp:10
std::string getPieceAttributes(const mesh::Mesh &mesh) const override
Definition ExportVTP.cpp:25
void exportConnectivity(std::ostream &outFile, const mesh::Mesh &mesh) const override
Definition ExportVTP.cpp:46
void writeParallelCells(std::ostream &out) const override
Definition ExportVTP.cpp:34
std::string getPieceExtension() const override
Definition ExportVTP.cpp:20
std::string getParallelExtension() const override
Definition ExportVTP.cpp:15
Common class to generate the VTK XML-based formats.
Definition ExportXML.hpp:24
This class provides a lightweight logger.
Definition Logger.hpp:16
Container and creator for meshes.
Definition Mesh.hpp:39
Main namespace of the precice library.