|
ProteoWizard
|
SAX event handler interface. More...
#include <SAXParser.hpp>
Classes | |
| class | Attributes |
| struct | Status |
| Handler returns the Status struct as a means of changing the parser's behavior. More... | |
Public Types | |
| enum | XMLUnescapeBehavior_t { XMLUnescapeDefault, NoXMLUnescape } |
| typedef boost::iostreams::stream_offset | stream_offset |
Public Member Functions | |
| virtual Status | processingInstruction (const std::string &name, const std::string &data, stream_offset position) |
| virtual Status | startElement (const std::string &name, const Attributes &attributes, stream_offset position) |
| virtual Status | endElement (const std::string &name, stream_offset position) |
| virtual Status | characters (const SAXParser::saxstring &text, stream_offset position) |
| Handler () | |
| virtual | ~Handler () |
Public Attributes | |
| bool | parseCharacters |
| When false, no calls to characters() will be made. | |
| 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. | |
| 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 | |
Protected Member Functions | |
| 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 |
SAX event handler interface.
Definition at line 315 of file SAXParser.hpp.
| typedef boost::iostreams::stream_offset pwiz::minimxml::SAXParser::Handler::stream_offset |
Definition at line 583 of file SAXParser.hpp.
Definition at line 350 of file SAXParser.hpp.
|
inline |
Definition at line 599 of file SAXParser.hpp.
|
inlinevirtual |
Definition at line 600 of file SAXParser.hpp.
|
inlinevirtual |
Reimplemented in PrintEventHandler.
Definition at line 585 of file SAXParser.hpp.
References pwiz::minimxml::SAXParser::Handler::Status::Ok.
|
inlinevirtual |
Reimplemented in AnotherRootHandler, RootHandler, pwiz::data::peakdata::HandlerFeature, FifthHandler, pwiz::data::peakdata::HandlerPeakel, SecondHandler, FirstHandler, pwiz::data::peakdata::HandlerPeak, and PrintEventHandler.
Definition at line 589 of file SAXParser.hpp.
References pwiz::minimxml::SAXParser::Handler::Status::Ok.
|
inlinevirtual |
Reimplemented in NestedHandler, FifthHandler, FirstHandler, and PrintEventHandler.
Definition at line 593 of file SAXParser.hpp.
References pwiz::minimxml::SAXParser::Handler::Status::Ok.
|
inlinevirtual |
Reimplemented in FifthHandler, SecondHandler, FirstHandler, PrintEventHandler, and pwiz::data::peakdata::HandlerPeak.
Definition at line 596 of file SAXParser.hpp.
References pwiz::minimxml::SAXParser::Handler::Status::Ok.
|
inlineprotected |
Definition at line 605 of file SAXParser.hpp.
References defaultValue(), pwiz::minimxml::SAXParser::Handler::Attributes::findAttributeByName(), and pwiz::minimxml::SAXParser::Handler::Attributes::attribute::valueAs().
|
inlineprotected |
Definition at line 619 of file SAXParser.hpp.
References defaultValue(), and pwiz::minimxml::SAXParser::Handler::Attributes::findValueByName().
|
inlineprotected |
Definition at line 633 of file SAXParser.hpp.
References pwiz::minimxml::SAXParser::Handler::Attributes::findAttributeByName(), pwiz::minimxml::SAXParser::Handler::Attributes::attribute::valueAs(), and XMLUnescapeDefault.
|
inlineprotected |
Definition at line 645 of file SAXParser.hpp.
References pwiz::minimxml::SAXParser::Handler::Attributes::findAttributeByName(), pwiz::minimxml::SAXParser::Handler::Attributes::attribute::getValuePtr(), and XMLUnescapeDefault.
|
inlineprotected |
Definition at line 659 of file SAXParser.hpp.
References defaultValue(), pwiz::minimxml::SAXParser::Handler::Attributes::findAttributeByName(), pwiz::minimxml::SAXParser::Handler::Attributes::attribute::valueAs(), and XMLUnescapeDefault.
| bool pwiz::minimxml::SAXParser::Handler::parseCharacters |
When false, no calls to characters() will be made.
Definition at line 320 of file SAXParser.hpp.
| bool pwiz::minimxml::SAXParser::Handler::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.
Definition at line 324 of file SAXParser.hpp.
| bool pwiz::minimxml::SAXParser::Handler::autoUnescapeCharacters |
Definition at line 324 of file SAXParser.hpp.
| int pwiz::minimxml::SAXParser::Handler::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
Definition at line 329 of file SAXParser.hpp.
1.8.1.1