Go to the documentation of this file.
10 #ifndef UI_GXML_BUFFER_HPP
11 #define UI_GXML_BUFFER_HPP
17 #include <libxml/tree.h>
27 class Buffer:
private UI::Util::auto_base<xmlBuffer>
42 void concat(std::string
const & text);
44 char const *
getBuf()
const;
48 using UI::Util::auto_base<xmlBuffer>::get;
60 #ifdef LIBXML2_NEW_BUFFER
63 char const *
getBuf()
const;
72 xmlOutputBuffer *
get()
const;
77 #ifdef LIBXML2_NEW_BUFFER
78 xmlOutputBuffer * outbuf_;
80 xmlOutputBuffer outbuf_;
void concat(std::string const &text)
Append text.
Definition: Buffer.cpp:48
xmlOutputBuffer * get() const
Get underlying pointer.
Definition: Buffer.cpp:106
xmlOutputBuffer * operator->() const
Smart dereferencing.
Definition: Buffer.cpp:111
Abstraction for libxml2's xmlBuffer.
Definition: Buffer.hpp:27
Namespace for all Schlund+Partner Code.
Definition: Buffer.cpp:30
Adding code facility to Exception.
Definition: Exception.hpp:34
OutputBuffer holder class.
Definition: Buffer.hpp:52
int getSize() const
Get buffer content size.
Definition: Buffer.cpp:61
CodeException< ErrorCode > Exception
Exceptions for this class.
Definition: Buffer.hpp:36
ErrorCode
Error codes for exceptions.
Definition: Buffer.hpp:31
const char * getBuf() const
Get buffer content address.
Definition: Buffer.cpp:56