22#ifndef _HDF5SERIE_GROUP_H_
23#define _HDF5SERIE_GROUP_H_
25#include <hdf5serie/interface.h>
26#include <boost/filesystem.hpp>
36 void close()
override;
37 void refresh()
override;
38 void flush()
override;
39 void enableSWMR()
override;
40 Dataset *openChildDataset(
const std::string &name_, ElementType *objectType, hid_t *type);
46 return getFileAsGroup()->createChildObject<T>(path.substr(1));
49 if((pos=path.find_last_of(
'/'))==std::string::npos)
54 throw Exception(getPath(),
"Got a path (including /) but this object is not a group");
55 return group->createChildObject<T>(path.substr(pos+1));
59 T* openChildObject(
const std::string &path) {
61 return getFileAsGroup()->openChildObject<T>(path.substr(1));
64 if((pos=path.find_first_of(
'/'))==std::string::npos)
69 throw Exception(getPath(),
"Got a path (including /) but this object is not a group");
70 return group->openChildObject<T>(path.substr(pos+1));
72 Object *openChildObject(
const std::string &name_, ElementType *objectType=
nullptr, hid_t *type=
nullptr);
73 std::list<std::string> getChildObjectNames();
82 void close()
override;
83 void refresh()
override;
84 void flush()
override;
85 void enableSWMR()
override;
Definition: interface.h:130
Definition: interface.h:284
Definition: interface.h:36
Definition: interface.h:223