FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
H++with_cache_image/H5Dataset.hpp
1#ifndef __H5_DATASET_HPP
2#define __H5_DATASET_HPP
3
4#include "H5DataType.hpp"
5#include <vector>
6
7
8class H5Dataset : public H5Object
9{
10protected:
11
12 ~H5Dataset();
13
14public:
15
16 hid_t H5Dget_type() const;
17
18 MemCore::RefPtr<H5DataType> get_type() const
19 {
20 return new H5DataType( H5Dget_type() );
21 }
22
23 herr_t read(hid_t LoadID, void*dataPtr) const;
24
25 template <class T>
26 herr_t read(hid_t LoadID, std::vector<T>&data) const
27 {
28 return read(LoadID, &*data.begin());
29 }
30
31 herr_t read(const H5DataType&DT, void*dataPtr) const
32 {
33 return read( DT.getHid(), dataPtr );
34 }
35
36 template <class T>
37 herr_t read(const H5DataType&DT, std::vector<T>&data) const
38 {
39 return read( DT.getHid(), &*data.begin());
40 }
41
42
43
44
45 hssize_t get_simple_extent_npoints() const;
46 int get_simple_extent_dims(hsize_t *dims, hsize_t *maxdims = 0) const;
47
48private:
49 H5Dataset(hid_t);
50
51 friend class H5Group;
52};
53
54
55#endif // __H5_DATASET_HPP
56
Definition H++/H5DataType.hpp:10
Definition H++/H5Dataset.hpp:30
int get_simple_extent_dims(hsize_t *dims, hsize_t *maxdims=nullptr) const
Dims:
Definition H++/H5Dataset.cpp:107
A group within an HDF5 file.
Definition H++/H5Group.hpp:18
Base class for groups, datasets and named datatypes.
Definition H++/H5Object.hpp:122