#include <SAXParser.hpp>
Inheritance diagram for SAXParser:
Public Methods | |
SAXParser () | |
void | Init (const char *file) |
void | Init (std::ostringstream &osstr) |
virtual | ~SAXParser () |
void | parse (std::istream &istr) |
void | parse (std::ostringstream &osstr) |
void | parse (std::string &str) |
virtual void | print_tag (std::string tag) |
virtual void | characters (const std::string &name, const std::string &chars) |
virtual void | startElement (const std::string &name, Attributes_t &attr, bool standalone=false) |
virtual void | endElement (const std::string &name, bool standalone=false) |
Attributes_t | tokens (const std::string &s) |
virtual void | processingInstruction (std::string &tag, Attributes_t &attr) |
Protected Attributes | |
bool | variable_replacement |
|
|
|
|
|
Recieves characters between tags. Prints to stdout, but can be overridden. Reimplemented in HTMLStream. |
|
Recieves the end tag. Prints to stdout, but can be overridden. Reimplemented in HTMLStream. |
|
|
|
|
|
|
|
|
|
|
|
print_tag(std::string tag) Prints the whole tag. This is for special unhandled tags, like comments, or for preserving integrety of tags like doctype declarations, asp tags, php tags, or javascript written within comments. Prints to stdout, but can be overridden. |
|
Reimplemented in HTMLStream. |
|
Recieves the start tag, and the tag's attributes. Prints to stdout, but can be overridden. Reimplemented in HTMLStream. |
|
|
|
This is used in a derived class like HTMLStream. It keeps tabs on whether or not forced-variable replacement within the segment to be parsed should take place. This is not the cleanest solution, but it'll do for now. |