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.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/DetectorModule/DetectorModule.h b/src/DetectorModule/DetectorModule.h
index a1c2754..1bc36bb 100644
--- a/src/DetectorModule/DetectorModule.h
+++ b/src/DetectorModule/DetectorModule.h
@@ -19,16 +19,6 @@
#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();
-//}
-
class DetectorModule {
public:
DetectorModule(const int detectorID, const std::string& address, const std::string& configPath);
@@ -37,6 +27,7 @@ public:
private:
std::vector<unsigned short> buffer_;
+ std::vector<char> sendBuffer_;
int detectorID_;
UDPClient client_;
@@ -45,13 +36,14 @@ private:
int numberOfPlanes_;
int numberOfProjections_;
int numberOfDetectorsPerModule_;
- unsigned long long numberOfFrames_;
+ unsigned int numberOfFrames_;
std::string path_, fileName_, fileEnding_;
std::size_t index_;
auto readConfig(const std::string& configFile) -> bool;
auto readInput() -> void;
+ auto send() -> void;
};