xmlwrapp
Lightweight C++ XML parsing library
|
Go to the documentation of this file.
39 #ifndef _xmlwrapp_init_h_
40 #define _xmlwrapp_init_h_
43 #include "xmlwrapp/export.h"
93 typedef bool (*change_func_t)(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_;
177 void shutdown_library();
179 static int ms_counter;
191 #endif // _xmlwrapp_init_h_
static bool substitute_entities(bool flag)
This member function controls whether or not the XML parser should substitute entities while parsing.
RAII helper changing some global XML library flag only for the duration of its lifetime.
Definition: init.h:91
change_flag(change_func_t change_func, bool flag)
Constructor changes the flag using the specified function.
Definition: init.h:105
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 validate_xml(bool flag)
This member function controls whether or not the XML parser should validate every XML document that i...
The xml::init class is used to configure the XML parser.
Definition: init.h:64
XML library namespace.
Definition: attributes.h:52
~change_flag()
Destructor restores the original flag value.
Definition: init.h:112
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 remove_whitespace(bool flag)
This member function controls whether or not the XML parser should remove ignorable whitespace around...