ProteoWizard
Classes | Namespaces | Functions
SAXParser.hpp File Reference
#include "pwiz/utility/misc/Export.hpp"
#include "pwiz/utility/misc/optimized_lexical_cast.hpp"
#include "pwiz/utility/misc/shared_map.hpp"
#include "boost/iostreams/positioning.hpp"
#include <string.h>
#include <iosfwd>
#include <string>
#include <vector>
#include <assert.h>
#include <stdexcept>

Go to the source code of this file.

Classes

class  pwiz::minimxml::SAXParser::saxstring
 
class  pwiz::minimxml::SAXParser::Handler
 SAX event handler interface. More...
 
struct  pwiz::minimxml::SAXParser::Handler::Status
 Handler returns the Status struct as a means of changing the parser's behavior. More...
 
class  pwiz::minimxml::SAXParser::Handler::Attributes
 
class  pwiz::minimxml::SAXParser::Handler::Attributes::attribute
 

Namespaces

 pwiz
 
 pwiz::minimxml
 
 pwiz::minimxml::SAXParser
 An extended SAX interface for custom XML stream parsing.
 

Functions

PWIZ_API_DECL size_t pwiz::minimxml::SAXParser::count_trail_ws (const char *data, size_t len)
 
PWIZ_API_DECL void pwiz::minimxml::SAXParser::unescapeXML (char *str)
 
PWIZ_API_DECL void pwiz::minimxml::SAXParser::unescapeXML (std::string &str)
 
std::ostream & pwiz::minimxml::SAXParser::operator<< (std::ostream &os, const saxstring &s)
 
template<typename Target >
Target pwiz::minimxml::SAXParser::textToValue (const char *txt)
 
template<>
float pwiz::minimxml::SAXParser::textToValue (const char *txt)
 
template<>
double pwiz::minimxml::SAXParser::textToValue (const char *txt)
 
template<>
int pwiz::minimxml::SAXParser::textToValue (const char *txt)
 
template<>
char pwiz::minimxml::SAXParser::textToValue (const char *txt)
 
template<>
long pwiz::minimxml::SAXParser::textToValue (const char *txt)
 
template<>
unsigned int pwiz::minimxml::SAXParser::textToValue (const char *txt)
 
template<>
unsigned long pwiz::minimxml::SAXParser::textToValue (const char *txt)
 
bool pwiz::minimxml::SAXParser::istrue (const char *t)
 
template<>
bool pwiz::minimxml::SAXParser::textToValue (const char *txt)
 
template<>
boost::logic::tribool pwiz::minimxml::SAXParser::textToValue (const char *txt)
 
template<>
std::string pwiz::minimxml::SAXParser::textToValue (const char *txt)
 
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. More...
 
PWIZ_API_DECL std::string pwiz::minimxml::xml_root_element (const std::string &fileheader)
 Returns the root element from an XML buffer; throws runtime_error if no element is found. More...
 
PWIZ_API_DECL std::string pwiz::minimxml::xml_root_element (std::istream &is)
 Returns the root element from an XML stream; throws runtime_error if no element is found. More...
 
PWIZ_API_DECL std::string pwiz::minimxml::xml_root_element_from_file (const std::string &filepath)
 Returns the root element from an XML file; throws runtime_error if no element is found. More...
 
PWIZ_API_DECL std::string & pwiz::minimxml::decode_xml_id (std::string &str)
 Decodes any characters encoded with their hexadecimal value, e.g. More...
 
PWIZ_API_DECL std::string pwiz::minimxml::decode_xml_id_copy (const std::string &str)
 Decodes any characters encoded with their hexadecimal value, e.g. More...