Conf.hpp
Go to the documentation of this file.
#ifndef UI_GXML_CONF_HPP
#define UI_GXML_CONF_HPP
// STDC++
#include <string>
namespace UI {
namespace GXML {
class Conf
{
public:
Conf();
virtual ~Conf();
virtual void customLog(std::string const & msg);
Conf & setCustomLogging(bool on=true, std::string prefix="[libxml2/xslt] ");
Conf & setCustomLoggingEnable(bool on=true);
static void setKeepBlanks(bool on=true);
Conf & setEXSLT();
private:
void memberLog(std::string const & msg);
static void libxmlLog(void * ctx, const char * msg, ...);
bool customLoggingEnabled_;
std::string logPrefix_;
};
}}
#endif
UI::GXML::Conf
libxml2/libxslt configuration helper.
Definition Conf.hpp:26
UI::GXML::Conf::customLog
virtual void customLog(std::string const &msg)
Overwrite this for custom logging.
Definition Conf.cpp:85
UI::GXML::Conf::setEXSLT
Conf & setEXSLT()
Register exslt functions for use with xsl transformations.
Definition Conf.cpp:71
UI::GXML::Conf::setCustomLoggingEnable
Conf & setCustomLoggingEnable(bool on=true)
En/disable custom logging. Defaults to "enable" ("don't care" if custom logging is unset).
Definition Conf.cpp:60
UI::GXML::Conf::setCustomLogging
Conf & setCustomLogging(bool on=true, std::string prefix="[libxml2/xslt] ")
Set/unset custom logging (optionally with custom prefix).
Definition Conf.cpp:52
UI::GXML::Conf::setKeepBlanks
static void setKeepBlanks(bool on=true)
Odd libxml2 global feature ;). See libxml2 docs.
Definition Conf.cpp:66
UI
Namespace for all Schlund+Partner Code.
Definition Buffer.cpp:30