mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
* made a link to bash autocompletion script in main folder, and replaced all references to 'det' command with 'sls_detector'
19 lines
557 B
C++
19 lines
557 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());
|
|
}
|
|
}
|
|
|
|
// THIS COMMENT TO BE REPLACED BY THE ACTUAL CODE (1) - DO NOT REMOVE
|
|
|
|
} // namespace sls
|