Phoxonics  1.0
Object Oriented FDTD Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Hdf5Grid1DSlice.hpp
Go to the documentation of this file.
1 /*
2  * Hdf5Grid1DSlice.hpp
3  *
4  * Created on: Nov 24, 2014
5  * Author: nano
6  */
7 
8 #ifndef HDF5GRID1DSLICE_HPP_
9 #define HDF5GRID1DSLICE_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 Hdf5Grid1DSlice : public Hdf5Base {
20 public:
21  explicit Hdf5Grid1DSlice(std::string h5_file_name, std::string dataset_name,
22  long long unsigned int dim_x, bool print_exception);
23  virtual ~Hdf5Grid1DSlice();
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 
32  // rank = num dimensions
33  static const int rank_ { 2 };
34 };
35 
36 } /* namespace common */
37 } /* namespace phoxonics */
38 
39 #endif /* HDF5GRID1DSLICE_HPP_ */
Definition: CommonBase.hpp:14
virtual ~Hdf5Grid1DSlice()
Definition: Hdf5Grid1DSlice.cpp:23
void create_dataset_slice(const void *data) overridefinal
Definition: Hdf5Grid1DSlice.cpp:27
Definition: Hdf5Grid1DSlice.hpp:19
Definition: Hdf5Base.hpp:17
Hdf5Grid1DSlice(std::string h5_file_name, std::string dataset_name, long long unsigned int dim_x, bool print_exception)
Definition: Hdf5Grid1DSlice.cpp:13