47 auto r = readString();
48 while(r.status == QCborStreamReader::Ok)
54 if(r.status == QCborStreamReader::Error)
68 while(!lastError() && hasNext())
72 double_list.push_back(toDouble());
89 while(!lastError() && hasNext())
93 positions.push_back(toInteger());
110 while(!lastError() && hasNext())
112 if(isUnsignedInteger())
114 int_list.push_back(toUnsignedInteger());
133 while(!lastError() && hasNext())
135 if(decodeString(the_str))
151 cbor_map = QCborValue::fromCbor(*this).toMap();
158 qDebug() << lastError().toString();
167 cbor_array = QCborValue::fromCbor(*this).toArray();
174 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...