WARPXM v1.10.0
Loading...
Searching...
No Matches
wxhdf5traits.h
Go to the documentation of this file.
1#ifndef wxhdf5traits_h
2#define wxhdf5traits_h
3
4// hdf5
5#include <hdf5.h>
6
7#include "lib/wmtypewrapper.h" // used becasue type_info objects (or pointers should not be used as keys in associative containers)
8
9// std includes
10#include <map>
11
20{
21 static hid_t hdf5Type(const WmTypeWrapper& type)
22 {
23 return hdf5TypeMap[type];
24 }
25
26 typedef std::map<WmTypeWrapper, hid_t> hdf5TypeMap_t;
28};
29
31#endif // wxhdf5traits_h
Definition: wmtypewrapper.h:21
Traits class for HDF5.
Definition: wxhdf5traits.h:20
static hid_t hdf5Type(const WmTypeWrapper &type)
Definition: wxhdf5traits.h:21
std::map< WmTypeWrapper, hid_t > hdf5TypeMap_t
Definition: wxhdf5traits.h:26
static hdf5TypeMap_t hdf5TypeMap
Definition: wxhdf5traits.h:27