9 #ifndef RMF_HDF5_CONST_GROUP_H
10 #define RMF_HDF5_CONST_GROUP_H
12 #include "RMF/config.h"
18 RMF_ENABLE_WARNINGS
namespace RMF {
21 typedef ConstAttributes<Object> ConstGroupAttributes;
23 typedef std::vector<ConstGroupAttributes> ConstGroupAttributesList;
33 unsigned int get_number_of_links()
const {
36 unsigned int n = info.nlinks;
45 RMF_SHOWABLE(
ConstGroup,
"Group " << get_name());
49 template <
class TypeTraits,
unsigned int D>
54 template <
class TypeTraits,
unsigned int D>
60 #define RMF_HDF5_DATA_SET_CONST_METHODS_D( \
61 lcname, UCName, PassValue, ReturnValue, PassValues, ReturnValues, D) \
62 ConstDataSetD<UCName##Traits, D> get_child_##lcname##_data_set_##D##d( \
64 DataSetAccessPropertiesD<UCName##Traits, D> props) const { \
65 return get_child_data_set<UCName##Traits, D>(name, props); \
67 ConstDataSetD<UCName##Traits, D> get_child_##lcname##_data_set_##D##d( \
68 std::string name) const { \
69 return get_child_data_set<UCName##Traits, D>(name); \
72 #define RMF_HDF5_DATA_SET_CONST_METHODS(lcname, UCName, PassValue, \
73 ReturnValue, PassValues, ReturnValues) \
74 RMF_HDF5_DATA_SET_CONST_METHODS_D(lcname, UCName, PassValue, ReturnValue, \
75 PassValues, ReturnValues, 1); \
76 RMF_HDF5_DATA_SET_CONST_METHODS_D(lcname, UCName, PassValue, ReturnValue, \
77 PassValues, ReturnValues, 2); \
78 RMF_HDF5_DATA_SET_CONST_METHODS_D(lcname, UCName, PassValue, ReturnValue, \
79 PassValues, ReturnValues, 3)
86 RMF_HDF5_FOREACH_TYPE(RMF_HDF5_DATA_SET_CONST_METHODS);
89 unsigned int get_number_of_children()
const;
90 std::string get_child_name(
unsigned int i)
const;
91 bool get_has_child(std::string name)
const;
92 bool get_child_is_group(
unsigned int i)
const;
93 bool get_child_is_data_set(
unsigned int i)
const;
94 ConstGroup get_child_group(
unsigned int i)
const;
99 ConstGroup get_child_group(std::string name)
const;
103 bool get_child_is_group(std::string name)
const;
Handle read/write of Model data from/to files.
Handle read/write of Model data from/to files.
Handle read/write of Model data from/to files.
Handle read/write of Model data from/to files.