High Performance Plasticity  0.5.0
hpp::HDF5Handler Class Reference

#include <hdfUtils.h>

Public Member Functions

 HDF5Handler (std::string filename, MPI_Comm comm, bool doCreate)
 Create a handler for HDF5 parallel I/O on a file. More...
 
 HDF5Handler (std::string filename, bool doCreate)
 Create a handler for HDF5 serial I/O on a file. More...
 
template<typename T >
hid_t createDataset (std::string datasetName, std::vector< hsize_t > dataDims)
 
template<typename T >
hid_t createDataset (std::string datasetName, std::vector< hsize_t > gridDims, std::vector< hsize_t > arrayDims)
 
hid_t getDataset (std::string datasetName)
 
hid_t getPropertyListTransferIndependent ()
 
std::vector< std::string > getDatasetNames ()
 
 ~HDF5Handler ()
 

Private Member Functions

void openDataset (std::string datasetName)
 

Private Attributes

std::string filename
 
hid_t file_id
 
bool usingMPI = false
 
MPI_Comm comm
 
int comm_size
 
int comm_rank
 
std::map< std::string, hid_t > currentlyOpenDatasets
 
hid_t plist_id_file_access
 
hid_t plist_id_xfer_independent
 

Detailed Description

Author
Michael
Date
07/12/16

Constructor & Destructor Documentation

hpp::HDF5Handler::HDF5Handler ( std::string  filename,
MPI_Comm  comm,
bool  doCreate 
)

Create a handler for HDF5 parallel I/O on a file.

Parameters
filenamethe name of the file
commthe MPI communicator
doCreateif true, overwrite the file if it exists
Returns
hpp::HDF5Handler::HDF5Handler ( std::string  filename,
bool  doCreate 
)

Create a handler for HDF5 serial I/O on a file.

Parameters
filenamefilename the name of the file
doCreateif true, overwrite the file if it exists
Returns
hpp::HDF5Handler::~HDF5Handler ( )

Member Function Documentation

template<typename T >
template hid_t hpp::HDF5Handler::createDataset< unsigned short > ( std::string  datasetName,
std::vector< hsize_t >  dataDims 
)
template<typename T >
template hid_t hpp::HDF5Handler::createDataset< unsigned short > ( std::string  datasetName,
std::vector< hsize_t >  gridDims,
std::vector< hsize_t >  arrayDims 
)
hid_t hpp::HDF5Handler::getDataset ( std::string  datasetName)
std::vector< std::string > hpp::HDF5Handler::getDatasetNames ( )
hid_t hpp::HDF5Handler::getPropertyListTransferIndependent ( )
inline
void hpp::HDF5Handler::openDataset ( std::string  datasetName)
private

Member Data Documentation

MPI_Comm hpp::HDF5Handler::comm
private
int hpp::HDF5Handler::comm_rank
private
int hpp::HDF5Handler::comm_size
private
std::map<std::string, hid_t> hpp::HDF5Handler::currentlyOpenDatasets
private
hid_t hpp::HDF5Handler::file_id
private
std::string hpp::HDF5Handler::filename
private
hid_t hpp::HDF5Handler::plist_id_file_access
private
hid_t hpp::HDF5Handler::plist_id_xfer_independent
private
bool hpp::HDF5Handler::usingMPI = false
private

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