xmlwrapp
Lightweight C++ XML parsing library
|
RAII helper changing some global XML library flag only for the duration of its lifetime. More...
#include <init.h>
Public Member Functions | |
change_flag (change_func_t change_func, bool flag) | |
Constructor changes the flag using the specified function. More... | |
~change_flag () | |
Destructor restores the original flag value. More... | |
RAII helper changing some global XML library flag only for the duration of its lifetime.
Example use:
|
inline |
Constructor changes the flag using the specified function.
The same function will be called from this object destructor to restore the flag value.
change_func | one of xml::init static methods, such as indent_output or remove_whitespace |
flag | the value of the flag to use |
|
inline |
Destructor restores the original flag value.