From 9502d9450b507f1e32e9b8361118397bc50d1ac1 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Mon, 12 Feb 2018 17:37:12 +0100 Subject: [PATCH] Add option for empty root --- src/H5Format.hpp | 2 +- src/format/NXmxFormat.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/H5Format.hpp b/src/H5Format.hpp index dad8d46..2161a4d 100644 --- a/src/H5Format.hpp +++ b/src/H5Format.hpp @@ -93,7 +93,7 @@ class H5Format virtual const std::unordered_map& 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& values) const = 0; diff --git a/src/format/NXmxFormat.cpp b/src/format/NXmxFormat.cpp index 3879038..8c6e45a 100644 --- a/src/format/NXmxFormat.cpp +++ b/src/format/NXmxFormat.cpp @@ -15,7 +15,7 @@ class NXmxFormat : public H5Format shared_ptr> input_value_type = NULL; shared_ptr> default_values = NULL; shared_ptr> dataset_move_mapping = NULL; - shared_ptr file_format = NULL; + shared_ptr 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; }