![]() |
zeep::http::basic_template_processor — base class for template processors
// In header: <zeep/http/template-processor.hpp> class basic_template_processor { public: // construct/copy/destruct (); ~(); // public member functions (); () ; (xml::node *, scope &); template<typename TagProcessor> ( = ); tag_processor * () ; (request &, scope &, reply &); (, ) = ; (, ) = ; (, xml::document &); (); (, scope &, reply &); (scope &); // protected member functions (xml::element *, scope &, ); };
template_processor is used to create XHTML web pages based on the contents of a template file and the parameters passed in the request and calculated data stored in a scope object.
basic_template_processor
public member functions( docroot);set the docroot for this processor
() ;get the current docroot of this processor
(xml::node * node, scope & scope);process all the tags in this node
template<typename TagProcessor> ( ns = );Use to register a new
tag_processor
and couple it to a namespace. tag_processor * ( ns) ;Create a
tag_processor
. (request & request, scope & scope, reply & reply);Default handler for serving files out of our doc root.
( file, ec) = ;return last_write_time of file
( file, ec) = ;return error in ec if file was not found
( file, xml::document & doc);Use load_template to fetch the XHTML template file.
( file);Check if the argument file contains a valid reference to an XHTML template file and return the path, if any.
( file, scope & scope, reply & reply);create a reply based on a template
(scope & scope);Initialize the scope object.
basic_template_processor
protected member functions(xml::element * node, scope & scope, registeredNamespaces);process only the tags with the specified namespace prefixes