mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-23 20:10:44 +02:00
Get parameters type fix
This commit is contained in:
@@ -70,12 +70,10 @@ void start_rest_api(WriterManager& writer_manager, uint16_t port)
|
||||
try {
|
||||
auto parameter_type = parameters_type->at(parameter_name);
|
||||
|
||||
if (parameter_type == NX_FLOAT) {
|
||||
if (parameter_type == NX_FLOAT || parameter_type == NX_NUMBER) {
|
||||
result[parameter_name] = boost::any_cast<double>(parameter_value);
|
||||
} else if (parameter_type == NX_CHAR) {
|
||||
result[parameter_name] = boost::any_cast<string>(parameter_value);
|
||||
|
||||
} else if (parameter_type == NX_DATE_TIME) {
|
||||
} else if (parameter_type == NX_CHAR || parameter_type == NXnote || parameter_type == NX_DATE_TIME) {
|
||||
result[parameter_name] = boost::any_cast<string>(parameter_value);
|
||||
|
||||
} else if (parameter_type == NX_INT) {
|
||||
|
||||
Reference in New Issue
Block a user