Robowflex
v0.1
Making MoveIt Easy
|
An HDF5 File loaded into memory. More...
#include <hdf5.h>
Public Types | |
typedef boost::make_recursive_variant< HDF5DataPtr, std::map< std::string, boost::recursive_variant_ > >::type | Node |
A recursive map that has a dictionary-like structure to store HDF5 datasets. More... | |
typedef std::map< std::string, Node > | NodeMap |
A specific map in the recursive set. More... | |
Public Member Functions | |
HDF5File (const std::string &filename) | |
Constructor. Opens filename. More... | |
const HDF5DataPtr | getData (const std::vector< std::string > &keys) const |
Get the dataset under the set of keys. Each key is applied successively. More... | |
const std::vector< std::vector< std::string > > | getKeys () const |
Gets all valid keys in the file. More... | |
Private Member Functions | |
template<typename T > | |
std::vector< std::string > | listObjects (const T &location) const |
List the objects at the HDF5 location. More... | |
template<typename T > | |
void | loadData (Node &node, const T &location, const std::string &name) |
Loads the data in the object name at the HDF5 location. Recursive. More... | |
Private Attributes | |
const H5::H5File | file_ |
The loaded HDF5 file. More... | |
Node | data_ |
A recursive map of loaded data. More... | |
typedef boost::make_recursive_variant< HDF5DataPtr, std::map<std::string, boost::recursive_variant_> >::type robowflex::IO::HDF5File::Node |
IO::HDF5File::HDF5File | ( | const std::string & | filename | ) |
Constructor. Opens filename.
[in] | filename | File to open. |
Definition at line 143 of file hdf5.cpp.
const IO::HDF5DataPtr IO::HDF5File::getData | ( | const std::vector< std::string > & | keys | ) | const |
Get the dataset under the set of keys. Each key is applied successively.
[in] | keys | The keys for the dataset to access. |
const std::vector< std::vector< std::string > > IO::HDF5File::getKeys | ( | ) | const |
|
private |
|
private |
|
private |
|
private |