Wildmeshing Toolkit
MeshWriter.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <wmtk/Primitive.hpp>
5 
6 #include <vector>
7 
8 namespace wmtk {
9 
11 {
12 public:
13  virtual ~MeshWriter() {}
14 
15  virtual bool write(const int dim) = 0;
16 
17  virtual void write_top_simplex_type(const PrimitiveType type) = 0;
18  virtual void write_absolute_id(const std::vector<int64_t>& id) = 0;
19 
20  virtual void write_capacities(const std::vector<int64_t>& capacities) = 0;
21 
22  virtual void write(
23  const std::string& name,
24  const int64_t type,
25  const int64_t stride,
26  const std::vector<char>& val,
27  const char default_val) = 0;
28 
29  virtual void write(
30  const std::string& name,
31  const int64_t type,
32  const int64_t stride,
33  const std::vector<int64_t>& val,
34  const int64_t default_val) = 0;
35 
36  virtual void write(
37  const std::string& name,
38  const int64_t type,
39  const int64_t stride,
40  const std::vector<double>& val,
41  const double default_val) = 0;
42 
43  virtual void write(
44  const std::string& name,
45  const int64_t type,
46  const int64_t stride,
47  const std::vector<Rational>& val,
48  const Rational& default_val) = 0;
49 
50 protected:
51  int64_t m_mm_level = 0;
52 };
53 
54 } // namespace wmtk
virtual void write_top_simplex_type(const PrimitiveType type)=0
virtual void write(const std::string &name, const int64_t type, const int64_t stride, const std::vector< char > &val, const char default_val)=0
int64_t m_mm_level
Definition: MeshWriter.hpp:51
virtual bool write(const int dim)=0
virtual void write(const std::string &name, const int64_t type, const int64_t stride, const std::vector< int64_t > &val, const int64_t default_val)=0
virtual ~MeshWriter()
Definition: MeshWriter.hpp:13
virtual void write_absolute_id(const std::vector< int64_t > &id)=0
virtual void write_capacities(const std::vector< int64_t > &capacities)=0
virtual void write(const std::string &name, const int64_t type, const int64_t stride, const std::vector< double > &val, const double default_val)=0
virtual void write(const std::string &name, const int64_t type, const int64_t stride, const std::vector< Rational > &val, const Rational &default_val)=0
Definition: Accessor.hpp:6