Public Member Functions | List of all members
HDF5Shortcut Class Reference

Facilitates writing hdf5 files. More...

#include <hdf5_utils.hpp>

Public Member Functions

 HDF5Shortcut (const string &fname)
 Class constructor. More...
 
HDF5Shortcutoperator() (const string &field_name, const vector< double > &data_set)
 adds dataset More...
 
HDF5Shortcutoperator() (const string &field_name, const vector< int > &data_set)
 adds dataset More...
 
 ~HDF5Shortcut (void)
 Class destructor. This is the stage when the file is written.
 

Detailed Description

Facilitates writing hdf5 files.

Definition at line 75 of file hdf5_utils.hpp.

Constructor & Destructor Documentation

◆ HDF5Shortcut()

HDF5Shortcut::HDF5Shortcut ( const string &  fname)
explicit

Class constructor.

Parameters
fnameName of hdf5 file

Definition at line 6 of file hdf5_utils.cpp.

Member Function Documentation

◆ operator()() [1/2]

HDF5Shortcut & HDF5Shortcut::operator() ( const string &  field_name,
const vector< double > &  data_set 
)

adds dataset

Parameters
field_nameName of dataset
data_setArray of data
Returns
Self reference

Definition at line 9 of file hdf5_utils.cpp.

◆ operator()() [2/2]

HDF5Shortcut & HDF5Shortcut::operator() ( const string &  field_name,
const vector< int > &  data_set 
)

adds dataset

Parameters
field_nameName of dataset
data_setArray of data
Returns
Self reference

Definition at line 17 of file hdf5_utils.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: