ProteoWizard
Public Member Functions | Public Attributes | List of all members
pwiz::data::peakdata::HandlerPeak Struct Reference

#include <PeakData.hpp>

Inheritance diagram for pwiz::data::peakdata::HandlerPeak:
pwiz::minimxml::SAXParser::Handler

Public Member Functions

 HandlerPeak (Peak *_peak=0)
 
virtual Status startElement (const std::string &name, const Attributes &attributes, stream_offset position)
 
virtual Status characters (const SAXParser::saxstring &text, stream_offset position)
 
- Public Member Functions inherited from pwiz::minimxml::SAXParser::Handler
virtual Status processingInstruction (const std::string &name, const std::string &data, stream_offset position)
 
virtual Status endElement (const std::string &name, stream_offset position)
 
 Handler ()
 
virtual ~Handler ()
 

Public Attributes

Peakpeak
 
- Public Attributes inherited from pwiz::minimxml::SAXParser::Handler
bool parseCharacters
 When false, no calls to characters() will be made. More...
 
bool autoUnescapeAttributes
 Setting these to false will disable the auto-unescaping feature of the parser; this is useful for handlers which deal with large amounts of data. More...
 
bool autoUnescapeCharacters
 
int version
 contextual version available to control handler logic which support multiple versions of a schema; the default value 0 indicates handler should ignore the version; the handler determines the meaning of any non-zero value More...
 

Additional Inherited Members

- Public Types inherited from pwiz::minimxml::SAXParser::Handler
enum  XMLUnescapeBehavior_t { XMLUnescapeDefault, NoXMLUnescape }
 
typedef boost::iostreams::stream_offset stream_offset
 
- Protected Member Functions inherited from pwiz::minimxml::SAXParser::Handler
template<typename T >
T & getAttribute (const Attributes &attributes, const char *name, T &result, XMLUnescapeBehavior_t Unescape, T defaultValue=T()) const
 
const char * getAttribute (const Attributes &attributes, const char *name, XMLUnescapeBehavior_t Unescape, const char *defaultValue=NULL) const
 
template<typename T >
T & getAttribute (const Attributes &attributes, const char *name, T &result) const
 
std::string & getAttribute (const Attributes &attributes, const char *name, std::string &result) const
 
template<typename T >
T & getAttribute (const Attributes &attributes, const std::string &name, T &result, T defaultValue=T()) const
 

Detailed Description

Definition at line 89 of file PeakData.hpp.

Constructor & Destructor Documentation

§ HandlerPeak()

pwiz::data::peakdata::HandlerPeak::HandlerPeak ( Peak _peak = 0)
inline

Definition at line 92 of file PeakData.hpp.

References pwiz::data::peakdata::operator<<(), pwiz::data::peakdata::operator>>(), pwiz::data::unimod::position(), and PWIZ_API_DECL.

92  : peak(_peak)
93  {
94  parseCharacters = true;
95  autoUnescapeCharacters = false;
96  }
bool parseCharacters
When false, no calls to characters() will be made.
Definition: SAXParser.hpp:320

Member Function Documentation

§ startElement()

virtual Status pwiz::data::peakdata::HandlerPeak::startElement ( const std::string &  name,
const Attributes attributes,
stream_offset  position 
)
virtual

§ characters()

virtual Status pwiz::data::peakdata::HandlerPeak::characters ( const SAXParser::saxstring text,
stream_offset  position 
)
virtual

Member Data Documentation

§ peak

Peak* pwiz::data::peakdata::HandlerPeak::peak

Definition at line 91 of file PeakData.hpp.


The documentation for this struct was generated from the following file: