1 #ifndef __SIMPLE_SAX_PARSER_H_ 2 #define __SIMPLE_SAX_PARSER_H_ 80 :key(iKey), value(iValue)
84 :key(attr.key), value(attr.value)
89 return this->key < attribute.
key;
101 const char *
error() {
return m_error.c_str(); }
152 char buf[2] = {
delim, 0};
177 #endif // __SIMPLE_SAX_PARSER_H_
std::vector< Attribute > Attributes
bool operator<(const Attribute &attribute) const
virtual void endElement(const std::string &)
std::string parseEntity(const std::string &entity)
virtual void data(const std::string &)
std::string getToken(const char delim)
Attribute(const std::string &iKey, const std::string &iValue)
bool fgettoken(std::istream &in, char **buffer, size_t *maxSize, const char *separators, int *firstChar)
ParserError(const std::string &error)
std::string getToken(const char *delim)
std::vector< std::string > m_elementTags
virtual ~SimpleSAXParser()
const SimpleSAXParser & operator=(const SimpleSAXParser &)=delete
Attribute(const Attribute &attr)
virtual void startElement(const std::string &, Attributes &)
T get(const Candidate &c)
SimpleSAXParser(std::istream &f)