51 auto r = readString();
52 while(r.status == QCborStreamReader::Ok)
58 if(r.status == QCborStreamReader::Error)
72 while(!lastError() && hasNext())
76 double_list.push_back(toDouble());
93 while(!lastError() && hasNext())
97 positions.push_back(toInteger());
114 while(!lastError() && hasNext())
116 if(isUnsignedInteger())
118 int_list.push_back(toUnsignedInteger());
137 while(!lastError() && hasNext())
155 cbor_map = QCborValue::fromCbor(*this).toMap();
162 qDebug() << lastError().toString();
171 cbor_array = QCborValue::fromCbor(*this).toArray();
178 qDebug() << lastError().toString();
bool readCborMap(QCborMap &cbor_map)
virtual ~CborStreamReader()
bool readCborArray(QCborArray &cbor_array)
bool readArray(std::vector< std::size_t > &int_list)
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...
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...