aboutsummaryrefslogtreecommitdiff
path: root/src/transformation_facade.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transformation_facade.h')
-rw-r--r--src/transformation_facade.h33
1 files changed, 15 insertions, 18 deletions
diff --git a/src/transformation_facade.h b/src/transformation_facade.h
index 28d1895..4fb997b 100644
--- a/src/transformation_facade.h
+++ b/src/transformation_facade.h
@@ -6,7 +6,7 @@
#include <string>
#include "common.h"
-#include "support/error_handler.h"
+#include "support/error_capacitor.h"
#include "support/include_entity_resolver.h"
#include "support/stylesheet_parameter_guard.h"
@@ -14,58 +14,55 @@ namespace InputXSLT {
class TransformationFacade {
public:
- typedef ErrorHandler::error_cache_ptr return_type;
-
TransformationFacade(const std::string&, IncludeEntityResolver*);
~TransformationFacade();
template <typename Target>
- return_type generate(Target&);
+ void generate(Target&);
template <typename Target>
- return_type generate(Target&, const StylesheetParameterGuard::map&);
+ void generate(Target&, const StylesheetParameterGuard::map&);
template <typename Target>
- return_type generate(Target&, const xalan::XObjectPtr&);
+ void generate(Target&, const xalan::XObjectPtr&);
private:
const xalan::XalanCompiledStylesheet* transformation_;
xalan::XalanTransformer transformer_;
- ErrorHandler error_handler_;
- return_type generate(const std::string&, StylesheetParameterGuard&);
- return_type generate(std::basic_ostream<char>&, StylesheetParameterGuard&);
- return_type generate(xalan::XSLTResultTarget&&, StylesheetParameterGuard&);
+ void generate(const std::string&, StylesheetParameterGuard&);
+ void generate(std::basic_ostream<char>&, StylesheetParameterGuard&);
+ void generate(xalan::XSLTResultTarget&&, StylesheetParameterGuard&);
};
template <typename Target>
-auto TransformationFacade::generate(Target& target) -> return_type {
+void TransformationFacade::generate(Target& target) {
StylesheetParameterGuard guard(this->transformer_);
- return this->generate(target, guard);
+ this->generate(target, guard);
}
template <typename Target>
-auto TransformationFacade::generate(
+void TransformationFacade::generate(
Target& target,
const StylesheetParameterGuard::map& parameters
-) -> return_type {
+) {
StylesheetParameterGuard guard(this->transformer_, parameters);
- return this->generate(target, guard);
+ this->generate(target, guard);
}
template <typename Target>
-auto TransformationFacade::generate(
+void TransformationFacade::generate(
Target& target,
const xalan::XObjectPtr& parameter
-) -> return_type {
+) {
StylesheetParameterGuard guard(this->transformer_);
guard.set("parameters", parameter);
- return this->generate(target, guard);
+ this->generate(target, guard);
}
}