xmlpp::ParserInputBuffer Class Reference

Base class for xmlParserInputBuffer wrapper. More...

#include <libxml++/io/parserinputbuffer.h>

Inheritance diagram for xmlpp::ParserInputBuffer:

Inheritance graph
[legend]

List of all members.

Public Member Functions

_xmlParserInputBuffer* cobj ()
 gives an access to the underlying libxml structure to the children
const _xmlParserInputBuffer* cobj () const
 gives an access to the underlying libxml structure to the children

Private Member Functions

virtual int do_read (char* buffer, int len)=0
 Function called when some data are read from the buffer.
virtual bool do_close ()
 Function called before closing the buffer.

Private Attributes

_xmlParserInputBuffer* impl_
 Underlying libxml2 structure.


Detailed Description

Base class for xmlParserInputBuffer wrapper.

It can be herited to create a new output buffer. A child class has to override do_write, and eventually do_close if some actions are required before buffer closing.


Member Function Documentation

virtual bool xmlpp::ParserInputBuffer::do_close (  )  [private, virtual]

Function called before closing the buffer.

Herited classes should override it if some actions are required before closing the buffer, instead of doing them in the destructor.

virtual int xmlpp::ParserInputBuffer::do_read ( char *  buffer,
int  len 
) [private, pure virtual]

Function called when some data are read from the buffer.

Parameters:
buffer The datas encoded in the charset given to the constructor
len bytes to read
Returns:
Number of bytes read
This function MUST be overriden in herited classes.


Generated on Fri Apr 16 13:26:12 2010 for libxml++ by  doxygen 1.5.8