|
ProteoWizard
|
An extended SAX interface for custom XML stream parsing. More...
Classes | |
| class | Handler |
| SAX event handler interface. More... | |
| class | saxstring |
Functions | |
| PWIZ_API_DECL size_t | count_trail_ws (const char *data, size_t len) |
| PWIZ_API_DECL void | unescapeXML (char *str) |
| PWIZ_API_DECL void | unescapeXML (std::string &str) |
| std::ostream & | operator<< (std::ostream &os, const saxstring &s) |
| template<typename Target > | |
| Target | textToValue (const char *txt) |
| template<> | |
| float | textToValue (const char *txt) |
| template<> | |
| double | textToValue (const char *txt) |
| template<> | |
| int | textToValue (const char *txt) |
| template<> | |
| char | textToValue (const char *txt) |
| template<> | |
| long | textToValue (const char *txt) |
| template<> | |
| unsigned int | textToValue (const char *txt) |
| template<> | |
| unsigned long | textToValue (const char *txt) |
| bool | istrue (const char *t) |
| template<> | |
| bool | textToValue (const char *txt) |
| template<> | |
| boost::logic::tribool | textToValue (const char *txt) |
| template<> | |
| std::string | textToValue (const char *txt) |
| PWIZ_API_DECL void | parse (std::istream &is, Handler &handler) |
| Extract a single XML element from the istream, sending SAX events to the handler. | |
An extended SAX interface for custom XML stream parsing.
Use cases:
| PWIZ_API_DECL size_t pwiz::minimxml::SAXParser::count_trail_ws | ( | const char * | data, |
| size_t | len | ||
| ) |
Referenced by pwiz::minimxml::SAXParser::saxstring::trim_trail_ws().
| PWIZ_API_DECL void pwiz::minimxml::SAXParser::unescapeXML | ( | char * | str | ) |
| PWIZ_API_DECL void pwiz::minimxml::SAXParser::unescapeXML | ( | std::string & | str | ) |
|
inline |
Definition at line 218 of file SAXParser.hpp.
References pwiz::minimxml::SAXParser::saxstring::c_str().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 239 of file SAXParser.hpp.
|
inline |
Definition at line 244 of file SAXParser.hpp.
|
inline |
Definition at line 249 of file SAXParser.hpp.
|
inline |
Definition at line 254 of file SAXParser.hpp.
|
inline |
Definition at line 259 of file SAXParser.hpp.
|
inline |
Definition at line 286 of file SAXParser.hpp.
Referenced by textToValue().
|
inline |
|
inline |
Definition at line 296 of file SAXParser.hpp.
References istrue().
|
inline |
Definition at line 308 of file SAXParser.hpp.
| PWIZ_API_DECL void pwiz::minimxml::SAXParser::parse | ( | std::istream & | is, |
| Handler & | handler | ||
| ) |
Extract a single XML element from the istream, sending SAX events to the handler.
Behavior:
Notes:
Referenced by demo(), test(), testBadXML(), testDone(), testNested(), and testNoAutoUnescape().