hops
Classes | Functions
H5Easy::detail Namespace Reference

Classes

struct  io_impl
 
struct  io_impl< T, typename std::enable_if< is_vector< T >::value >::type >
 
struct  is_vector
 
struct  is_vector< std::vector< T > >
 

Functions

std::string getParentName (const std::string &path)
 
void createGroupsToDataSet (File &file, const std::string &path)
 Recursively create groups in an open HDF5 file such that a DataSet can be created (see getParentName). More...
 
Exception error (const File &file, const std::string &path, const std::string &message)
 
Exception dump_error (File &file, const std::string &path)
 
template<class T >
DataSet initDataset (File &file, const std::string &path, const std::vector< size_t > &shape, const DumpOptions &options)
 
template<class T >
DataSet initScalarDataset (File &file, const std::string &path, const T &data, const DumpOptions &options)
 
template<class T >
Attribute initAttribute (File &file, const std::string &path, const std::string &key, const std::vector< size_t > &shape, const DumpOptions &options)
 
template<class T >
Attribute initScalarAttribute (File &file, const std::string &path, const std::string &key, const T &data, const DumpOptions &options)
 

Function Documentation

◆ createGroupsToDataSet()

void H5Easy::detail::createGroupsToDataSet ( File file,
const std::string path 
)
inline

Recursively create groups in an open HDF5 file such that a DataSet can be created (see getParentName).

Parameters
fileopened File
pathpath of the DataSet

◆ dump_error()

Exception H5Easy::detail::dump_error ( File file,
const std::string path 
)
inline

◆ error()

Exception H5Easy::detail::error ( const File file,
const std::string path,
const std::string message 
)
inline

◆ getParentName()

std::string H5Easy::detail::getParentName ( const std::string path)
inline

Get the parent of a path. For example for path = "/path/to/dataset" this function returns "/path/to".

Parameters
pathpath to a DataSet
Returns
group the path of the group above the DataSet

◆ initAttribute()

template<class T >
Attribute H5Easy::detail::initAttribute ( File file,
const std::string path,
const std::string key,
const std::vector< size_t > &  shape,
const DumpOptions options 
)
inline

◆ initDataset()

template<class T >
DataSet H5Easy::detail::initDataset ( File file,
const std::string path,
const std::vector< size_t > &  shape,
const DumpOptions options 
)
inline

◆ initScalarAttribute()

template<class T >
Attribute H5Easy::detail::initScalarAttribute ( File file,
const std::string path,
const std::string key,
const T &  data,
const DumpOptions options 
)
inline

◆ initScalarDataset()

template<class T >
DataSet H5Easy::detail::initScalarDataset ( File file,
const std::string path,
const T &  data,
const DumpOptions options 
)
inline