Classes | Functions
hdf5_utils.hpp File Reference

Higher level hdf5 utilities. More...

#include <string>
#include <vector>
#include <H5Cpp.h>
Include dependency graph for hdf5_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HDF5Shortcut
 Facilitates writing hdf5 files. More...
 

Functions

template<class T >
void write_std_vector_to_hdf5 (const Group &file, const vector< T > &data, const string &caption, const DataType &dt)
 Master function for writing vectors to hdf5 files. More...
 
void write_std_vector_to_hdf5 (const Group &file, const vector< double > &data, const string &caption)
 Writes floating point data to hdf5. More...
 
void write_std_vector_to_hdf5 (const Group &file, const vector< int > &data, const string &caption)
 Writes integer data to hdf5. More...
 

Detailed Description

Higher level hdf5 utilities.

Author
Almog Yalinewich

Definition in file hdf5_utils.hpp.

Function Documentation

◆ write_std_vector_to_hdf5() [1/3]

template<class T >
void write_std_vector_to_hdf5 ( const Group &  file,
const vector< T > &  data,
const string &  caption,
const DataType &  dt 
)

Master function for writing vectors to hdf5 files.

Parameters
fileEither an actual file or a group within a file
dataData to be written
captionName of dataset
dtData type

Definition at line 31 of file hdf5_utils.hpp.

Here is the caller graph for this function:

◆ write_std_vector_to_hdf5() [2/3]

void write_std_vector_to_hdf5 ( const Group &  file,
const vector< double > &  data,
const string &  caption 
)

Writes floating point data to hdf5.

Parameters
fileEither an actual file or a group within a file
dataData to be written
captionName of dataset

Definition at line 26 of file hdf5_utils.cpp.

Here is the call graph for this function:

◆ write_std_vector_to_hdf5() [3/3]

void write_std_vector_to_hdf5 ( const Group &  file,
const vector< int > &  data,
const string &  caption 
)

Writes integer data to hdf5.

Parameters
fileEither an actual file or a group within a file
dataData to be written
captionName of dataset

Definition at line 40 of file hdf5_utils.cpp.

Here is the call graph for this function: