|
libpappsomspp
Library for mass spectrometry
|
#include <cvparam.h>
Public Member Functions | |
| void | fromCbor (CborStreamReader &reader) |
| void | toCbor (CborStreamWriter &writer) |
| void | fromMzml (QXmlStreamReader &reader) |
| reads the XML attributes of the cvParam element Inside the cvParam XML element, reads the attributes and go to next XML element | |
| void | toMzml (QXmlStreamWriter &writer) |
| QJsonObject | toJsonObject () const |
| write the structure to a JSON object | |
| void | xmlValueToCbor (CborStreamWriter &writer, const QStringView &value_str) |
| void | setValue (const QString &value_str) |
| std::uint8_t | getExpectedUint8 () const |
| double | getExpectedDouble () const |
| qint64 | getExpectedQint64 () const |
Public Attributes | |
| QString | cvRef |
| QString | accession |
| double | valueDouble = nan("") |
| qint64 | valueInt = std::numeric_limits<qint64>::max() |
| QString | valueStr |
| QString | name |
| QString | unitAccession |
| QString | unitName |
| QString | unitCvRef |
| QCborStreamReader::Type | cborType = QCborStreamReader::Type::Invalid |
| void pappso::cbor::mzcbor::CvParam::fromCbor | ( | CborStreamReader & | reader | ) |
Definition at line 36 of file cvparam.cpp.
References accession, cborType, cvRef, pappso::cbor::CborStreamReader::decodeString(), name, unitAccession, unitCvRef, unitName, valueDouble, valueInt, and valueStr.
Referenced by pappso::cbor::mzcbor::CvParamMap::fromCbor(), and pappso::cbor::mzcbor::MzcborReaderBase::getCvParamsMap().
| void pappso::cbor::mzcbor::CvParam::fromMzml | ( | QXmlStreamReader & | reader | ) |
reads the XML attributes of the cvParam element Inside the cvParam XML element, reads the attributes and go to next XML element
| reader | XML stream reader |
Definition at line 121 of file cvparam.cpp.
References accession, cvRef, name, unitAccession, unitCvRef, unitName, and valueStr.
Referenced by pappso::cbor::mzcbor::MzmlConvert::insideElement().
| double pappso::cbor::mzcbor::CvParam::getExpectedDouble | ( | ) | const |
Definition at line 303 of file cvparam.cpp.
References accession, and valueStr.
Referenced by pappso::cbor::mzcbor::MzmlConvert::insideElement().
| qint64 pappso::cbor::mzcbor::CvParam::getExpectedQint64 | ( | ) | const |
Definition at line 287 of file cvparam.cpp.
| std::uint8_t pappso::cbor::mzcbor::CvParam::getExpectedUint8 | ( | ) | const |
Definition at line 271 of file cvparam.cpp.
References accession, and valueStr.
Referenced by pappso::cbor::mzcbor::MzmlConvert::insideElement().
| void pappso::cbor::mzcbor::CvParam::setValue | ( | const QString & | value_str | ) |
Definition at line 224 of file cvparam.cpp.
References valueDouble, valueInt, and valueStr.
Referenced by pappso::cbor::mzcbor::BinaryDataArray::toMzml().
| void pappso::cbor::mzcbor::CvParam::toCbor | ( | CborStreamWriter & | writer | ) |
Definition at line 161 of file cvparam.cpp.
References accession, cvRef, name, unitAccession, unitCvRef, unitName, valueStr, and xmlValueToCbor().
Referenced by pappso::cbor::mzcbor::MzmlConvert::insideElement().
| QJsonObject pappso::cbor::mzcbor::CvParam::toJsonObject | ( | ) | const |
write the structure to a JSON object
Definition at line 190 of file cvparam.cpp.
References accession, cvRef, name, unitAccession, unitCvRef, unitName, valueDouble, valueInt, and valueStr.
| void pappso::cbor::mzcbor::CvParam::toMzml | ( | QXmlStreamWriter & | writer | ) |
Definition at line 232 of file cvparam.cpp.
References accession, cborType, cvRef, name, unitAccession, unitCvRef, unitName, valueDouble, valueInt, and valueStr.
Referenced by pappso::cbor::mzcbor::BinaryDataArray::toMzml().
| void pappso::cbor::mzcbor::CvParam::xmlValueToCbor | ( | CborStreamWriter & | writer, |
| const QStringView & | value_str ) |
Definition at line 320 of file cvparam.cpp.
References cborType.
Referenced by toCbor().
| QString pappso::cbor::mzcbor::CvParam::accession |
Definition at line 74 of file cvparam.h.
Referenced by fromCbor(), pappso::cbor::mzcbor::CvParamMap::fromCbor(), fromMzml(), pappso::cbor::mzcbor::MzcborReaderBase::getCvParamsMap(), getExpectedDouble(), getExpectedQint64(), getExpectedUint8(), pappso::cbor::mzcbor::MzmlConvert::insideElement(), toCbor(), toJsonObject(), pappso::cbor::mzcbor::BinaryDataArray::toMzml(), and toMzml().
| QCborStreamReader::Type pappso::cbor::mzcbor::CvParam::cborType = QCborStreamReader::Type::Invalid |
Definition at line 83 of file cvparam.h.
Referenced by fromCbor(), toMzml(), and xmlValueToCbor().
| QString pappso::cbor::mzcbor::CvParam::cvRef |
Definition at line 73 of file cvparam.h.
Referenced by fromCbor(), fromMzml(), toCbor(), toJsonObject(), pappso::cbor::mzcbor::BinaryDataArray::toMzml(), and toMzml().
| QString pappso::cbor::mzcbor::CvParam::name |
Definition at line 78 of file cvparam.h.
Referenced by fromCbor(), fromMzml(), pappso::cbor::mzcbor::MzmlConvert::insideElement(), toCbor(), toJsonObject(), pappso::cbor::mzcbor::BinaryDataArray::toMzml(), and toMzml().
| QString pappso::cbor::mzcbor::CvParam::unitAccession |
Definition at line 79 of file cvparam.h.
Referenced by fromCbor(), fromMzml(), pappso::cbor::mzcbor::MzmlConvert::insideElement(), toCbor(), toJsonObject(), pappso::cbor::mzcbor::BinaryDataArray::toMzml(), and toMzml().
| QString pappso::cbor::mzcbor::CvParam::unitCvRef |
Definition at line 81 of file cvparam.h.
Referenced by fromCbor(), fromMzml(), toCbor(), toJsonObject(), pappso::cbor::mzcbor::BinaryDataArray::toMzml(), and toMzml().
| QString pappso::cbor::mzcbor::CvParam::unitName |
Definition at line 80 of file cvparam.h.
Referenced by fromCbor(), fromMzml(), toCbor(), toJsonObject(), pappso::cbor::mzcbor::BinaryDataArray::toMzml(), and toMzml().
| double pappso::cbor::mzcbor::CvParam::valueDouble = nan("") |
Definition at line 75 of file cvparam.h.
Referenced by fromCbor(), setValue(), toJsonObject(), and toMzml().
| qint64 pappso::cbor::mzcbor::CvParam::valueInt = std::numeric_limits<qint64>::max() |
Definition at line 76 of file cvparam.h.
Referenced by fromCbor(), setValue(), toJsonObject(), and toMzml().
| QString pappso::cbor::mzcbor::CvParam::valueStr |
Definition at line 77 of file cvparam.h.
Referenced by fromCbor(), fromMzml(), getExpectedDouble(), getExpectedQint64(), getExpectedUint8(), setValue(), toCbor(), toJsonObject(), and toMzml().