Phoxonics  1.0
Object Oriented FDTD Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Hdf5Grid1D.hpp
Go to the documentation of this file.
1 /*
2  * Hdf5Grid1D.hpp
3  *
4  * Created on: Nov 18, 2014
5  * Author: nano
6  */
7 
8 #ifndef HDF5GRID1D_HPP_
9 #define HDF5GRID1D_HPP_
10 
11 #include "../hdf5/Hdf5Base.hpp"
12 #include "../exception/CustomException.hpp"
13 
14 namespace phoxonics {
15 namespace common {
16 
17 class Hdf5Grid1D : public Hdf5Base {
18 public:
19  explicit Hdf5Grid1D(std::string h5_file_name, std::string dataset_name,
20  long long unsigned int dim_x, bool print_exception);
21  virtual ~Hdf5Grid1D();
22 
23  // create a grid based dataset
24  void create_dataset(const void* data);
25 
26 private:
27  // Size of dimension x
28  const long long unsigned int dim_x_;
29 
30  // rank = num dimensions
31  static const int rank_ { 1 };
32 };
33 
34 } /* namespace common */
35 } /* namespace phoxonics */
36 
37 #endif /* HDF5GRID1D_HPP_ */
Definition: CommonBase.hpp:14
Hdf5Grid1D(std::string h5_file_name, std::string dataset_name, long long unsigned int dim_x, bool print_exception)
Definition: Hdf5Grid1D.cpp:13
virtual ~Hdf5Grid1D()
Definition: Hdf5Grid1D.cpp:24
void create_dataset(const void *data)
Definition: Hdf5Grid1D.cpp:28
Definition: Hdf5Base.hpp:17
Definition: Hdf5Grid1D.hpp:17