mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-07-13 03:11:50 +02:00
cmd generation and formatting
This commit is contained in:
@ -2193,20 +2193,6 @@ return 0
|
|||||||
}
|
}
|
||||||
__rx_roi() {
|
__rx_roi() {
|
||||||
FCN_RETURN=""
|
FCN_RETURN=""
|
||||||
if [[ ${IS_GET} -eq 0 ]]; then
|
|
||||||
if [[ "${cword}" == "2" ]]; then
|
|
||||||
FCN_RETURN=""
|
|
||||||
fi
|
|
||||||
if [[ "${cword}" == "3" ]]; then
|
|
||||||
FCN_RETURN=""
|
|
||||||
fi
|
|
||||||
if [[ "${cword}" == "4" ]]; then
|
|
||||||
FCN_RETURN=""
|
|
||||||
fi
|
|
||||||
if [[ "${cword}" == "5" ]]; then
|
|
||||||
FCN_RETURN=""
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
__rx_silent() {
|
__rx_silent() {
|
||||||
|
@ -2117,20 +2117,6 @@ return 0
|
|||||||
}
|
}
|
||||||
__rx_roi() {
|
__rx_roi() {
|
||||||
FCN_RETURN=""
|
FCN_RETURN=""
|
||||||
if [[ ${IS_GET} -eq 0 ]]; then
|
|
||||||
if [[ "${cword}" == "2" ]]; then
|
|
||||||
FCN_RETURN=""
|
|
||||||
fi
|
|
||||||
if [[ "${cword}" == "3" ]]; then
|
|
||||||
FCN_RETURN=""
|
|
||||||
fi
|
|
||||||
if [[ "${cword}" == "4" ]]; then
|
|
||||||
FCN_RETURN=""
|
|
||||||
fi
|
|
||||||
if [[ "${cword}" == "5" ]]; then
|
|
||||||
FCN_RETURN=""
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
__rx_silent() {
|
__rx_silent() {
|
||||||
|
@ -8831,25 +8831,8 @@ rx_roi:
|
|||||||
store_result_in_t: true
|
store_result_in_t: true
|
||||||
PUT:
|
PUT:
|
||||||
args:
|
args:
|
||||||
- arg_types:
|
- arg_types: []
|
||||||
- int
|
argc: -1
|
||||||
- int
|
|
||||||
argc: 2
|
|
||||||
cast_input: []
|
|
||||||
check_det_id: false
|
|
||||||
convert_det_id: true
|
|
||||||
function: ''
|
|
||||||
input: []
|
|
||||||
input_types: []
|
|
||||||
output: []
|
|
||||||
require_det_id: false
|
|
||||||
store_result_in_t: false
|
|
||||||
- arg_types:
|
|
||||||
- int
|
|
||||||
- int
|
|
||||||
- int
|
|
||||||
- int
|
|
||||||
argc: 4
|
|
||||||
cast_input: []
|
cast_input: []
|
||||||
check_det_id: false
|
check_det_id: false
|
||||||
convert_det_id: true
|
convert_det_id: true
|
||||||
|
@ -2769,22 +2769,8 @@ int InferAction::rx_realudpsocksize() {
|
|||||||
|
|
||||||
int InferAction::rx_roi() {
|
int InferAction::rx_roi() {
|
||||||
|
|
||||||
if (args.size() == 0) {
|
throw RuntimeError("sls_detector is disabled for command: rx_roi. Use "
|
||||||
return slsDetectorDefs::GET_ACTION;
|
"sls_detector_get or sls_detector_put");
|
||||||
}
|
|
||||||
|
|
||||||
if (args.size() == 2) {
|
|
||||||
return slsDetectorDefs::PUT_ACTION;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (args.size() == 4) {
|
|
||||||
return slsDetectorDefs::PUT_ACTION;
|
|
||||||
}
|
|
||||||
|
|
||||||
else {
|
|
||||||
|
|
||||||
throw RuntimeError("Could not infer action: Wrong number of arguments");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int InferAction::rx_silent() {
|
int InferAction::rx_silent() {
|
||||||
|
Reference in New Issue
Block a user