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());
94 while(!lastError() && hasNext())
98 small_int_list.push_back(toInteger());
115 while(!lastError() && hasNext())
119 positions.push_back(toInteger());
136 while(!lastError() && hasNext())
138 if(isUnsignedInteger())
140 int_list.push_back(toUnsignedInteger());
157 while(!lastError() && hasNext())
159 if(isUnsignedInteger())
161 int_list.push_back(toUnsignedInteger());
180 while(!lastError() && hasNext())
198 str_list.reserve(length());
201 while(!lastError() && hasNext())
205 str_list.push_back(the_str);
219 cbor_map = QCborValue::fromCbor(*this).toMap();
226 qDebug() << lastError().toString();
235 cbor_array = QCborValue::fromCbor(*this).toArray();
242 qDebug() << lastError().toString();
bool readCborMap(QCborMap &cbor_map)
transfer the entire current CBOR map to a QCborMap object
virtual ~CborStreamReader()
bool readCborArray(QCborArray &cbor_array)
transfer the entire current CBOR array to a QCborMap object
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...