mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-05 08:04:13 +02:00
Change shared_ptr for unique_ptr
This commit is contained in:
@@ -26,7 +26,7 @@ class FastH5Writer {
|
||||
uint64_t current_pulse_id_;
|
||||
size_t current_frame_index_;
|
||||
|
||||
std::unordered_map<std::string, std::shared_ptr<char[]>> buffers_;
|
||||
std::unordered_map<std::string, std::unique_ptr<char>> buffers_;
|
||||
std::unordered_map<std::string, H5::DataSet> datasets_;
|
||||
|
||||
std::unordered_map<std::string, H5::PredType> scalar_metadata_;
|
||||
@@ -44,6 +44,8 @@ public:
|
||||
const std::string& device_name,
|
||||
const std::string& root_folder);
|
||||
|
||||
virtual ~FastH5Writer();
|
||||
|
||||
template <class T> void add_scalar_metadata(
|
||||
const std::string& metadata_name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user