ui-gxmlcpp  1.4.4
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 
16 namespace UI {
17 namespace GXML {
18 
25 class Conf
26 {
27 public:
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 
59 private:
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
Namespace for all Schlund+Partner Code.
Definition: Buffer.cpp:30
virtual void customLog(std::string const &msg)
Overwrite this for custom logging.
Definition: Conf.cpp:85
libxml2/libxslt configuration helper.
Definition: Conf.hpp:25
static void setKeepBlanks(bool on=true)
Odd libxml2 global feature ;). See libxml2 docs.
Definition: Conf.cpp:66
Conf & setCustomLogging(bool on=true, std::string prefix="[libxml2/xslt] ")
Set/unset custom logging (optionally with custom prefix).
Definition: Conf.cpp:52
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&#39;t care" if custom logging is unset)...
Definition: Conf.cpp:60