ui-gxmlcpp 1.4.6
Conf.hpp
Go to the documentation of this file.
1
10#ifndef UI_GXML_CONF_HPP
11#define UI_GXML_CONF_HPP
12
13// STDC++
14#include <string>
15
16namespace UI {
17namespace GXML {
18
25class Conf
26{
27public:
28 Conf();
29 virtual ~Conf();
30
43 virtual void customLog(std::string const & msg);
44
51 Conf & setCustomLogging(bool on=true, std::string prefix="[libxml2/xslt] ");
53 Conf & setCustomLoggingEnable(bool on=true);
55 static void setKeepBlanks(bool on=true);
57 Conf & setEXSLT();
58
59private:
60 void memberLog(std::string const & msg);
61 static void libxmlLog(void * ctx, const char * msg, ...);
62 bool customLoggingEnabled_;
63 std::string logPrefix_;
64};
65
66}}
67#endif
libxml2/libxslt configuration helper.
Definition Conf.hpp:26
virtual void customLog(std::string const &msg)
Overwrite this for custom logging.
Definition Conf.cpp:85
Conf & setEXSLT()
Register exslt functions for use with xsl transformations.
Definition Conf.cpp:71
Conf & setCustomLoggingEnable(bool on=true)
En/disable custom logging. Defaults to "enable" ("don't care" if custom logging is unset).
Definition Conf.cpp:60
Conf & setCustomLogging(bool on=true, std::string prefix="[libxml2/xslt] ")
Set/unset custom logging (optionally with custom prefix).
Definition Conf.cpp:52
static void setKeepBlanks(bool on=true)
Odd libxml2 global feature ;). See libxml2 docs.
Definition Conf.cpp:66
Namespace for all Schlund+Partner Code.
Definition Buffer.cpp:30