|
libpappsomspp
Library for mass spectrometry
|
#include <mzmlconvert.h>
Public Member Functions | |
| MzmlConvert (pappso::UiMonitorInterface *p_monitor, pappso::cbor::CborStreamWriter *p_output) | |
| virtual | ~MzmlConvert () |
| void | writeMzcborIndex (pappso::cbor::CborStreamWriter *writer) const |
| const std::vector< QString > & | getRunIdList () const |
| const std::vector< std::vector< qint64 > > & | getRunAndSpectrumOffsetList () const |
| const std::vector< std::vector< QString > > & | getRunAndSpectrumIdList () const |
| Public Member Functions inherited from pappso::XmlStreamReaderInterface | |
| XmlStreamReaderInterface () | |
| virtual | ~XmlStreamReaderInterface () |
| virtual bool | readFile (const QString &fileName) |
| bool | read (QIODevice *device) |
| bool | read (const QString &xml_content) |
| QString | errorString () const |
Protected Member Functions | |
| virtual void | readStream () override |
| Protected Member Functions inherited from pappso::XmlStreamReaderInterface | |
| void | cloneStartElement (QXmlStreamWriter &output) const |
| void | cloneElement (QXmlStreamWriter &output) |
| void | cloneNode (QXmlStreamWriter &output) |
Private Member Functions | |
| void | attributeListToCbor (const QXmlStreamAttributes &xml_attributes) |
| void | attributeValueToCbor (const QStringView &value_str) |
| void | insideElement (QString &last_element, bool &array_started) |
| void | getCurrentSpectrumSize () |
| void | readBinaryDataArrayList () |
| QString | readBinaryDataArray (QVector< double > &double_array) |
Private Attributes | |
| pappso::UiMonitorInterface * | mp_monitor |
| pappso::cbor::CborStreamWriter * | mp_cborWriter |
| std::vector< QString > | m_elementStash |
| QStringList | m_elementToStoreInArray |
| std::size_t | m_currentSpectrumSize = 0 |
| QVector< double > | m_doubleArray |
| std::vector< QString > | m_runIdList |
| std::vector< std::vector< qint64 > > | m_runAndSpectrumOffsetList |
| std::vector< std::vector< QString > > | m_runAndSpectrumIdList |
| std::vector< std::vector< qint64 > > | m_runAndSpectrumTotalIonCountList |
| std::vector< std::vector< std::uint8_t > > | m_runAndSpectrumMsLevelList |
| std::vector< std::vector< double > > | m_runAndSpectrumRtList |
| QString | m_uuid |
Additional Inherited Members | |
| Protected Attributes inherited from pappso::XmlStreamReaderInterface | |
| QXmlStreamReader | m_qxmlStreamReader |
Definition at line 47 of file mzmlconvert.h.
| pappso::cbor::mzcbor::MzmlConvert::MzmlConvert | ( | pappso::UiMonitorInterface * | p_monitor, |
| pappso::cbor::CborStreamWriter * | p_output ) |
Default constructor
Definition at line 39 of file mzmlconvert.cpp.
References m_currentSpectrumSize, m_doubleArray, m_elementStash, m_elementToStoreInArray, m_runAndSpectrumIdList, m_runAndSpectrumOffsetList, m_runIdList, mp_cborWriter, and mp_monitor.
|
virtual |
|
private |
Definition at line 460 of file mzmlconvert.cpp.
References attributeValueToCbor(), m_elementStash, m_runAndSpectrumIdList, m_runAndSpectrumMsLevelList, m_runAndSpectrumOffsetList, m_runAndSpectrumRtList, m_runAndSpectrumTotalIonCountList, m_runIdList, and mp_cborWriter.
Referenced by insideElement(), and readStream().
|
private |
Definition at line 433 of file mzmlconvert.cpp.
References mp_cborWriter.
Referenced by attributeListToCbor().
|
private |
Definition at line 224 of file mzmlconvert.cpp.
References m_currentSpectrumSize, and pappso::XmlStreamReaderInterface::m_qxmlStreamReader.
Referenced by insideElement().
| const std::vector< std::vector< QString > > & pappso::cbor::mzcbor::MzmlConvert::getRunAndSpectrumIdList | ( | ) | const |
Definition at line 495 of file mzmlconvert.cpp.
References m_runAndSpectrumIdList.
| const std::vector< std::vector< qint64 > > & pappso::cbor::mzcbor::MzmlConvert::getRunAndSpectrumOffsetList | ( | ) | const |
Definition at line 489 of file mzmlconvert.cpp.
References m_runAndSpectrumOffsetList.
| const std::vector< QString > & pappso::cbor::mzcbor::MzmlConvert::getRunIdList | ( | ) | const |
Definition at line 482 of file mzmlconvert.cpp.
References m_runIdList.
|
private |
Definition at line 265 of file mzmlconvert.cpp.
References pappso::cbor::mzcbor::CvParam::accession, attributeListToCbor(), pappso::cbor::mzcbor::CvParam::fromMzml(), getCurrentSpectrumSize(), pappso::cbor::mzcbor::CvParam::getExpectedDouble(), pappso::cbor::mzcbor::CvParam::getExpectedUint8(), insideElement(), m_elementStash, m_elementToStoreInArray, pappso::XmlStreamReaderInterface::m_qxmlStreamReader, m_runAndSpectrumIdList, m_runAndSpectrumMsLevelList, m_runAndSpectrumOffsetList, m_runAndSpectrumRtList, m_runAndSpectrumTotalIonCountList, mp_cborWriter, pappso::cbor::mzcbor::CvParam::name, readBinaryDataArrayList(), pappso::cbor::mzcbor::CvParam::toCbor(), and pappso::cbor::mzcbor::CvParam::unitAccession.
Referenced by insideElement(), and readStream().
|
private |
|
private |
Definition at line 233 of file mzmlconvert.cpp.
References pappso::cbor::mzcbor::BinaryDataArray::fromMzml(), pappso::XmlStreamReaderInterface::m_qxmlStreamReader, mp_cborWriter, and pappso::cbor::mzcbor::BinaryDataArray::toCbor().
Referenced by insideElement().
|
overrideprotectedvirtual |
Implements pappso::XmlStreamReaderInterface.
Definition at line 169 of file mzmlconvert.cpp.
References attributeListToCbor(), insideElement(), pappso::XmlStreamReaderInterface::m_qxmlStreamReader, m_uuid, mp_cborWriter, PAPPSOMSPP_NAME, and PAPPSOMSPP_VERSION.
| void pappso::cbor::mzcbor::MzmlConvert::writeMzcborIndex | ( | pappso::cbor::CborStreamWriter * | writer | ) | const |
Definition at line 65 of file mzmlconvert.cpp.
References m_runAndSpectrumIdList, m_runAndSpectrumMsLevelList, m_runAndSpectrumOffsetList, m_runAndSpectrumRtList, m_runAndSpectrumTotalIonCountList, m_runIdList, m_uuid, PAPPSOMSPP_NAME, PAPPSOMSPP_VERSION, pappso::cbor::CborStreamWriter::writeArray(), and pappso::cbor::CborStreamWriter::writeInformations().
|
private |
Definition at line 87 of file mzmlconvert.h.
Referenced by MzmlConvert(), and getCurrentSpectrumSize().
|
private |
Definition at line 89 of file mzmlconvert.h.
Referenced by MzmlConvert().
|
private |
Definition at line 84 of file mzmlconvert.h.
Referenced by MzmlConvert(), attributeListToCbor(), and insideElement().
|
private |
Definition at line 85 of file mzmlconvert.h.
Referenced by MzmlConvert(), and insideElement().
|
private |
Definition at line 93 of file mzmlconvert.h.
Referenced by MzmlConvert(), attributeListToCbor(), getRunAndSpectrumIdList(), insideElement(), and writeMzcborIndex().
|
private |
Definition at line 95 of file mzmlconvert.h.
Referenced by attributeListToCbor(), insideElement(), and writeMzcborIndex().
|
private |
Definition at line 92 of file mzmlconvert.h.
Referenced by MzmlConvert(), attributeListToCbor(), getRunAndSpectrumOffsetList(), insideElement(), and writeMzcborIndex().
|
private |
Definition at line 96 of file mzmlconvert.h.
Referenced by attributeListToCbor(), insideElement(), and writeMzcborIndex().
|
private |
Definition at line 94 of file mzmlconvert.h.
Referenced by attributeListToCbor(), insideElement(), and writeMzcborIndex().
|
private |
Definition at line 91 of file mzmlconvert.h.
Referenced by MzmlConvert(), attributeListToCbor(), getRunIdList(), and writeMzcborIndex().
|
private |
Definition at line 97 of file mzmlconvert.h.
Referenced by readStream(), and writeMzcborIndex().
|
private |
Definition at line 82 of file mzmlconvert.h.
Referenced by MzmlConvert(), attributeListToCbor(), attributeValueToCbor(), insideElement(), readBinaryDataArrayList(), and readStream().
|
private |
Definition at line 81 of file mzmlconvert.h.
Referenced by MzmlConvert().