Change the value of an attribute and set it appropriately to new values by generating action commands, register this to the undo stack
121{
122 switch ( attribute_info.p_type )
123 {
125 {
126 if ( attribute_info.p_is_multi_value )
127 {
129 Object, attribute_info,
130 convert::to<std::vector<bool>> ( values, attribute_info.p_int_format ) );
131 }
132 else
133 {
136 }
137
138 break;
139 }
140
146 {
147 if ( attribute_info.p_is_multi_value )
148 {
150 convert::to<std::vector<std::string>> ( values ) );
151 }
152 else
153 {
155 }
156
157 break;
158 }
159
161 {
162 if ( attribute_info.p_is_multi_value )
163 {
165 Object, attribute_info,
166 convert::to<std::vector<float>> ( values, attribute_info.p_int_format ) );
167 }
168 else
169 {
172 }
173
174 break;
175 }
176
178 {
179 if ( attribute_info.p_is_multi_value )
180 {
182 Object, attribute_info,
183 convert::to<std::vector<double>> ( values, attribute_info.p_int_format ) );
184 }
185 else
186 {
189 }
190
191 break;
192 }
193
195 {
196 if ( attribute_info.p_is_multi_value )
197 {
199 Object, attribute_info,
200 convert::to<std::vector<int8_t>> ( values, attribute_info.p_int_format ) );
201 }
202 else
203 {
206 }
207
208 break;
209 }
210
212 {
213 if ( attribute_info.p_is_multi_value )
214 {
216 Object, attribute_info,
217 convert::to<std::vector<int16_t>> ( values, attribute_info.p_int_format ) );
218 }
219 else
220 {
223 }
224
225 break;
226 }
227
229 {
230 if ( attribute_info.p_is_multi_value )
231 {
233 Object, attribute_info,
234 convert::to<std::vector<int32_t>> ( values, attribute_info.p_int_format ) );
235 }
236 else
237 {
240 }
241
242 break;
243 }
244
246 {
247 if ( attribute_info.p_is_multi_value )
248 {
250 Object, attribute_info,
251 convert::to<std::vector<int64_t>> ( values, attribute_info.p_int_format ) );
252 }
253 else
254 {
257 }
258
259 break;
260 }
261
263 {
264 if ( attribute_info.p_is_multi_value )
265 {
267 Object, attribute_info,
268 convert::to<std::vector<u_int8_t>> ( values, attribute_info.p_int_format ) );
269 }
270 else
271 {
274 }
275
276 break;
277 }
278
280 {
281 if ( attribute_info.p_is_multi_value )
282 {
284 Object, attribute_info,
285 convert::to<std::vector<u_int16_t>> ( values, attribute_info.p_int_format ) );
286 }
287 else
288 {
290 Object, attribute_info,
292 }
293
294 break;
295 }
296
298 {
299 if ( attribute_info.p_is_multi_value )
300 {
302 Object, attribute_info,
303 convert::to<std::vector<u_int32_t>> ( values, attribute_info.p_int_format ) );
304 }
305 else
306 {
308 Object, attribute_info,
310 }
311
312 break;
313 }
314
316 {
318 Object, attribute_info,
319 convert::to<std::vector<u_int64_t>> ( values, attribute_info.p_int_format ) );
321 Object, attribute_info,
323
324 break;
325 }
326
327 default:
328 break;
329 }
330}
void modobj(tref Object, dunedaq::conffwk::attribute_t const &AttributeData, T Value)
int8_t to< int8_t >(QStringList const &DataList, dunedaq::conffwk::int_format_t Format)
u_int64_t to< u_int64_t >(QStringList const &DataList, dunedaq::conffwk::int_format_t Format)
int16_t to< int16_t >(QStringList const &DataList, dunedaq::conffwk::int_format_t Format)
u_int8_t to< u_int8_t >(QStringList const &DataList, dunedaq::conffwk::int_format_t Format)
int64_t to< int64_t >(QStringList const &DataList, dunedaq::conffwk::int_format_t Format)
T to(QStringList const &DataList)
std::string to< std::string >(QStringList const &DataList)
int32_t to< int32_t >(QStringList const &DataList, dunedaq::conffwk::int_format_t Format)
u_int32_t to< u_int32_t >(QStringList const &DataList, dunedaq::conffwk::int_format_t Format)
double to< double >(QStringList const &DataList, dunedaq::conffwk::int_format_t Format)
u_int16_t to< u_int16_t >(QStringList const &DataList, dunedaq::conffwk::int_format_t Format)
float to< float >(QStringList const &DataList, dunedaq::conffwk::int_format_t Format)