23 #ifndef _PEAKDATA_HPP_
24 #define _PEAKDATA_HPP_
33 #include "boost/shared_ptr.hpp"
43 using namespace pwiz::utility;
44 using namespace pwiz::minimxml;
45 using namespace minimxml::SAXParser;
63 std::vector<pwiz::math::OrderedPair>
data;
77 Peak(
double _mz = 0,
double _retentionTime = 0);
79 double getAttribute(
Attribute attribute)
const;
85 void read(std::istream& is);
94 parseCharacters =
true;
95 autoUnescapeCharacters =
false;
98 virtual Status startElement(
const std::string& name,
99 const Attributes& attributes,
123 void read(std::istream& is);
144 Scan() : index(0), scanNumber(0), retentionTime(0), observationDuration(0) {}
147 void read(std::istream& is);
173 void read(std::istream& is);
181 Software() : name(
""), version(
""), source(
""), parameters(0) {}
183 void read(std::istream& is);
197 void read(std::istream& is);
228 void calculateMetadata();
231 double retentionTimeMin()
const;
232 double retentionTimeMax()
const;
235 void read(std::istream& is);
249 virtual Status startElement(
const std::string& name,
const Attributes& attributes, stream_offset
position);
276 void calculateMetadata();
279 double retentionTimeMin()
const;
280 double retentionTimeMax()
const;
283 void read(std::istream& is);
300 virtual Status startElement(
const std::string& name,
const Attributes& attributes, stream_offset
position);
318 void read(std::istream& is);
332 #endif // _PEAKDATA_HPP_