33#include "../pappsoexception.h"
39 Q_INIT_RESOURCE(libpappsomsppresources);
61 QFile obofile(
":/obo/resources/obo/psi-ms.obo");
65 QObject::tr(
"PSI-MS OBO resource file : %1 not found").arg(obofile.fileName()));
67 obofile.open(QIODevice::ReadOnly);
68 QTextStream p_in(&obofile);
72 QString
line = p_in.readLine();
77 if(
line.startsWith(
"[Term]"))
82 else if(
line.isEmpty())
86 m_handler.setOboPsiModTerm(m_term);
93 m_term.parseLine(
line);
96 line = p_in.readLine();
100 m_handler.setOboPsiModTerm(m_term);
void parse()
starts reading obo file and reports each term with the callback function
OboPsiMs(OboPsiModHandlerInterface &handler)