Add option for empty root

This commit is contained in:
2018-02-12 17:37:12 +01:00
parent ae05e681d7
commit 9502d9450b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ class H5Format
virtual const std::unordered_map<std::string, boost::any>& get_default_values() const = 0;
virtual const h5_group& get_format_definition() const = 0;
virtual const h5_parent& get_format_definition() const = 0;
virtual void add_calculated_values(std::unordered_map<std::string, boost::any>& values) const = 0;
+2 -2
View File
@@ -15,7 +15,7 @@ class NXmxFormat : public H5Format
shared_ptr<unordered_map<string, DATA_TYPE>> input_value_type = NULL;
shared_ptr<unordered_map<string, boost::any>> default_values = NULL;
shared_ptr<unordered_map<string, std::string>> dataset_move_mapping = NULL;
shared_ptr<h5_group> file_format = NULL;
shared_ptr<h5_parent> file_format = NULL;
public:
~NXmxFormat(){};
@@ -904,7 +904,7 @@ class NXmxFormat : public H5Format
}));
}
const h5_group& get_format_definition() const override {
const h5_parent& get_format_definition() const override {
return *file_format;
}