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

Public Member Functions | |
| OutputBuffer (const Glib::ustring& encoding=Glib::ustring()) | |
| _xmlOutputBuffer* | cobj () |
| gives an access to the underlying libxml structure to the children | |
| const _xmlOutputBuffer* | cobj () const |
| gives an access to the underlying libxml structure to the children | |
Private Member Functions | |
| virtual bool | do_write (const char* buffer, int len)=0 |
| Function called when some data are sent to the buffer. | |
| virtual bool | do_close () |
| Function called before closing the buffer. | |
Private Attributes | |
| _xmlOutputBuffer* | impl_ |
| Underlying libxml2 structure. | |
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.
| xmlpp::OutputBuffer::OutputBuffer | ( | const Glib::ustring & | encoding = Glib::ustring() |
) |
| encoding | The encoding herited class wait for in do_write. If not provided, UTF-8 will be sent to do_write. |
| virtual bool xmlpp::OutputBuffer::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.
Reimplemented in xmlpp::OStreamOutputBuffer.
| virtual bool xmlpp::OutputBuffer::do_write | ( | const char * | buffer, | |
| int | len | |||
| ) | [private, pure virtual] |
Function called when some data are sent to the buffer.
| buffer | The datas encoded in the charset given to the constructor | |
| len | Buffer length |
Implemented in xmlpp::OStreamOutputBuffer.
1.5.8