105 const QString &old_native_id)
119 QCborMap new_user_param;
120 new_user_param.insert(QString(
"name"),
"[PAPPSO]original spectrum native id");
121 new_user_param.insert(QString(
"type"),
"xsd:string");
122 new_user_param.insert(QString(
"value"), old_native_id);
127 bool write_user_param =
false;
128 for(
auto it_cbor = spectrum.begin(); it_cbor != spectrum.end(); it_cbor++)
130 QString current_key = it_cbor.key().toString();
134 if(current_key ==
"userParam")
136 QCborArray user_param_array = it_cbor.value().toArray();
137 user_param_array.append(new_user_param);
149 write_user_param =
false;
152 if(current_key ==
"cvParam")
157 write_user_param =
true;