Merge branch 'refactor' of github.com:slsdetectorgroup/slsDetectorPackage into refactor

This commit is contained in:
2018-10-10 12:24:20 +02:00
3 changed files with 64 additions and 69 deletions

View File

@ -14,6 +14,7 @@ class SharedMemory;
class ZmqSocket;
class detectorData;
#include <memory>
#include <vector>
#include <string>
#include <semaphore.h>
@ -162,7 +163,7 @@ public:
* @param pos positin of detector in array (-1 is for all)
* @returns result for detector at that position or concatenated string of all detectors
*/
std::string concatResultOrPos(std::string (slsDetector::*somefunc)(int), int pos);
// std::string concatResultOrPos(std::string (slsDetector::*somefunc)(int), int pos);
/**
* Decodes which detector and the corresponding channel numbers for it
@ -1694,13 +1695,13 @@ private:
sharedMultiSlsDetector *thisMultiDetector;
/** pointers to the slsDetector structures */
std::vector <slsDetector*> detectors;
std::vector <std::unique_ptr<slsDetector>> detectors;
/** data streaming (down stream) enabled in client (zmq sckets created) */
bool client_downstream;
/** ZMQ Socket - Receiver to Client */
std::vector <ZmqSocket*> zmqSocket;
std::vector <std::unique_ptr<ZmqSocket>> zmqSocket;
/** semaphore to let postprocessing thread continue for next scan/measurement */