|
libpappsomspp
Library for mass spectrometry
|
#include <binarydataarray.h>
Public Member Functions | |
| void | fromCbor (CborStreamReader &reader) |
| void | toCbor (CborStreamWriter &writer) |
| void | fromMzml (QXmlStreamReader &reader) |
| void | toMzml (QXmlStreamWriter &writer) |
| QJsonObject | toJsonObject (std::size_t estimated_length) const |
| write the structure to a JSON object needs to decode the binary array | |
| void | decodeVector (std::size_t estimated_length, std::vector< double > &double_list) const |
| bool | isIntensity () const |
| bool | isMz () const |
Public Attributes | |
| quint8 | bits = 64 |
| bool | isInt = false |
| QString | compress = "zlib" |
| QString | unit |
| QByteArray | byteArray |
Definition at line 43 of file binarydataarray.h.
| void pappso::cbor::mzcbor::BinaryDataArray::decodeVector | ( | std::size_t | estimated_length, |
| std::vector< double > & | double_list ) const |
Definition at line 459 of file binarydataarray.cpp.
References bits, byteArray, compress, and isInt.
Referenced by toJsonObject().
| void pappso::cbor::mzcbor::BinaryDataArray::fromCbor | ( | CborStreamReader & | reader | ) |
Definition at line 37 of file binarydataarray.cpp.
References bits, byteArray, compress, pappso::cbor::CborStreamReader::decodeString(), isInt, and unit.
Referenced by pappso::cbor::mzcbor::Spectrum::fromCbor(), and pappso::cbor::mzcbor::ConvertToMzml::writeElementInMzml().
| void pappso::cbor::mzcbor::BinaryDataArray::fromMzml | ( | QXmlStreamReader & | reader | ) |
Definition at line 132 of file binarydataarray.cpp.
References bits, byteArray, compress, isInt, and unit.
Referenced by pappso::cbor::mzcbor::MzmlConvert::readBinaryDataArrayList().
| bool pappso::cbor::mzcbor::BinaryDataArray::isIntensity | ( | ) | const |
Definition at line 569 of file binarydataarray.cpp.
References unit.
| bool pappso::cbor::mzcbor::BinaryDataArray::isMz | ( | ) | const |
Definition at line 578 of file binarydataarray.cpp.
References unit.
| void pappso::cbor::mzcbor::BinaryDataArray::toCbor | ( | CborStreamWriter & | writer | ) |
Definition at line 111 of file binarydataarray.cpp.
References bits, byteArray, compress, isInt, and unit.
Referenced by pappso::cbor::mzcbor::MzmlConvert::readBinaryDataArrayList().
| QJsonObject pappso::cbor::mzcbor::BinaryDataArray::toJsonObject | ( | std::size_t | estimated_length | ) | const |
write the structure to a JSON object needs to decode the binary array
Definition at line 587 of file binarydataarray.cpp.
References decodeVector(), and unit.
| void pappso::cbor::mzcbor::BinaryDataArray::toMzml | ( | QXmlStreamWriter & | writer | ) |
Definition at line 290 of file binarydataarray.cpp.
References pappso::cbor::mzcbor::CvParam::accession, bits, byteArray, compress, pappso::cbor::mzcbor::CvParam::cvRef, isInt, pappso::cbor::mzcbor::CvParam::name, pappso::cbor::mzcbor::CvParam::setValue(), pappso::cbor::mzcbor::CvParam::toMzml(), unit, pappso::cbor::mzcbor::CvParam::unitAccession, pappso::cbor::mzcbor::CvParam::unitCvRef, and pappso::cbor::mzcbor::CvParam::unitName.
Referenced by pappso::cbor::mzcbor::ConvertToMzml::writeElementInMzml().
| quint8 pappso::cbor::mzcbor::BinaryDataArray::bits = 64 |
Definition at line 60 of file binarydataarray.h.
Referenced by decodeVector(), fromCbor(), fromMzml(), toCbor(), and toMzml().
| QByteArray pappso::cbor::mzcbor::BinaryDataArray::byteArray |
Definition at line 65 of file binarydataarray.h.
Referenced by decodeVector(), fromCbor(), fromMzml(), toCbor(), and toMzml().
| QString pappso::cbor::mzcbor::BinaryDataArray::compress = "zlib" |
Definition at line 62 of file binarydataarray.h.
Referenced by decodeVector(), fromCbor(), fromMzml(), toCbor(), and toMzml().
| bool pappso::cbor::mzcbor::BinaryDataArray::isInt = false |
Definition at line 61 of file binarydataarray.h.
Referenced by decodeVector(), fromCbor(), fromMzml(), toCbor(), and toMzml().
| QString pappso::cbor::mzcbor::BinaryDataArray::unit |
Definition at line 63 of file binarydataarray.h.
Referenced by fromCbor(), fromMzml(), isIntensity(), isMz(), toCbor(), toJsonObject(), and toMzml().