libpappsomspp
Library for mass spectrometry
|
MS run identity MsRunId identifies an MS run with a unique ID (XmlId) and contains eventually informations on its location (local disk path or URL) More...
#include <msrunid.h>
Public Member Functions | |
MsRunId () | |
MsRunId (const QString &file_name) | |
MsRunId (const QString &file_name, const QString &run_id) | |
MsRunId (const MsRunId &other) | |
virtual | ~MsRunId () |
bool | operator== (const MsRunId &other) const |
MsRunId & | operator= (const MsRunId &other) |
void | setFileName (const QString &file_name) |
const QString & | getFileName () const |
void | setRunId (const QString &run_id) |
const QString & | getRunId () const |
void | setXmlId (const QString &xml_id) |
set an XML unique identifier for this MsRunId More... | |
const QString & | getXmlId () const |
void | setSampleName (const QString &name) |
set a sample name for this MsRunId More... | |
const QString & | getSampleName () const |
void | setMzFormat (MzFormat format) |
MzFormat | getMzFormat () const |
QString | toString () const |
bool | isValid () const |
Private Attributes | |
QString | m_fileName = "NOT_SET" |
QString | m_runId |
QString | m_xmlId |
QString | m_sampleName |
MzFormat | m_mzFormat = MzFormat::mzXML |
MS run identity MsRunId identifies an MS run with a unique ID (XmlId) and contains eventually informations on its location (local disk path or URL)
pappso::MsRunId::MsRunId | ( | ) |
Definition at line 39 of file msrunid.cpp.
pappso::MsRunId::MsRunId | ( | const QString & | file_name | ) |
pappso::MsRunId::MsRunId | ( | const QString & | file_name, |
const QString & | run_id | ||
) |
pappso::MsRunId::MsRunId | ( | const MsRunId & | other | ) |
Definition at line 63 of file msrunid.cpp.
|
virtual |
Definition at line 73 of file msrunid.cpp.
const QString & pappso::MsRunId::getFileName | ( | ) | const |
Definition at line 151 of file msrunid.cpp.
References m_fileName.
MzFormat pappso::MsRunId::getMzFormat | ( | ) | const |
Definition at line 165 of file msrunid.cpp.
References m_mzFormat.
const QString & pappso::MsRunId::getRunId | ( | ) | const |
Definition at line 130 of file msrunid.cpp.
References m_runId.
Referenced by pappso::XyMsFileReader::getMsRunIds().
const QString & pappso::MsRunId::getSampleName | ( | ) | const |
Definition at line 86 of file msrunid.cpp.
References m_sampleName.
const QString & pappso::MsRunId::getXmlId | ( | ) | const |
bool pappso::MsRunId::isValid | ( | ) | const |
Definition at line 210 of file msrunid.cpp.
References m_fileName, m_mzFormat, m_runId, m_xmlId, and pappso::unknown.
Definition at line 181 of file msrunid.cpp.
References m_fileName, m_mzFormat, m_sampleName, and m_xmlId.
bool pappso::MsRunId::operator== | ( | const MsRunId & | other | ) | const |
Definition at line 172 of file msrunid.cpp.
References m_xmlId.
void pappso::MsRunId::setFileName | ( | const QString & | file_name | ) |
Definition at line 93 of file msrunid.cpp.
References m_fileName, m_mzFormat, m_sampleName, pappso::MGF, pappso::mzML, pappso::mzXML, and pappso::unknown.
void pappso::MsRunId::setMzFormat | ( | MzFormat | format | ) |
Definition at line 158 of file msrunid.cpp.
References m_mzFormat.
Referenced by pappso::PwizMsFileReader::getMsRunIds(), pappso::TimsMsFileReader::getMsRunIds(), and pappso::XyMsFileReader::getMsRunIds().
void pappso::MsRunId::setRunId | ( | const QString & | run_id | ) |
Definition at line 123 of file msrunid.cpp.
References m_runId.
Referenced by pappso::TimsMsFileReader::getMsRunIds(), and pappso::XyMsFileReader::getMsRunIds().
void pappso::MsRunId::setSampleName | ( | const QString & | name | ) |
set a sample name for this MsRunId
Definition at line 79 of file msrunid.cpp.
References m_sampleName.
Referenced by pappso::PwizMsFileReader::getMsRunIds(), pappso::TimsMsFileReader::getMsRunIds(), and pappso::XyMsFileReader::getMsRunIds().
void pappso::MsRunId::setXmlId | ( | const QString & | xml_id | ) |
set an XML unique identifier for this MsRunId
xml_id | this id must respect XML constraints (no space characters) |
Definition at line 137 of file msrunid.cpp.
References m_xmlId.
Referenced by pappso::PwizMsFileReader::getMsRunIds(), pappso::TimsMsFileReader::getMsRunIds(), pappso::XyMsFileReader::getMsRunIds(), and pappso::MsFileAccessor::getMsRunReaderSPtrByRunId().
QString pappso::MsRunId::toString | ( | ) | const |
Definition at line 193 of file msrunid.cpp.
References m_fileName, m_runId, m_sampleName, and m_xmlId.
Referenced by pappso::TimsMsFileReader::getMsRunIds().
|
private |
Definition at line 89 of file msrunid.h.
Referenced by MsRunId(), getFileName(), isValid(), operator=(), setFileName(), and toString().
|
private |
Definition at line 93 of file msrunid.h.
Referenced by getMzFormat(), isValid(), operator=(), setFileName(), and setMzFormat().
|
private |
Definition at line 90 of file msrunid.h.
Referenced by MsRunId(), getRunId(), isValid(), setRunId(), and toString().
|
private |
Definition at line 92 of file msrunid.h.
Referenced by MsRunId(), getSampleName(), operator=(), setFileName(), setSampleName(), and toString().
|
private |
Definition at line 91 of file msrunid.h.
Referenced by getXmlId(), isValid(), operator=(), operator==(), setXmlId(), and toString().