28 #include "../pappsoexception.h"
34 Q_INIT_RESOURCE(libpappsomsppresources);
57 qDebug() <<
"OboPsiMod::parse Begin parsing OBO file";
58 QFile obofile(
":/resources/PSI-MOD.obo");
62 QObject::tr(
"PSI-MOD OBO resource file : %1 not found")
63 .arg(obofile.fileName()));
65 obofile.open(QIODevice::ReadOnly);
66 QTextStream p_in(&obofile);
70 QString line = p_in.readLine();
75 if(line.startsWith(
"[Term]"))
80 else if(line.isEmpty())
94 line = p_in.readLine();
virtual void setOboPsiModTerm(const OboPsiModTerm &term)=0
triggered function on each obo term when parsing obo file
void parseLine(const QString &line)
OboPsiMod(OboPsiModHandlerInterface &handler)
void parse()
starts reading obo file and reports each term with the callback function
OboPsiModHandlerInterface & m_handler
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...