|
Public Types inherited from pwiz::minimxml::SAXParser::Handler |
enum | XMLUnescapeBehavior_t { XMLUnescapeDefault,
NoXMLUnescape
} |
|
typedef boost::iostreams::stream_offset | stream_offset |
|
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...
|
|
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 |
|
Definition at line 315 of file SAXParserTest.cpp.
§ RootHandler()
RootHandler::RootHandler |
( |
Root & |
root, |
|
|
bool |
autoUnescapeAttributes = true , |
|
|
bool |
autoUnescapeCharacters = true |
|
) |
| |
|
inline |
Definition at line 319 of file SAXParserTest.cpp.
SecondHandler secondHandler_
FirstHandler firstHandler_
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 han...
FifthHandler fifthHandler_
bool autoUnescapeCharacters
§ startElement()
Reimplemented from pwiz::minimxml::SAXParser::Handler.
Definition at line 330 of file SAXParserTest.cpp.
References readAttribute(), and unit_assert_operator_equal.
334 if (name ==
"RootElement")
339 else if (name ==
"FirstElement")
345 else if (name ==
"SecondElement")
350 else if (name ==
"FifthElement")
SecondHandler secondHandler_
#define unit_assert_operator_equal(expected, actual)
FirstHandler firstHandler_
void readAttribute(const Handler::Attributes &attributes, const string &attributeName, string &result)
PWIZ_API_DECL Position position(CVID cvid=CVID_Unknown)
returns a Position corresponding to one of the following CVIDs: CVID_Unknown: Position::Anywhere MS_m...
FifthHandler fifthHandler_
§ object_
Root& RootHandler::object_ |
|
private |
§ firstHandler_
§ secondHandler_
§ fifthHandler_
The documentation for this class was generated from the following file: