-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathREADME
More file actions
24 lines (19 loc) · 718 Bytes
/
README
File metadata and controls
24 lines (19 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
This library aims to provide an abstraction of the hdf5 file format for c++
code. It aims to reduce the number of explicit calls to the hdf5 APIs by
using the c++ type system to automatically construct the appropriate datatypes.
The library is a header only library so no compilation is required.
Requirements:
hdf5 1.6 or greater
mpi-io if parallel io support is required
Boost 1.37 or greater
Example usage:
#include <hdf5/hdffile.hpp>
#include <hdf5/hdfdataset.hpp>
#include <boost/shared_ptr.hpp>
int main()
{
hdf::HDFFile<> file("test.h5", hdf::HDFFile<>::truncate);
std::vector<double> data(100,1.0);
std::shared_ptr<hdf::HDFDataSet<> > dataset
= file.writeDataset<double>("doubledataset", data);
}