18#ifndef _SOAPHELP_H_X_INCLUDED_
19#define _SOAPHELP_H_X_INCLUDED_
27#include <unordered_map>
31#include "upnppexports.hxx"
42 const std::string& getName()
const;
45 bool get(
const char *nm,
bool *value)
const;
47 bool get(
const char *nm,
int *value)
const;
49 bool get(
const char *nm, std::string *value)
const;
51 void getMap(std::unordered_map<std::string, std::string>& out);
61std::string UPNPP_API xmlQuote(
const std::string& in);
64std::string UPNPP_API xmlUnquote(
const std::string& in);
67std::string UPNPP_API i2s(
int val);
70template <
class InputIterator>
71std::string UPNPP_API argsToStr(InputIterator first, InputIterator last)
74 for (
auto it = first; it != last; it++) {
75 out += it->first +
" = " + it->second +
"\n";
91 SoapOutgoing(
const std::string& st,
const std::string& nm);
94 SoapOutgoing& addarg(
const std::string& k,
const std::string& v);
96 SoapOutgoing& operator()(
const std::string& k,
const std::string& v);
98 const std::string& getName()
const;
Definition upnpp_p.hxx:47
Store incoming Soap data: device action input parameters, or response to CP.
Definition soaphelp.hxx:36
bool get(const char *nm, std::string *value) const
Get string parameter value.
Definition upnpp_p.hxx:53
Store the values to be encoded in outgoing SOAP data: device response or CP args.
Definition soaphelp.hxx:88
Deal with data for the SOAP action protocol.
Definition base64.cxx:26