Wildmeshing Toolkit
HDF5Reader.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
wmtk/Primitive.hpp
>
4
5
#include <filesystem>
6
#include <vector>
7
8
namespace
h5pp
{
9
class
File;
10
}
11
12
namespace
wmtk
{
13
14
class
Mesh;
15
16
class
HDF5Reader
17
{
18
public
:
19
HDF5Reader
();
20
21
std::shared_ptr<Mesh>
read
(
const
std::filesystem::path& filename);
22
23
private
:
24
std::shared_ptr<Mesh>
read_mesh
(h5pp::File& hdf5_file,
const
std::string& dataset);
25
26
template
<
typename
T>
27
void
set_attribute
(
28
const
T& default_val,
29
const
std::string& name,
30
PrimitiveType
pt,
31
int64_t stride,
32
const
std::vector<T>& v,
33
Mesh
& mesh);
34
};
35
}
// namespace wmtk
Primitive.hpp
wmtk::HDF5Reader
Definition:
HDF5Reader.hpp:17
wmtk::HDF5Reader::set_attribute
void set_attribute(const T &default_val, const std::string &name, PrimitiveType pt, int64_t stride, const std::vector< T > &v, Mesh &mesh)
Definition:
HDF5Reader.cpp:208
wmtk::HDF5Reader::read
std::shared_ptr< Mesh > read(const std::filesystem::path &filename)
Definition:
HDF5Reader.cpp:44
wmtk::HDF5Reader::read_mesh
std::shared_ptr< Mesh > read_mesh(h5pp::File &hdf5_file, const std::string &dataset)
Definition:
HDF5Reader.cpp:123
wmtk::HDF5Reader::HDF5Reader
HDF5Reader()
Definition:
HDF5Reader.cpp:41
wmtk::Mesh
Definition:
Mesh.hpp:106
h5pp
Definition:
HDF5Reader.hpp:8
wmtk
Definition:
Accessor.hpp:6
wmtk::PrimitiveType
PrimitiveType
Definition:
PrimitiveType.hpp:9
src
wmtk
io
HDF5Reader.hpp
Generated by
1.9.1