diff options
Diffstat (limited to 'src/support/stylesheet_parameter_guard.h')
-rw-r--r-- | src/support/stylesheet_parameter_guard.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/support/stylesheet_parameter_guard.h b/src/support/stylesheet_parameter_guard.h new file mode 100644 index 0000000..f0622ad --- /dev/null +++ b/src/support/stylesheet_parameter_guard.h @@ -0,0 +1,35 @@ +#ifndef INPUTXSLT_SRC_SUPPORT_STYLESHEET_PARAMETER_GUARD_H_ +#define INPUTXSLT_SRC_SUPPORT_STYLESHEET_PARAMETER_GUARD_H_ + +#include <xalanc/XalanTransformer/XalanTransformer.hpp> + +#include <string> +#include <unordered_map> + +#include "common.h" + +namespace InputXSLT { + +class StylesheetParameterGuard { + public: + typedef std::unordered_map<std::string, std::string> map; + + explicit StylesheetParameterGuard(xalan::XalanTransformer&); + StylesheetParameterGuard( + xalan::XalanTransformer&, + const map& + ); + + ~StylesheetParameterGuard(); + + void set(const map&); + void set(const std::string&, const std::string&); + + private: + xalan::XalanTransformer& transformer_; + +}; + +} + +#endif // INPUTXSLT_SRC_SUPPORT_STYLESHEET_PARAMETER_GUARD_H_ |