|
libpappsomspp
Library for mass spectrometry
|
overrides QCborStreamWriter base class to provide convenient functions More...
#include <cborstreamwriter.h>
Public Member Functions | |
| CborStreamWriter (QByteArray *data) | |
| CborStreamWriter (QIODevice *device) | |
| virtual | ~CborStreamWriter () |
| const QString & | getUuid () const |
| get UUID intialized when using writeInformations | |
| void | writeInformations (const QString &software_name, const QString &software_version, const QString &type, const QString &operation) |
| automatically produces an informations CBOR map the "informations" map contains default parameters : software, versions, UUID | |
| void | writeCborMap (const QCborMap &cbor_map) |
| void | writeCborArray (const QCborArray &cbor_array) |
| void | writeArray (const std::vector< std::size_t > &int_list) |
| void | writeArray (const std::vector< qint64 > &int_list) |
| void | writeArray (const std::vector< double > &double_list) |
| void | writeArray (const std::vector< int > &positions) |
| void | writeArray (const std::vector< std::uint8_t > &small_uint_list) |
| void | writeArray (const QStringList &str_list) |
| void | writeArray (const std::vector< QString > &str_list) |
| void | writeTrace (const pappso::Trace &trace, const QString &x_label="x", const QString &y_label="y") |
| serialize a PAPPSO trace object to CBOR | |
| void | writeXicCoord (const pappso::XicCoord &xic_coord) |
| serialize a PAPPSO xic coordinate object to CBOR | |
| void | writeXicCoordList (const std::vector< pappso::XicCoordSPtr > &xic_coord_list) |
| serialize a PAPPSO xic coordinate object list to CBOR | |
Private Attributes | |
| QString | m_uuid |
overrides QCborStreamWriter base class to provide convenient functions
Definition at line 44 of file cborstreamwriter.h.
| pappso::cbor::CborStreamWriter::CborStreamWriter | ( | QByteArray * | data | ) |
Default constructor
Definition at line 38 of file cborstreamwriter.cpp.
| pappso::cbor::CborStreamWriter::CborStreamWriter | ( | QIODevice * | device | ) |
Definition at line 42 of file cborstreamwriter.cpp.
|
virtual |
| const QString & pappso::cbor::CborStreamWriter::getUuid | ( | ) | const |
get UUID intialized when using writeInformations
Definition at line 53 of file cborstreamwriter.cpp.
References m_uuid.
| void pappso::cbor::CborStreamWriter::writeArray | ( | const QStringList & | str_list | ) |
Definition at line 151 of file cborstreamwriter.cpp.
| void pappso::cbor::CborStreamWriter::writeArray | ( | const std::vector< double > & | double_list | ) |
Definition at line 104 of file cborstreamwriter.cpp.
| void pappso::cbor::CborStreamWriter::writeArray | ( | const std::vector< int > & | positions | ) |
Definition at line 115 of file cborstreamwriter.cpp.
| void pappso::cbor::CborStreamWriter::writeArray | ( | const std::vector< qint64 > & | int_list | ) |
Definition at line 139 of file cborstreamwriter.cpp.
| void pappso::cbor::CborStreamWriter::writeArray | ( | const std::vector< QString > & | str_list | ) |
Definition at line 162 of file cborstreamwriter.cpp.
| void pappso::cbor::CborStreamWriter::writeArray | ( | const std::vector< std::size_t > & | int_list | ) |
Definition at line 93 of file cborstreamwriter.cpp.
Referenced by pappso::cbor::mzcbor::MzmlConvert::writeMzcborIndex(), and writeTrace().
| void pappso::cbor::CborStreamWriter::writeArray | ( | const std::vector< std::uint8_t > & | small_uint_list | ) |
Definition at line 127 of file cborstreamwriter.cpp.
| void pappso::cbor::CborStreamWriter::writeCborArray | ( | const QCborArray & | cbor_array | ) |
Definition at line 179 of file cborstreamwriter.cpp.
| void pappso::cbor::CborStreamWriter::writeCborMap | ( | const QCborMap & | cbor_map | ) |
Definition at line 173 of file cborstreamwriter.cpp.
Referenced by pappso::cbor::psm::PsmFileAppend::readSample(), and pappso::cbor::psm::PsmProteinMap::writeMap().
| void pappso::cbor::CborStreamWriter::writeInformations | ( | const QString & | software_name, |
| const QString & | software_version, | ||
| const QString & | type, | ||
| const QString & | operation ) |
automatically produces an informations CBOR map the "informations" map contains default parameters : software, versions, UUID
Definition at line 59 of file cborstreamwriter.cpp.
References pappso::Utils::getVersion(), and m_uuid.
Referenced by pappso::cbor::mzcbor::MzmlConvert::writeMzcborIndex().
| void pappso::cbor::CborStreamWriter::writeTrace | ( | const pappso::Trace & | trace, |
| const QString & | x_label = "x", | ||
| const QString & | y_label = "y" ) |
serialize a PAPPSO trace object to CBOR
| trace | PAPPSO trace object reference |
| x_label | label for first dimension (x by default) |
| y_label | label for second dimension (y by default) |
Definition at line 185 of file cborstreamwriter.cpp.
References writeArray(), pappso::Trace::xValues(), and pappso::Trace::yValues().
Referenced by writeXicCoord().
| void pappso::cbor::CborStreamWriter::writeXicCoord | ( | const pappso::XicCoord & | xic_coord | ) |
serialize a PAPPSO xic coordinate object to CBOR
| xic | PAPPSO object reference |
Definition at line 199 of file cborstreamwriter.cpp.
References pappso::XicCoord::writeCborStream(), writeTrace(), and pappso::XicCoord::xicSptr.
Referenced by writeXicCoordList().
| void pappso::cbor::CborStreamWriter::writeXicCoordList | ( | const std::vector< pappso::XicCoordSPtr > & | xic_coord_list | ) |
serialize a PAPPSO xic coordinate object list to CBOR
| xic_coord_list | PAPPSO object reference |
Definition at line 214 of file cborstreamwriter.cpp.
References writeXicCoord().
|
private |
Definition at line 104 of file cborstreamwriter.h.
Referenced by getUuid(), and writeInformations().