Return dataset type as constant reference

This commit is contained in:
babic_a committed 2018-02-08 10:54:30 +01:00
1 parent b882144a62
commit 5f4c3a939c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ const boost::any& H5FormatUtils::get_value_from_reference(const string& dataset_
}
}
H5::PredType H5FormatUtils::get_dataset_data_type(const string& type)
const H5::PredType& H5FormatUtils::get_dataset_data_type(const string& type)
{
#ifdef DEBUG_OUTPUT
cout << "[H5FormatUtils::get_dataset_data_type] Getting dataset type for received frame type " << type << endl;
+1 -1
View File
@@ -100,7 +100,7 @@ namespace H5FormatUtils
void compact_dataset(H5::DataSet& dataset, hsize_t max_frame_index);
H5::Group create_group(H5::Group& target, const std::string& name);
H5::PredType get_dataset_data_type(const std::string& type);
const H5::PredType& get_dataset_data_type(const std::string& type);
H5::DataSet write_dataset(H5::Group& target, const h5_dataset& dataset, const std::map<std::string, boost::any>& values);
H5::DataSet write_dataset(H5::Group& target, const std::string& name, double value);