Util.hpp
Go to the documentation of this file.
#ifndef UI_GXML_UTIL_HPP
#define UI_GXML_UTIL_HPP
// STDC++
#include <cassert>
// C libraries
#include <libxml/globals.h>
// C++ libraries
#include <ui-utilcpp/Misc.hpp>
namespace UI {
namespace GXML {
template <typename P>
class auto_xmlfree: public UI::Util::auto_base<P>
{
public:
auto_xmlfree(P * const p)
:UI::Util::auto_base<P>(p)
{}
virtual ~auto_xmlfree()
{
xmlFree(UI::Util::auto_base<P>::p_);
}
};
}}
#endif
UI::GXML::auto_xmlfree::auto_xmlfree
auto_xmlfree(P *const p)
Control this memory allocated via std::*alloc.
Definition Util.hpp:31
UI::GXML::auto_xmlfree::~auto_xmlfree
virtual ~auto_xmlfree()
Free memory via std::free.
Definition Util.hpp:36
UI::GXML
Namespace for library project "ui-gxmlcpp".
Definition Buffer.cpp:31
UI
Namespace for all Schlund+Partner Code.
Definition Buffer.cpp:30