37 for(
auto it_binarr = cbor_map.cbegin(); it_binarr != cbor_map.cend(); it_binarr++)
39 txt_value = it_binarr.key().toString();
40 qDebug() << txt_value;
41 if(txt_value ==
"cvParam")
43 cvParamMap.fromQCborArray(it_binarr.value().toArray());
59 double rt_seconds = it->second.valueDouble;
60 if(it->second.unitAccession ==
"UO:0000031")
63 rt_seconds = rt_seconds * 60;
76 reader.enterContainer();
77 qDebug() << txt_value;
78 while(reader.hasNext() && (!reader.isInvalid()))
84 qDebug() << txt_value;
85 if(txt_value ==
"cvParam")
105 reader.leaveContainer();
113 scan.insert(
"cvParam",
cvParamMap.toJsonArray());
simple override of the raw QCborStreamReader This adds convenient functions to put CBOR data into C++...
bool decodeString(QString &the_str)
decode the current cbor value as a string the point to the next value the current value is decoded as...
PSI scan object for mzML/mzCBOR.
QJsonObject toJsonObject() const
write the structure to a JSON object
void fromCbor(CborStreamReader &reader)
void fromQCborMap(const QCborMap &reader)
double getRtInSeconds() const