|
template<typename VariantChannelT > |
boost::optional< VariantChannelT > | load (HighFive::Group &group, std::string datasetName) |
|
template<typename VariantChannelT > |
boost::optional< VariantChannelT > | load (std::string groupName, std::string datasetName) |
|
template<typename VariantChannelT > |
boost::optional< VariantChannelT > | loadVariantChannel (std::string groupName, std::string datasetName) |
|
template<typename ... Tp> |
void | save (HighFive::Group &group, std::string datasetName, const VariantChannel< Tp... > &vchannel) |
|
template<typename ... Tp> |
void | save (std::string groupName, std::string datasetName, const VariantChannel< Tp... > &vchannel) |
|
template<typename FeatureBase = ConstructType>
class lvr2::VariantChannelIO< FeatureBase >
Hdf5IO Feature for handling VariantChannel related IO.
This Feature of the Hdf5IO handles the IO of a VariantChannel object.
Example:
MyHdf5IO io;
using MultiChannel = VariantChannel<float, char, int>;
MultiChannel vchannel, vchannel_in;
Channel<float> samples(100,100);
vchannel = samples;
io.open("test.h5");
io.save("avariantchannel", vchannel);
vchannel_in = *io.loadVariantChannel<MultiChannel>("avariantchannel");
vchannel_in = *io.loadChannel<float>("avariantchannel");
Dependencies:
Definition at line 54 of file descriptions/VariantChannelIO.hpp.