|
libpappsomspp
Library for mass spectrometry
|
simple override of the raw QCborStreamReader This adds convenient functions to put CBOR data into C++ structures More...
#include <cborstreamreader.h>
Public Member Functions | |
| CborStreamReader () | |
| CborStreamReader (QIODevice *device) | |
| virtual | ~CborStreamReader () |
| 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 a string, beware that using this function, the cbor stream will point to the next cbor value | |
| bool | readCborMap (QCborMap &cbor_map) |
| transfer the entire current CBOR map to a QCborMap object | |
| 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 | readArray (std::vector< qint64 > &int_list) |
| bool | readArray (std::vector< double > &double_list) |
| bool | readArray (std::vector< int > &positions) |
| bool | readArray (std::vector< std::uint8_t > &small_int_list) |
| bool | readArray (QStringList &str_list) |
| bool | readArray (std::vector< QString > &str_list) |
simple override of the raw QCborStreamReader This adds convenient functions to put CBOR data into C++ structures
Definition at line 45 of file cborstreamreader.h.
| pappso::cbor::CborStreamReader::CborStreamReader | ( | ) |
Default constructor
Definition at line 36 of file cborstreamreader.cpp.
| pappso::cbor::CborStreamReader::CborStreamReader | ( | QIODevice * | device | ) |
Definition at line 40 of file cborstreamreader.cpp.
|
virtual |
| bool pappso::cbor::CborStreamReader::decodeString | ( | QString & | the_str | ) |
decode the current cbor value as a string the point to the next value the current value is decoded as a string, beware that using this function, the cbor stream will point to the next cbor value
| the_str | reference to the string |
Definition at line 48 of file cborstreamreader.cpp.
Referenced by pappso::cbor::mzcbor::BinaryDataArray::fromCbor(), pappso::cbor::mzcbor::CvParam::fromCbor(), pappso::cbor::mzcbor::IsolationWindow::fromCbor(), pappso::cbor::mzcbor::Precursor::fromCbor(), pappso::cbor::mzcbor::Scan::fromCbor(), pappso::cbor::mzcbor::SelectedIon::fromCbor(), pappso::cbor::mzcbor::Spectrum::fromCbor(), readArray(), readArray(), pappso::cbor::psm::PsmProteinMap::readMap(), and pappso::cbor::mzcbor::Spectrum::readScanCvParams().
| bool pappso::cbor::CborStreamReader::readArray | ( | QStringList & | str_list | ) |
Definition at line 176 of file cborstreamreader.cpp.
References decodeString().
| bool pappso::cbor::CborStreamReader::readArray | ( | std::vector< double > & | double_list | ) |
Definition at line 69 of file cborstreamreader.cpp.
| bool pappso::cbor::CborStreamReader::readArray | ( | std::vector< int > & | positions | ) |
Definition at line 112 of file cborstreamreader.cpp.
| bool pappso::cbor::CborStreamReader::readArray | ( | std::vector< qint64 > & | int_list | ) |
Definition at line 154 of file cborstreamreader.cpp.
| bool pappso::cbor::CborStreamReader::readArray | ( | std::vector< QString > & | str_list | ) |
Definition at line 195 of file cborstreamreader.cpp.
References decodeString().
| bool pappso::cbor::CborStreamReader::readArray | ( | std::vector< std::size_t > & | int_list | ) |
Definition at line 133 of file cborstreamreader.cpp.
| bool pappso::cbor::CborStreamReader::readArray | ( | std::vector< std::uint8_t > & | small_int_list | ) |
Definition at line 90 of file cborstreamreader.cpp.
| bool pappso::cbor::CborStreamReader::readCborArray | ( | QCborArray & | cbor_array | ) |
transfer the entire current CBOR array to a QCborMap object
| cbor_map | QCborMap reference to use |
Definition at line 233 of file cborstreamreader.cpp.
| bool pappso::cbor::CborStreamReader::readCborMap | ( | QCborMap & | cbor_map | ) |
transfer the entire current CBOR map to a QCborMap object
| cbor_map | QCborMap reference to use |
Definition at line 217 of file cborstreamreader.cpp.
Referenced by pappso::cbor::psm::PsmFileAppend::close(), and pappso::cbor::psm::PsmProteinMap::readMap().