mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
Generate commands/fix detp detg command rename (#882)
* 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
This commit is contained in:
@ -18,17 +18,20 @@ int InferAction::infer(sls::CmdParser &parser, std::ostream &os) {
|
||||
|
||||
} else {
|
||||
|
||||
throw RuntimeError("sls_detector not implemented for command: " +
|
||||
throw RuntimeError(
|
||||
|
||||
parser.command());
|
||||
"sls_detector not implemented for command: " + parser.command() +
|
||||
|
||||
". Use sls_detector_get or sls_detector_put.");
|
||||
}
|
||||
}
|
||||
|
||||
int InferAction::acquire() {
|
||||
|
||||
if (args.size() == 0) {
|
||||
throw RuntimeError("sls_detector is disabled for command: acquire with "
|
||||
"number of arguments 0. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: acquire with number of "
|
||||
"arguments 0. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
else {
|
||||
@ -131,8 +134,8 @@ int InferAction::adcinvert() {
|
||||
|
||||
int InferAction::adclist() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: adclist. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: adclist. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::adcname() {
|
||||
@ -158,8 +161,9 @@ int InferAction::adcphase() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: adcphase "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: adcphase with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -207,8 +211,9 @@ int InferAction::adcvpp() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: adcvpp with "
|
||||
"number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: adcvpp with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -271,8 +276,8 @@ int InferAction::autocompdisable() {
|
||||
|
||||
int InferAction::badchannels() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: badchannels. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: badchannels. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::blockingtrigger() {
|
||||
@ -310,8 +315,9 @@ int InferAction::burstperiod() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: burstperiod "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: burstperiod with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -475,8 +481,9 @@ int InferAction::clkphase() {
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
throw RuntimeError("sls_detector is disabled for command: clkphase "
|
||||
"with number of arguments 2. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: clkphase with number of "
|
||||
"arguments 2. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 3) {
|
||||
@ -514,7 +521,7 @@ int InferAction::compdisabletime() {
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: compdisabletime with number "
|
||||
"of arguments 1. Use detg or detp");
|
||||
"of arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -557,8 +564,8 @@ int InferAction::config() {
|
||||
|
||||
int InferAction::counters() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: counters. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: counters. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::currentsource() {
|
||||
@ -592,8 +599,9 @@ int InferAction::dac() {
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
throw RuntimeError("sls_detector is disabled for command: dac with "
|
||||
"number of arguments 2. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: dac with number of "
|
||||
"arguments 2. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 3) {
|
||||
@ -620,8 +628,8 @@ int InferAction::dacindex() {
|
||||
|
||||
int InferAction::daclist() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: daclist. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: daclist. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::dacname() {
|
||||
@ -695,8 +703,9 @@ int InferAction::dbitphase() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: dbitphase "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: dbitphase with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -732,8 +741,9 @@ int InferAction::defaultdac() {
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
throw RuntimeError("sls_detector is disabled for command: defaultdac "
|
||||
"with number of arguments 2. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: defaultdac with number of "
|
||||
"arguments 2. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 3) {
|
||||
@ -765,8 +775,9 @@ int InferAction::delay() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: delay with "
|
||||
"number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: delay with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -897,8 +908,8 @@ int InferAction::dsamples() {
|
||||
|
||||
int InferAction::execcommand() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: execcommand. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: execcommand. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::exptime() {
|
||||
@ -908,8 +919,9 @@ int InferAction::exptime() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: exptime with "
|
||||
"number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: exptime with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -929,8 +941,9 @@ int InferAction::exptime1() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: exptime1 "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: exptime1 with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -950,8 +963,9 @@ int InferAction::exptime2() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: exptime2 "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: exptime2 with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -971,8 +985,9 @@ int InferAction::exptime3() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: exptime3 "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: exptime3 with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -1308,8 +1323,9 @@ int InferAction::frametime() {
|
||||
int InferAction::free() {
|
||||
|
||||
if (args.size() == 0) {
|
||||
throw RuntimeError("sls_detector is disabled for command: free with "
|
||||
"number of arguments 0. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: free with number of "
|
||||
"arguments 0. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
else {
|
||||
@ -1336,8 +1352,8 @@ int InferAction::fwrite() {
|
||||
|
||||
int InferAction::gaincaps() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: gaincaps. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: gaincaps. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::gainmode() {
|
||||
@ -1379,8 +1395,9 @@ int InferAction::gatedelay() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: gatedelay "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: gatedelay with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -1400,8 +1417,9 @@ int InferAction::gatedelay1() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: gatedelay1 "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: gatedelay1 with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -1421,8 +1439,9 @@ int InferAction::gatedelay2() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: gatedelay2 "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: gatedelay2 with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -1442,8 +1461,9 @@ int InferAction::gatedelay3() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: gatedelay3 "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: gatedelay3 with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -1514,8 +1534,8 @@ int InferAction::highvoltage() {
|
||||
|
||||
int InferAction::hostname() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: hostname. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: hostname. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::im_a() {
|
||||
@ -1956,32 +1976,32 @@ int InferAction::patioctrl() {
|
||||
|
||||
int InferAction::patlimits() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patlimits. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patlimits. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patloop() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patloop. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patloop. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patloop0() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patloop0. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patloop0. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patloop1() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patloop1. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patloop1. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patloop2() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patloop2. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patloop2. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patmask() {
|
||||
@ -2002,26 +2022,26 @@ int InferAction::patmask() {
|
||||
|
||||
int InferAction::patnloop() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patnloop. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patnloop. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patnloop0() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patnloop0. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patnloop0. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patnloop1() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patnloop1. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patnloop1. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patnloop2() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patnloop2. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patnloop2. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patsetbit() {
|
||||
@ -2066,50 +2086,50 @@ int InferAction::patternstart() {
|
||||
|
||||
int InferAction::patwait() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patwait. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patwait. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patwait0() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patwait0. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patwait0. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patwait1() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patwait1. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patwait1. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patwait2() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patwait2. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patwait2. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patwaittime() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patwaittime. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patwaittime. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patwaittime0() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patwaittime0. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patwaittime0. "
|
||||
"Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patwaittime1() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patwaittime1. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patwaittime1. "
|
||||
"Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patwaittime2() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: patwaittime2. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: patwaittime2. "
|
||||
"Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::patword() {
|
||||
@ -2155,8 +2175,9 @@ int InferAction::period() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: period with "
|
||||
"number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: period with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -2247,8 +2268,8 @@ int InferAction::powerindex() {
|
||||
|
||||
int InferAction::powerlist() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: powerlist. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: powerlist. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::powername() {
|
||||
@ -2601,8 +2622,8 @@ int InferAction::rx_clearroi() {
|
||||
|
||||
int InferAction::rx_dbitlist() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: rx_dbitlist. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: rx_dbitlist. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::rx_dbitoffset() {
|
||||
@ -2695,21 +2716,23 @@ int InferAction::rx_framesperfile() {
|
||||
|
||||
int InferAction::rx_hostname() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: rx_hostname. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: rx_hostname. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::rx_jsonaddheader() {
|
||||
|
||||
throw RuntimeError("sls_detector is disabled for command: "
|
||||
"rx_jsonaddheader. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: rx_jsonaddheader. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::rx_jsonpara() {
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: rx_jsonpara "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: rx_jsonpara with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -2852,8 +2875,8 @@ int InferAction::rx_start() {
|
||||
|
||||
int InferAction::rx_status() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: rx_status. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: rx_status. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::rx_stop() {
|
||||
@ -3182,8 +3205,8 @@ int InferAction::signalindex() {
|
||||
|
||||
int InferAction::signallist() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: signallist. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: signallist. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::signalname() {
|
||||
@ -3228,8 +3251,8 @@ int InferAction::slowadcindex() {
|
||||
|
||||
int InferAction::slowadclist() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: slowadclist. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: slowadclist. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::slowadcname() {
|
||||
@ -3274,8 +3297,8 @@ int InferAction::start() {
|
||||
|
||||
int InferAction::status() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: status. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: status. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::stop() {
|
||||
@ -3315,7 +3338,7 @@ int InferAction::storagecell_delay() {
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: storagecell_delay with "
|
||||
"number of arguments 1. Use detg or detp");
|
||||
"number of arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -3351,8 +3374,9 @@ int InferAction::subdeadtime() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: subdeadtime "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: subdeadtime with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -3372,8 +3396,9 @@ int InferAction::subexptime() {
|
||||
}
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: subexptime "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: subexptime with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
if (args.size() == 2) {
|
||||
@ -3769,8 +3794,9 @@ int InferAction::triggersl() {
|
||||
int InferAction::trimbits() {
|
||||
|
||||
if (args.size() == 1) {
|
||||
throw RuntimeError("sls_detector is disabled for command: trimbits "
|
||||
"with number of arguments 1. Use detg or detp");
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: trimbits with number of "
|
||||
"arguments 1. Use sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
else {
|
||||
@ -3781,8 +3807,8 @@ int InferAction::trimbits() {
|
||||
|
||||
int InferAction::trimen() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: trimen. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: trimen. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::trimval() {
|
||||
@ -3939,8 +3965,8 @@ int InferAction::udp_dstip2() {
|
||||
|
||||
int InferAction::udp_dstlist() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: udp_dstlist. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: udp_dstlist. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::udp_dstmac() {
|
||||
@ -4441,8 +4467,8 @@ int InferAction::vetoalg() {
|
||||
|
||||
int InferAction::vetofile() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: vetofile. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: vetofile. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::vetophoton() {
|
||||
@ -4463,14 +4489,14 @@ int InferAction::vetophoton() {
|
||||
|
||||
int InferAction::vetoref() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: vetoref. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: vetoref. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::vetostream() {
|
||||
|
||||
throw RuntimeError(
|
||||
"sls_detector is disabled for command: vetostream. Use detg or detp");
|
||||
throw RuntimeError("sls_detector is disabled for command: vetostream. Use "
|
||||
"sls_detector_get or sls_detector_put");
|
||||
}
|
||||
|
||||
int InferAction::virtualFunction() {
|
||||
|
Reference in New Issue
Block a user