CycloBranch
cMzML.h
Go to the documentation of this file.
1
7#ifndef _CMZML_H
8#define _CMZML_H
9
10
11#include <xercesc/dom/DOM.hpp>
12#include <xercesc/parsers/XercesDOMParser.hpp>
13#include <xercesc/util/XMemory.hpp>
14#include <xercesc/util/Base64.hpp>
15#include <string>
16#include <vector>
17#include <sstream>
18
19#include "core/utilities.h"
20
21
22using namespace std;
23using namespace xercesc;
24
25
26class cPeaksList;
27class cMainThread;
28
29
36bool compareElementTagName(DOMElement* element, const char* name);
37
38
45string getAttribute(DOMElement* element, const char* name);
46
47
54void setAttribute(DOMElement* element, const char* name, const char* value);
55
56
60class cMzML {
61
62 XercesDOMParser* parser;
63 DOMDocument* document;
64
65 bool profilespectra;
66
67
68public:
69
70
74 cMzML();
75
76
80 ~cMzML();
81
82
93 int parse(string& filename, vector<cPeaksList>& peaklists, int profilespectrumid, eModeType mode, cMainThread* os, bool& terminatecomputation);
94
95
100 bool hasProfileSpectra();
101
102
103};
104
105
106#endif
107
bool compareElementTagName(DOMElement *element, const char *name)
Compare element's tag name with a string.
Definition: cMzML.cpp:14
string getAttribute(DOMElement *element, const char *name)
Get an attribute.
Definition: cMzML.cpp:25
void setAttribute(DOMElement *element, const char *name, const char *value)
Set an attribute.
Definition: cMzML.cpp:35
The class representing a thread launched by the command 'Search->Run'.
Definition: cMainThread.h:34
mzML parser.
Definition: cMzML.h:60
cMzML()
The constructor.
Definition: cMzML.cpp:44
bool hasProfileSpectra()
Check if the file contains profile spectra.
Definition: cMzML.cpp:545
int parse(string &filename, vector< cPeaksList > &peaklists, int profilespectrumid, eModeType mode, cMainThread *os, bool &terminatecomputation)
Parse a mzml file.
Definition: cMzML.cpp:56
~cMzML()
The destructor.
Definition: cMzML.cpp:51
The class representing a peak list.
Definition: cPeaksList.h:68
Auxiliary funtions and structures.
eModeType
Running modes of the application.
Definition: utilities.h:92