/usr/include/libxml++-2.6/libxml++/io/ostreamoutputbuffer.h is in libxml++2.6-dev 2.36.0-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | /* ostreamoutputbuffer.h
* this file is part of libxml++
*
* copyright (C) 2003 by libxml++ developer's team
*
* this file is covered by the GNU Lesser General Public License,
* which should be included with libxml++ as the file COPYING.
*/
#ifndef __LIBXMLPP_OSTREAMOUTPUTBUFFER_H
#define __LIBXMLPP_OSTREAMOUTPUTBUFFER_H
#include <libxml++/io/outputbuffer.h>
#include <ostream>
namespace xmlpp
{
/** An OutputBuffer implementation that send datas to a std::ostream.
*/
class OStreamOutputBuffer: public OutputBuffer
{
public:
/**
* @param output The ostream datas will be send to
* @param encoding Charset in which data will be encoded before being
* sent to the stream
*/
OStreamOutputBuffer(std::ostream& output, const Glib::ustring& encoding = Glib::ustring());
virtual ~OStreamOutputBuffer();
private:
virtual bool do_write(const char * buffer, int len);
virtual bool do_close();
std::ostream& output_;
};
}
#endif
|