xmlpp::OStreamOutputBuffer Class Reference

An OutputBuffer implementation that send datas to a std::ostream. More...

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

Inheritance diagram for xmlpp::OStreamOutputBuffer:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 OStreamOutputBuffer (std::ostream& output, const Glib::ustring& encoding=Glib::ustring())

Private Member Functions

virtual bool do_write (const char* buffer, int len)
 Function called when some data are sent to the buffer.
virtual bool do_close ()
 Function called before closing the buffer.


Detailed Description

An OutputBuffer implementation that send datas to a std::ostream.

Constructor& Destructor Documentation

xmlpp::OStreamOutputBuffer::OStreamOutputBuffer ( std::ostream &  output,
const Glib::ustring encoding = Glib::ustring() 
)

Parameters:
output The ostream datas will be send to
encoding Charset in which data will be encoded before being sent to the stream


Member Function Documentation

virtual bool xmlpp::OStreamOutputBuffer::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 from xmlpp::OutputBuffer.

virtual bool xmlpp::OStreamOutputBuffer::do_write ( const char *  buffer,
int  len 
) [private, virtual]

Function called when some data are sent to the buffer.

Parameters:
buffer The datas encoded in the charset given to the constructor
len Buffer length
This function MUST be overriden in herited classes.

Implements xmlpp::OutputBuffer.


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