libpappsomspp
Library for mass spectrometry
|
#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) |
bool | readCborArray (QCborArray &cbor_array) |
bool | readArray (std::vector< std::size_t > &int_list) |
bool | readArray (std::vector< double > &double_list) |
bool | readArray (std::vector< int > &positions) |
bool | readArray (QStringList &str_list) |
Definition at line 44 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
Definition at line 48 of file cborstreamreader.cpp.
Referenced by readArray(), and pappso::cbor::psm::PsmProteinMap::readMap().
bool pappso::cbor::CborStreamReader::readArray | ( | QStringList & | str_list | ) |
Definition at line 133 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 90 of file cborstreamreader.cpp.
bool pappso::cbor::CborStreamReader::readArray | ( | std::vector< std::size_t > & | int_list | ) |
Definition at line 111 of file cborstreamreader.cpp.
bool pappso::cbor::CborStreamReader::readCborArray | ( | QCborArray & | cbor_array | ) |
Definition at line 169 of file cborstreamreader.cpp.
bool pappso::cbor::CborStreamReader::readCborMap | ( | QCborMap & | cbor_map | ) |
Definition at line 153 of file cborstreamreader.cpp.
Referenced by pappso::cbor::psm::PsmFileAppend::close(), and pappso::cbor::psm::PsmProteinMap::readMap().