FLAME  devel
 All Classes Functions Variables Typedefs Enumerations Pages
h5loader.h
1 #ifndef H5LOADER_H
2 #define H5LOADER_H
3 
4 #include <ostream>
5 
6 #include <boost/numeric/ublas/matrix.hpp>
7 #include <boost/numeric/ublas/storage.hpp>
8 
16 class H5Loader
17 {
18  struct Pvt;
19  Pvt *pvt;
20 public:
22  H5Loader();
24  H5Loader(const char *);
26  H5Loader(const std::string&);
27  ~H5Loader();
28 
29  void open(const char *);
30  void open(const std::string&);
31  void close();
32 
34  typedef boost::numeric::ublas::matrix<double,
35  boost::numeric::ublas::row_major,
36  boost::numeric::ublas::unbounded_array<double>
38 
39  matrix_t load(const char *);
40  matrix_t load(const std::string&);
41 
42  static void dontPrint();
43 
44 private:
45  H5Loader(const H5Loader&);
46  H5Loader& operator=(const H5Loader&);
47 };
48 
49 #endif // H5LOADER_H
H5Loader()
Construct w/o opening. Must call open()
Definition: h5loader.cpp:23
boost::numeric::ublas::matrix< double, boost::numeric::ublas::row_major, boost::numeric::ublas::unbounded_array< double > > matrix_t
A 2d matrix.
Definition: h5loader.h:37
Helper to read 2d matricies.
Definition: h5loader.h:16