ostreamoutputbuffer.h
来自「c语言编写的xml解析器可以方便的遍历插入删除节点等操作的」· C头文件 代码 · 共 41 行
H
41 行
/* document.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 std::string& encoding = std::string()); virtual ~OStreamOutputBuffer(); private: virtual bool do_write(const char * buffer, int len); virtual bool do_close(); std::ostream& output_; };};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?