aboutsummaryrefslogtreecommitdiff
path: root/src/support/xerces_string_guard.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/xerces_string_guard.h')
-rw-r--r--src/support/xerces_string_guard.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/support/xerces_string_guard.h b/src/support/xerces_string_guard.h
new file mode 100644
index 0000000..f64a53e
--- /dev/null
+++ b/src/support/xerces_string_guard.h
@@ -0,0 +1,24 @@
+#ifndef INPUTXSLT_SRC_SUPPORT_XERCES_STRING_GUARD_H_
+#define INPUTXSLT_SRC_SUPPORT_XERCES_STRING_GUARD_H_
+
+#include <xercesc/util/XMLString.hpp>
+
+#include <string>
+
+namespace InputXSLT {
+
+class XercesStringGuard {
+ public:
+ XercesStringGuard(const std::string&);
+ ~XercesStringGuard();
+
+ XMLCh* operator*();
+
+ private:
+ XMLCh* const string_;
+
+};
+
+}
+
+#endif // INPUTXSLT_SRC_SUPPORT_XERCES_STRING_GUARD_H_