From b8ffc64d47a251086b62d7ad64667e72bb4f4920 Mon Sep 17 00:00:00 2001 From: Kurt Biery Date: Thu, 21 Nov 2024 12:07:18 -0600 Subject: [PATCH] Moved the get_attribute_names method from the HDF5RawDataFile header file to the source file. --- include/hdf5libs/HDF5RawDataFile.hpp | 5 ----- src/HDF5RawDataFile.cpp | 9 +++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/include/hdf5libs/HDF5RawDataFile.hpp b/include/hdf5libs/HDF5RawDataFile.hpp index 47561c7..20d7252 100644 --- a/include/hdf5libs/HDF5RawDataFile.hpp +++ b/include/hdf5libs/HDF5RawDataFile.hpp @@ -506,11 +506,6 @@ HDF5RawDataFile::write_attribute(HighFive::DataSet& dset, const std::string& nam ers::warning(HDF5AttributeExists(ERS_HERE, name)); } -std::vector HDF5RawDataFile::get_attribute_names() -{ - return m_file_ptr->listAttributeNames(); -} - template T HDF5RawDataFile::get_attribute(const std::string& name) diff --git a/src/HDF5RawDataFile.cpp b/src/HDF5RawDataFile.cpp index 566a434..f6c6309 100644 --- a/src/HDF5RawDataFile.cpp +++ b/src/HDF5RawDataFile.cpp @@ -103,6 +103,15 @@ HDF5RawDataFile::~HDF5RawDataFile() m_file_layout_ptr.reset(); } +/** + * @brief Fetch the list of all file-level Attribute names. + */ +std::vector +HDF5RawDataFile::HDF5RawDataFile::get_attribute_names() +{ + return m_file_ptr->listAttributeNames(); +} + /** * @brief Write a TriggerRecord to the file. */