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 enableSWMR()
override;
39 Dataset *openChildDataset(
const std::string &name_, ElementType *objectType,
ScopedHID *type);
43 void flush()
override;
48 return getFileAsGroup()->createChildObject<T>(path.substr(1));
51 if((pos=path.find_last_of(
'/'))==std::string::npos)
56 throw Exception(getPath(),
"Got a path (including /) but this object is not a group");
57 return group->createChildObject<T>(path.substr(pos+1));
61 T* openChildObject(
const std::string &path) {
63 return getFileAsGroup()->openChildObject<T>(path.substr(1));
66 if((pos=path.find_first_of(
'/'))==std::string::npos)
71 throw Exception(getPath(),
"Got a path (including /) but this object is not a group");
72 return group->openChildObject<T>(path.substr(pos+1));
74 Object *openChildObject(
const std::string &name_, ElementType *objectType=
nullptr,
ScopedHID *type=
nullptr);
75 std::list<std::string> getChildObjectNames();
84 void close()
override;
85 void refresh()
override;
86 void flush()
override;
87 void enableSWMR()
override;
Definition: interface.h:177
Definition: interface.h:331
Definition: interface.h:65
void flush() override
flush's all dataset below this group
Definition: group.cc:163
void flush() override
flush's all dataset below this group
Definition: group.cc:200
Definition: interface.h:270
Definition: interface.h:78