![]() |
zeep::http::scope — The class that stores variables for the current scope.
// In header: <zeep/http/el-processing.hpp> class scope { public: // types typedef xml::node > > ; // construct/copy/destruct (); (request &); (basic_server &, request &); (scope &); scope & (scope &); // public member functions template<typename T> (, ); template<typename ForwardIterator> (, , ); object & (, = ) ; object & () ; object & (); object & (); request & () ; () ; json::element () ; (object &); () ; (, ); () ; () ; template<> (, object &); // friend functions (, scope &); };
When processing tags and in expression language constructs we use variables. These are stored in scope instances.
scope
public
typestypedef xml::node > > ;
In tag processors it is sometimes needed to take a selection of zeep::xml::nodes and reuse these, as a copy when inserting templates e.g.
scope
public
construct/copy/destruct();simple constructor, used where there's no request available
(request & req);constructor to be used only in debugging
Parameters: |
|
(basic_server & server, request & req);constructor used in a HTTP request context
Parameters: |
|
(scope & next);chaining constructor
Scopes can be nested, introducing new namespaces
Parameters: |
|
scope & (scope &);
scope
public member functionstemplate<typename T> ( name, value);put variable in the scope with name and value
template<typename ForwardIterator> ( name, begin, end);put variable of type array in the scope with name and values from begin to end
object & ( name, includeSelected = ) ;return variable with name
Parameters: |
|
||||
Returns: |
The value found or null if there was no such variable. |
object & ( name) ;return variable with name
object & ( name);return variable with name
Parameters: |
|
||
Returns: |
The value found or null if there was no such variable. |
object & ( name);return variable with name
request & () ;return the HTTP request, will throw if the scope chain was not created with a request
() ;return the context_name of the server
json::element () ;return the credentials of the current user
(object & o);select object o , used in z2:object constructs
( name) ;return the node_set_type with name name
( name, nodes);store node_set_type nodes with name name
( name) ;return whether a node_set with name name is stored
() ;get the CSRF token from the request burried in scope
template<> ( name, object & value);