Change the value of an attribute and set it appropriately to new values by generating action commands, register this to the undo stack
101{
102 switch (attribute_info.p_type) {
104 if (attribute_info.p_is_multi_value) {
106 } else {
108 }
109
110 break;
111 }
112
118 if (attribute_info.p_is_multi_value) {
120 } else {
122 }
123
124 break;
125 }
126
128 if (attribute_info.p_is_multi_value) {
130 } else {
132 }
133
134 break;
135 }
136
138 if (attribute_info.p_is_multi_value) {
140 } else {
142 }
143
144 break;
145 }
146
148 if (attribute_info.p_is_multi_value) {
150 } else {
152 }
153
154 break;
155 }
156
158 if (attribute_info.p_is_multi_value) {
160 Object, attribute_info,
convert::to<std::vector<int16_t>>(values, attribute_info.p_int_format));
161 } else {
163 }
164
165 break;
166 }
167
169 if (attribute_info.p_is_multi_value) {
171 Object, attribute_info,
convert::to<std::vector<int32_t>>(values, attribute_info.p_int_format));
172 } else {
174 }
175
176 break;
177 }
178
180 if (attribute_info.p_is_multi_value) {
182 Object, attribute_info,
convert::to<std::vector<int64_t>>(values, attribute_info.p_int_format));
183 } else {
185 }
186
187 break;
188 }
189
191 if (attribute_info.p_is_multi_value) {
193 Object, attribute_info,
convert::to<std::vector<u_int8_t>>(values, attribute_info.p_int_format));
194 } else {
196 }
197
198 break;
199 }
200
202 if (attribute_info.p_is_multi_value) {
204 Object, attribute_info,
convert::to<std::vector<u_int16_t>>(values, attribute_info.p_int_format));
205 } else {
207 }
208
209 break;
210 }
211
213 if (attribute_info.p_is_multi_value) {
215 Object, attribute_info,
convert::to<std::vector<u_int32_t>>(values, attribute_info.p_int_format));
216 } else {
218 }
219
220 break;
221 }
222
224 if (attribute_info.p_is_multi_value)
226 Object, attribute_info,
convert::to<std::vector<u_int64_t>>(values, attribute_info.p_int_format));
227 else
229
230 break;
231 }
232
233 default:
234 break;
235 }
236}
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)