Fix parameters order to be consistent across repo

This commit is contained in:
2020-05-14 11:46:03 +02:00
parent 8b379f32d4
commit 80765f3fc5
4 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -23,8 +23,8 @@ class BufferH5Writer {
core_buffer::MODULE_X_SIZE
};
const std::string device_name_;
const std::string root_folder_;
const std::string device_name_;
const std::string LATEST_filename_;
const std::string CURRENT_filename_;
@@ -42,8 +42,8 @@ class BufferH5Writer {
public:
BufferH5Writer(
const std::string& device_name,
const std::string& root_folder);
const std::string& root_folder,
const std::string& device_name);
virtual ~BufferH5Writer();
+3 -3
View File
@@ -13,10 +13,10 @@ using namespace std;
using namespace core_buffer;
BufferH5Writer::BufferH5Writer(
const string& device_name,
const string& root_folder) :
device_name_(device_name),
const string& root_folder,
const string& device_name) :
root_folder_(root_folder),
device_name_(device_name),
LATEST_filename_(root_folder + "/" + device_name + "/LATEST"),
CURRENT_filename_(root_folder + "/" + device_name + "/CURRENT"),
output_filename_(""),
+1 -1
View File
@@ -17,7 +17,7 @@ TEST(BufferH5Writer, basic_interaction)
metadata.daq_rec = 3;
metadata.n_received_packets = 128;
BufferH5Writer writer(device_name, root_folder);
BufferH5Writer writer(root_folder, device_name);
writer.set_pulse_id(pulse_id);
writer.write(&metadata, buffer.get());
writer.close_file();
+1 -1
View File
@@ -59,7 +59,7 @@ int main (int argc, char *argv[]) {
uint64_t n_corrupted_frames = 0;
uint64_t last_pulse_id = 0;
BufferH5Writer writer(device_name, root_folder);
BufferH5Writer writer(root_folder, device_name);
BufferUdpReceiver receiver(udp_port, source_id);
pid_t tid;