commented out concatResultOrPos which seems not to be used

This commit is contained in:
Erik Frojdh 2018-10-10 12:01:30 +02:00
parent 938dd5e06c
commit 6147383677
2 changed files with 12 additions and 12 deletions

View File

@ -107,17 +107,17 @@ std::vector<RT> multiSlsDetector::parallelCall(RT (slsDetector::*somefunc)(CT...
}
std::string multiSlsDetector::concatResultOrPos(std::string (slsDetector::*somefunc)(int), int pos) {
if (pos >= 0 && pos < (int)detectors.size()) {
return (detectors[pos].get()->*somefunc)(pos);
} else {
std::string s;
for (auto& d : detectors) {
s += (d.get()->*somefunc)(pos) + "+";
}
return s;
}
}
// std::string multiSlsDetector::concatResultOrPos(std::string (slsDetector::*somefunc)(int), int pos) {
// if (pos >= 0 && pos < (int)detectors.size()) {
// return (detectors[pos].get()->*somefunc)(pos);
// } else {
// std::string s;
// for (auto& d : detectors) {
// s += (d.get()->*somefunc)(pos) + "+";
// }
// return s;
// }
// }
int multiSlsDetector::decodeNChannel(int offsetX, int offsetY, int& channelX, int& channelY) {

View File

@ -163,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