summaryrefslogtreecommitdiffstats
path: root/src/DetectorModule/DetectorModule.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/DetectorModule/DetectorModule.h')
-rw-r--r--src/DetectorModule/DetectorModule.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/DetectorModule/DetectorModule.h b/src/DetectorModule/DetectorModule.h
index de259fa..a1c2754 100644
--- a/src/DetectorModule/DetectorModule.h
+++ b/src/DetectorModule/DetectorModule.h
@@ -19,17 +19,16 @@
#include <thread>
#include <functional>
-void timer_start(std::function<void(void)> func, unsigned int interval){
- std::thread([func, interval]() {
- while (true)
- {
- func();
- std::this_thread::sleep_for(std::chrono::milliseconds(interval));
- }
- }).detach();
-}
-
-template <typename T>
+//void timer_start(std::function<void(void)> func, unsigned int interval){
+// std::thread([func, interval]() {
+// while (true)
+// {
+// func();
+// std::this_thread::sleep_for(std::chrono::milliseconds(interval));
+// }
+// }).detach();
+//}
+
class DetectorModule {
public:
DetectorModule(const int detectorID, const std::string& address, const std::string& configPath);
@@ -37,7 +36,7 @@ public:
auto sendPeriodically(unsigned int timeIntervall) -> void;
private:
- std::vector<T> buffer_;
+ std::vector<unsigned short> buffer_;
int detectorID_;
UDPClient client_;
@@ -46,7 +45,7 @@ private:
int numberOfPlanes_;
int numberOfProjections_;
int numberOfDetectorsPerModule_;
- std::size_t numberOfFrames_;
+ unsigned long long numberOfFrames_;
std::string path_, fileName_, fileEnding_;
std::size_t index_;