From ebcd23f3d86976fbfe2768d3ee0925db2cff773a Mon Sep 17 00:00:00 2001 From: Tobias Frust Date: Thu, 21 Jul 2016 10:23:08 +0200 Subject: packet size is now configurable --- src/Detector/Detector.cpp | 4 ++-- src/Detector/Detector.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Detector') diff --git a/src/Detector/Detector.cpp b/src/Detector/Detector.cpp index 5dde6d1..03abffe 100644 --- a/src/Detector/Detector.cpp +++ b/src/Detector/Detector.cpp @@ -10,12 +10,12 @@ #include "Detector.h" -Detector::Detector(const std::string& address, const std::string& configPath, const unsigned int timeIntervall) : +Detector::Detector(const std::string& address, const std::string& configPath, const unsigned int timeIntervall, const int packetSize) : timeIntervall_{timeIntervall}, numberOfDetectorModules_{27} { modules_.reserve(numberOfDetectorModules_); for(auto i = 0; i < numberOfDetectorModules_; i++){ - modules_.emplace_back(i, address, configPath); + modules_.emplace_back(i, address, configPath, packetSize); } } diff --git a/src/Detector/Detector.h b/src/Detector/Detector.h index 1969dbd..16f946a 100644 --- a/src/Detector/Detector.h +++ b/src/Detector/Detector.h @@ -17,7 +17,7 @@ class Detector { public: - Detector(const std::string& address, const std::string& configPath, const unsigned int timeIntervall); + Detector(const std::string& address, const std::string& configPath, const unsigned int timeIntervall, const int packetSize); auto run() -> void; private: -- cgit v1.2.3