#include <iostream>
int main(int argc, char* argv[])
{
if (argc != 2)
{
std::cout << "Usage: " << argv[0] << " <odimh5file>" << std::endl;
return -1;
}
H5::H5File* file = NULL;
H5::Group* root = NULL;
H5::Group* group = NULL;
try
{
std::cout << "numattr: " << d->getNumAttrs();
std::cout << "numattr: " << d->getNumAttrs();
}
catch(H5::Exception& e)
{
e.printError(stdout);
}
delete group;
delete root;
delete file;
getchar();
return 0;
}
static H5::Group * getRoot(H5::H5File *file)
Get the HDF5 root group of a file Get the HDF5 root group of a given HDF5 file.
Definition: odimh5v20_hdf5.cpp:96
static H5::H5File * open(const std::string &path, int h5flags)
Open a HDF5 file.
Definition: odimh5v20_hdf5.cpp:82
static void ensureChild(H5::Group *parent, const char *name)
Check or create a child group.
Definition: odimh5v20_hdf5.cpp:447
static void removeChild(H5::Group *parent, const char *name)
Delete a child group.
Definition: odimh5v20_hdf5.cpp:549
static H5::Group * ensureGetChild(H5::Group *parent, const char *name)
Get (and automatically create) a child group.
Definition: odimh5v20_hdf5.cpp:476
Namespace related to ODIMH5 version 2.0.
Definition: odimh5v20.hpp:46
Interface classes between OdimH5 objects and HDF5 library.
Main header file of the library.