39#ifndef _xmlwrapp_init_h_
40#define _xmlwrapp_init_h_
43#include "xmlwrapp/export.h"
93 using change_func_t = bool (*)(bool);
106 : change_func_(change_func),
107 flag_orig_((*change_func)(flag))
114 (*change_func_)(flag_orig_);
118 change_func_t
const change_func_;
119 bool const flag_orig_;
174 init& operator=(
const init&) =
delete;
177 void shutdown_library();
179 static int ms_counter;
RAII helper changing some global XML library flag only for the duration of its lifetime.
Definition init.h:91
~change_flag()
Destructor restores the original flag value.
Definition init.h:112
change_flag(change_func_t change_func, bool flag)
Constructor changes the flag using the specified function.
Definition init.h:105
The xml::init class is used to configure the XML parser.
Definition init.h:64
static bool remove_whitespace(bool flag)
This member function controls whether or not the XML parser should remove ignorable whitespace around...
static bool substitute_entities(bool flag)
This member function controls whether or not the XML parser should substitute entities while parsing.
static bool load_external_subsets(bool flag)
This member function controls whether or not the XML parser should load external (DTD) subsets while ...
static bool indent_output(bool flag)
This member function controls whether or not the XML parser should add text nodes for indenting when ...
static bool validate_xml(bool flag)
This member function controls whether or not the XML parser should validate every XML document that i...
XML library namespace.
Definition attributes.h:55