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