Class context
zeep::xml::context
Synopsis
class context {
public:
context();
context(const context &);
context & operator=(const context &);
~context();
void set(const std::string &, const std::string &);
void set(const std::string &, double);
template<typename T,
std::enable_if_t< std::is_same_v< T, std::string > or std::is_same_v< T, double >, int > = 0>
T get(const std::string &);
};
Description
XPath's can contain variables. And variables can contain all kinds of data like strings, numbers and even node_sets. If you want to use variables, you can define a context, add your variables to it and then pass it on in the xpath::evaluate method.
context
public
construct/copy/destruct
context
public member functions
void set(const std::string & name, const std::string & value);
void set(const std::string & name, double value);
template<typename T,
std::enable_if_t< std::is_same_v< T, std::string > or std::is_same_v< T, double >, int > = 0>
T get(const std::string & name);