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

FXEX::FXXmlReader Class Reference

This XML reader is designed to generate FOX events for each valid XML tag. More...

#include <FXXmlReader.h>

Inheritance diagram for FXEX::FXXmlReader::

FXEX::FXBaseObject FXObject List of all members.

Public Methods

 FXXmlReader (FXApp *a, FXStream *s, FXObject *tgt, FXSelector sel)
FXbool getState ()
void setStream (FXStream *s)
FXStreamgetStream ()
FXbool parse ()
void stop ()
virtual ~FXXmlReader ()

Detailed Description

This XML reader is designed to generate FOX events for each valid XML tag.

Each time a tag is encountered, any previous non-tagged data is forwarded as a FOX message, then the tag is forwarded. It is up to the target to validate the occurances of the tags themselves and to transpose any type of data content. The target is often the FXXmlParser object.

Definition at line 38 of file FXXmlReader.h.


Constructor & Destructor Documentation

FXEX::FXXmlReader::FXXmlReader FXApp * a,
FXStream * s,
FXObject * tgt,
FXSelector sel
 

create a reader for the incoming stream.

virtual FXEX::FXXmlReader::~FXXmlReader [virtual]
 

cleanup.


Member Function Documentation

FXbool FXEX::FXXmlReader::getState [inline]
 

indicates the state, whether the parser is currently allowed to parse.

Definition at line 60 of file FXXmlReader.h.

void FXEX::FXXmlReader::setStream FXStream * s [inline]
 

set to new stream.

Definition at line 63 of file FXXmlReader.h.

FXStream* FXEX::FXXmlReader::getStream [inline]
 

returns the stream being used.

Definition at line 66 of file FXXmlReader.h.

FXbool FXEX::FXXmlReader::parse
 

start/continue parsing the data stream.

void FXEX::FXXmlReader::stop [inline]
 

stop parsing the stream.

Definition at line 72 of file FXXmlReader.h.