arabica/include/XSLT/impl/handler/xslt_with_param_handler.hpp

39 lines
887 B
C++
Raw Normal View History

2007-07-19 19:01:42 +02:00
#ifndef ARABICA_XSLT_WITH_PARAM_HANDLER_HPP
#define ARABICA_XSLT_WITH_PARAM_HANDLER_HPP
#include "../xslt_with_param.hpp"
#include "xslt_variable_handler.hpp"
namespace Arabica
{
namespace XSLT
{
class WithParamHandler : public VariableHandler<WithParam>
{
public:
WithParamHandler(CompilationContext<std::string>& context,
2007-07-19 19:01:42 +02:00
WithParamable& paramee) :
VariableHandler<WithParam>(context),
paramee_(paramee)
{
} // WithParamHandler
2010-01-11 10:02:17 +01:00
virtual void endElement(const std::string& /* namespaceURI */,
const std::string& /* localName */,
const std::string& /* qName */)
2007-07-19 19:01:42 +02:00
{
paramee_.add_with_param(container());
context().pop();
} // endElement
private:
WithParamable& paramee_;
}; // WithParamHandler
} // namespace XSLT
} // namespace Arabica
#endif