mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 22:40:02 +02:00
* replacing detp with sls_Detector_put and detg with sls_detector_get * sls_detector_not implemented, but extended message to ask user to use sls_detector_get or sls_detector_put * autocompletion also for sls_detector or det
20 lines
603 B
C++
20 lines
603 B
C++
#include "inferAction.h"
|
|
#include "sls/sls_detector_defs.h"
|
|
namespace sls {
|
|
|
|
int InferAction::infer(sls::CmdParser &parser, std::ostream &os) {
|
|
args = parser.arguments();
|
|
cmd = parser.command();
|
|
auto it = functions.find(parser.command());
|
|
if (it != functions.end()) {
|
|
return ((*this).*(it->second))();
|
|
} else {
|
|
throw RuntimeError(
|
|
"sls_detector not implemented for command: " + parser.command() +
|
|
". Use sls_detector_get or sls_detector_put.");
|
|
}
|
|
}
|
|
|
|
// THIS COMMENT TO BE REPLACED BY THE ACTUAL CODE (1) - DO NOT REMOVE
|
|
|
|
} // namespace sls
|