gatb.core-API-0.0.0
|
Simple implementation of an XML (SAX) parser. More...
#include <XmlReader.hpp>
Public Member Functions | |
XmlReader (std::istream &is) | |
virtual | ~XmlReader () |
void | read () |
Public Member Functions inherited from Subject | |
Subject () | |
Subject (const InterfaceId &interface) | |
virtual | ~Subject () |
InterfaceId | getInterface () |
void | addObserver (IObserver *observer) |
void | removeObserver (IObserver *observer) |
void | notify (EventInfo *event) |
Public Member Functions inherited from ISubject | |
virtual | ~ISubject () |
Simple implementation of an XML (SAX) parser.
This implementation considers that the reader is mainly a Subject, and therefore sends notification to potential listeners as its parsing goes on.
Any attached observer is likely to receive instances of subclasses of XMLEvent, and has to do something in reaction.
XmlReader | ( | std::istream & | is | ) |
Constructor.
[in] | is | : the input stream containing the XML stream. |
|
virtual |
Destructor.
void read | ( | ) |
Parse the input stream and possibly sends notifications to potential observers.