Change the value of an attribute and set it appropriately to new values by generating action commands, register this to the undo stack
116{
117 switch ( attribute_info.p_type )
118 {
120 {
121 if ( attribute_info.p_is_multi_value )
122 {
124 Object, attribute_info,
125 convert::to<std::vector<bool>> ( values, attribute_info.p_int_format ) );
126 }
127 else
128 {
131 }
132
133 break;
134 }
135
141 {
142 if ( attribute_info.p_is_multi_value )
143 {
145 convert::to<std::vector<std::string>> ( values ) );
146 }
147 else
148 {
150 }
151
152 break;
153 }
154
156 {
157 if ( attribute_info.p_is_multi_value )
158 {
160 Object, attribute_info,
161 convert::to<std::vector<float>> ( values, attribute_info.p_int_format ) );
162 }
163 else
164 {
167 }
168
169 break;
170 }
171
173 {
174 if ( attribute_info.p_is_multi_value )
175 {
177 Object, attribute_info,
178 convert::to<std::vector<double>> ( values, attribute_info.p_int_format ) );
179 }
180 else
181 {
184 }
185
186 break;
187 }
188
190 {
191 if ( attribute_info.p_is_multi_value )
192 {
194 Object, attribute_info,
195 convert::to<std::vector<int8_t>> ( values, attribute_info.p_int_format ) );
196 }
197 else
198 {
201 }
202
203 break;
204 }
205
207 {
208 if ( attribute_info.p_is_multi_value )
209 {
211 Object, attribute_info,
212 convert::to<std::vector<int16_t>> ( values, attribute_info.p_int_format ) );
213 }
214 else
215 {
218 }
219
220 break;
221 }
222
224 {
225 if ( attribute_info.p_is_multi_value )
226 {
228 Object, attribute_info,
229 convert::to<std::vector<int32_t>> ( values, attribute_info.p_int_format ) );
230 }
231 else
232 {
235 }
236
237 break;
238 }
239
241 {
242 if ( attribute_info.p_is_multi_value )
243 {
245 Object, attribute_info,
246 convert::to<std::vector<int64_t>> ( values, attribute_info.p_int_format ) );
247 }
248 else
249 {
252 }
253
254 break;
255 }
256
258 {
259 if ( attribute_info.p_is_multi_value )
260 {
262 Object, attribute_info,
263 convert::to<std::vector<u_int8_t>> ( values, attribute_info.p_int_format ) );
264 }
265 else
266 {
269 }
270
271 break;
272 }
273
275 {
276 if ( attribute_info.p_is_multi_value )
277 {
279 Object, attribute_info,
280 convert::to<std::vector<u_int16_t>> ( values, attribute_info.p_int_format ) );
281 }
282 else
283 {
285 Object, attribute_info,
287 }
288
289 break;
290 }
291
293 {
294 if ( attribute_info.p_is_multi_value )
295 {
297 Object, attribute_info,
298 convert::to<std::vector<u_int32_t>> ( values, attribute_info.p_int_format ) );
299 }
300 else
301 {
303 Object, attribute_info,
305 }
306
307 break;
308 }
309
311 {
313 Object, attribute_info,
314 convert::to<std::vector<u_int64_t>> ( values, attribute_info.p_int_format ) );
316 Object, attribute_info,
318
319 break;
320 }
321
322 default:
323 break;
324 }
325}
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)