JEMRIS  2.8.1
open-source MRI simulations
List of all members | Public Member Functions | Private Member Functions | Private Attributes
HDF5IO Class Reference

HDF5 IO interface. More...

#include <HDF5IO.h>

+ Inheritance diagram for HDF5IO:
+ Collaboration diagram for HDF5IO:

Public Member Functions

 HDF5IO (const std::string &fname, const IO::Mode mode)
 Contructor.
 
virtual ~HDF5IO ()
 Destructor.
 
template<class T >
IO::Status Write (const NDData< T > &data, const std::string &urn, const std::string &url="")
 Write data from container to file. More...
 
template<class T >
IO::Status Read (NDData< T > &data, const std::string &urn, const std::string &url="")
 
virtual IO::Status FileAccess ()
 File access?
 
- Public Member Functions inherited from BinaryIO
 BinaryIO (const std::string &fname, const IO::Mode mode)
 Contructor.
 
virtual ~BinaryIO ()
 Destructor.
 
const std::string GetFileName ()
 Get file name. More...
 
IO::Strategy IOStrategy () const
 
template<class T >
IO::Status Read (NDData< T > &data, const std::string &urn, const std::string &url="")
 Read data from file to container. More...
 
template<class T >
IO::Status Write (const NDData< T > &dc, const std::string &urn, const std::string &url="")
 Write data from container to file. More...
 
const IO::Status Status ()
 Get last status.
 

Private Member Functions

H5::Group CreateGroup (const std::string &url)
 
const IO::Status ReportException (const H5::Exception &e, const IO::Status ios)
 Handle HDF5 exceptions. More...
 

Private Attributes

H5::H5File m_file
 

Additional Inherited Members

- Protected Attributes inherited from BinaryIO
std::string m_fname
 
NDData< double > m_data
 
IO::Mode m_mode
 
IO::Status m_status
 
IO::Strategy m_type
 

Detailed Description

HDF5 IO interface.

Member Function Documentation

const IO::Status HDF5IO::ReportException ( const H5::Exception &  e,
const IO::Status  ios 
)
private

Handle HDF5 exceptions.

Parameters
eException
iosStatus
template<class T >
IO::Status HDF5IO::Write ( const NDData< T > &  data,
const std::string &  urn,
const std::string &  url = "" 
)
inline

Write data from container to file.

Parameters
dcData container

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

-- last change 17.06.2016 | Tony Stoecker | Imprint --