Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SAXParser Class Reference

#include <SAXParser.hpp>

Inheritance diagram for SAXParser:

HTMLStream List of all members.

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

Constructor & Destructor Documentation

SAXParser::SAXParser  
 

SAXParser::~SAXParser   [virtual]
 


Member Function Documentation

void SAXParser::characters const std::string &    name,
const std::string &    chars
[virtual]
 

Recieves characters between tags. Prints to stdout, but can be overridden.

Reimplemented in HTMLStream.

void SAXParser::endElement const std::string &    name,
bool    standalone = false
[virtual]
 

Recieves the end tag. Prints to stdout, but can be overridden.

Reimplemented in HTMLStream.

void SAXParser::Init std::ostringstream &    osstr
 

void SAXParser::Init const char *    file
 

void SAXParser::parse std::string &    str
 

void SAXParser::parse std::ostringstream &    osstr
 

void SAXParser::parse std::istream &    istr
 

void SAXParser::print_tag std::string    tag [virtual]
 

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.

void SAXParser::processingInstruction std::string &    tag,
Attributes_t   attr
[virtual]
 

Reimplemented in HTMLStream.

void SAXParser::startElement const std::string &    name,
Attributes_t   attr,
bool    standalone = false
[virtual]
 

Recieves the start tag, and the tag's attributes. Prints to stdout, but can be overridden.

Reimplemented in HTMLStream.

Attributes_t SAXParser::tokens const std::string &    s
 


Member Data Documentation

bool SAXParser::variable_replacement [protected]
 

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.


The documentation for this class was generated from the following files:
Generated on Mon Jul 21 20:05:31 2003 for HTMLTemplate by doxygen1.2.18