DASH  0.3.0
IOManip.h
1 #ifndef DASH__IO__HDF5__IO_MANIP_H__
2 #define DASH__IO__HDF5__IO_MANIP_H__
3 
4 #ifdef DASH_ENABLE_HDF5
5 
6 #include <string>
7 #include <array>
8 
9 namespace dash {
10 namespace io {
11 namespace hdf5 {
12 
13 // forward decl
14 struct hdf5_options;
15 
20 class dataset {
21  public:
22  std::string _dataset;
23 
24  public:
25  dataset(std::string dataset) { _dataset = dataset; }
26 };
27 
33  public:
34  std::string _key;
35 
36  public:
37  setpattern_key(std::string name) : _key(name) {}
38 };
39 
46  public:
47  bool _restore;
48 
49  public:
50  restore_pattern(bool restore = true) : _restore(restore) {}
51 };
52 
59  public:
60  bool _store;
61 
62  public:
63  store_pattern(bool store = true) : _store(store) {}
64 };
65 
73  public:
74  bool _modify;
75 
76  public:
77  modify_dataset(bool modify = true) : _modify(modify) {}
78 };
79 
114  private:
115  type_converter_fun_type _converter;
116 
117  public:
118  type_converter(type_converter_fun_type fun =
119  get_h5_datatype<UNSPECIFIED_TYPE>)
120  : _converter(fun) {}
121 
122  operator type_converter_fun_type() { return _converter; }
123 };
124 
125 } // namespace hdf5
126 } // namespace io
127 } // namespace dash
128 
129 #include <dash/io/hdf5/IOStream.h>
130 
131 #endif // DASH_ENABLE_HDF5
132 
133 #endif // DASH__IO__HDF5__IO_MANIP_H__
This class is a simple memory pool which holds allocates elements of size ValueType.
Definition: AllOf.h:8
Stream manipulator class to set whether the selected dataset should be overwritten.
Definition: IOManip.h:72
Stream manipulator class to set the dash pattern key of the dataset.
Definition: IOManip.h:32
Stream manipulator class to set whether the pattern should be stored as metadata of the hdf5 dataset ...
Definition: IOManip.h:58
Stream manipulator class to specify the hdf5 dataset.
Definition: IOManip.h:20
Converter function to convert non-POT types and especially structs to HDF5 types. ...
Definition: IOManip.h:113
Stream manipulator class to set whether the pattern should be restored from the hdf5 dataset metadata...
Definition: IOManip.h:45