Mass++ mzML IO Plugin v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations
MzmlDataHandler.h
Go to the documentation of this file.
1 
12 #ifndef __KOME_IO_MZML_DATA_HANDLER_H__
13 #define __KOME_IO_MZML_DATA_HANDLER_H__
14 
15 
16 #include "MzmlSample.h"
17 
18 
19 namespace kome {
20  namespace io {
21  namespace mzml {
22 
23  class MzmlSample;
24 
29  class MzmlDataHandler : public kome::xml::XmlHandler {
30  public:
38  MzmlDataHandler( MzmlSample& sample, const char* id, kome::core::XYData& xyData );
39 
44  virtual ~MzmlDataHandler();
45 
46  protected:
49 
51  std::string m_id;
52 
54  kome::core::XYData& m_xyData;
55 
58 
61 
62  protected:
65 
68 
70  double* m_xArray;
71 
73  double* m_yArray;
74 
75  protected:
77  bool m_reading;
78 
79  protected:
84  void setPoints();
85 
86  protected:
91  virtual void onStartDocument();
92 
97  virtual void onEndDocument();
98 
105  virtual void onStartElement( const char* name, kome::core::Properties& attrs );
106 
113  virtual void onEndElement( const char* name, const char* text );
114  };
115  }
116  }
117 }
118 
119 #endif // __KOME_IO_MZML_DATA_HANDLER_H__
kome::core::XYData & m_xyData
virtual void onEndElement(const char *name, const char *text)
This method is called by end element method. (override method)
virtual void onStartElement(const char *name, kome::core::Properties &attrs)
This method is called by startElement method. (override method)
virtual ~MzmlDataHandler()
destructor
virtual void onEndDocument()
This method is called by endDocument method. (override method)
interfaces of MzmlSample class
XML data handler to get spectrum data points.
MzmlSample::ArrayInfo m_arrayInfo
MzmlDataHandler(MzmlSample &sample, const char *id, kome::core::XYData &xyData)
constructor
virtual void onStartDocument()
This method is called by startDocument method. (override method)
mzML sample class
Definition: MzmlSample.h:26
void setPoints()
set data points