mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-04 11:44:12 +02:00
Remove unused source_id
This commit is contained in:
@@ -2,17 +2,15 @@
|
||||
#define SF_DAQ_BUFFER_REPLAYH5READER_HPP
|
||||
|
||||
#include <string>
|
||||
#include "formats.hpp"
|
||||
#include <H5Cpp.h>
|
||||
#include <memory>
|
||||
#include "buffer_config.hpp"
|
||||
|
||||
#include "formats.hpp"
|
||||
|
||||
class ReplayH5Reader {
|
||||
|
||||
const std::string device_;
|
||||
const std::string channel_name_;
|
||||
const uint16_t source_id_;
|
||||
|
||||
H5::H5File current_file_;
|
||||
std::string current_filename_;
|
||||
@@ -29,8 +27,7 @@ class ReplayH5Reader {
|
||||
public:
|
||||
ReplayH5Reader(
|
||||
const std::string device,
|
||||
const std::string channel_name,
|
||||
const uint16_t source_id);
|
||||
const std::string channel_name);
|
||||
virtual ~ReplayH5Reader();
|
||||
|
||||
void close_file();
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
#include "ReplayH5Reader.hpp"
|
||||
|
||||
#include "BufferUtils.hpp"
|
||||
#include <iostream>
|
||||
#include <chrono>
|
||||
#include <cstring>
|
||||
#include "date.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace core_buffer;
|
||||
@@ -67,11 +63,9 @@ void ReplayH5Reader::load_buffers(const uint64_t pulse_id)
|
||||
|
||||
ReplayH5Reader::ReplayH5Reader(
|
||||
const string device,
|
||||
const string channel_name,
|
||||
const uint16_t source_id) :
|
||||
const string channel_name) :
|
||||
device_(device),
|
||||
channel_name_(channel_name),
|
||||
source_id_(source_id)
|
||||
channel_name_(channel_name)
|
||||
{
|
||||
m_buffer_ = new ModuleFrame[REPLAY_READ_BUFFER_SIZE];
|
||||
f_buffer_ = new char[MODULE_N_BYTES * REPLAY_READ_BUFFER_SIZE];
|
||||
|
||||
Reference in New Issue
Block a user