voronoi_logger.hpp
Go to the documentation of this file.
1 
6 #ifndef VORONOI_LOGGER_HPP
7 #define VORONOI_LOGGER_HPP 1
8 
9 #include <string>
10 #include <vector>
11 #include "Edge.hpp"
12 
13 class VoronoiMesh;
14 class Tessellation;
15 
17 namespace voronoi_loggers
18 {
19  using namespace std;
20 
23  {
24  public:
25 
27  VoronoiLogger(void);
28 
32  virtual void output(const VoronoiMesh& v);
33 
37  virtual void output(const Tessellation& v);
38 
39  virtual ~VoronoiLogger(void);
40  };
41 
43  class BinLogger: public VoronoiLogger
44  {
45  public:
46 
50  explicit BinLogger(const std::string& file_name);
51 
52  void output(const VoronoiMesh& v);
53 
54  void output(const Tessellation& v);
55 
60  vector<Vector2D> read(string location);
61 
62  private:
63  const std::string file_name_;
64  };
65 }
66 
67 #endif // VORONOI_LOGGER_HPP
Voronoi tessellation class.
Definition: VoronoiMesh.hpp:29
Writes data to a binary file.
Abstract class for tessellation.
Edge between cells.
Abstract class for voronoi tessellation.
Diagnostic functions for Voronoi tessellation.