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

judo::ElementStream Class Reference

XML parser wrapper class. More...

#include <judo.hpp>

Inheritance diagram for judo::ElementStream::

jabberoo::Session List of all members.

Public Methods

 ElementStream (ElementStreamEventListener *l)
virtual ~ElementStream ()
void push (const char *data, int datasz)
 Push data into the stream for parsing. More...

void reset ()
 Reset the parser for a new XML document/stream.


Static Public Methods

ElementparseAtOnce (const char *buffer)
 Parse a single buffer of XML.


Detailed Description

XML parser wrapper class.

Definition at line 387 of file judo.hpp.


Member Function Documentation

void judo::ElementStream::push ( const char * data,
int datasz )
 

Push data into the stream for parsing.

Parameters:
data   Data to parse
datasz   Length of data to parse

Reimplemented in jabberoo::Session.

Definition at line 50 of file ElementStream.cpp.

00051 {
00052     assert(_document_ended != true);
00053     if (!XML_Parse(_parser, data, datasz, 0))
00054     {
00055         throw exception::ParserError(XML_GetErrorCode(_parser));
00056     }
00057 }


The documentation for this class was generated from the following files:
Generated at Tue Apr 16 17:09:06 2002 for jabberoo by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001