18 #ifndef _SOAPHELP_H_X_INCLUDED_ 19 #define _SOAPHELP_H_X_INCLUDED_ 26 #include <unordered_map> 30 #include "upnppexports.hxx" 41 const std::string& getName()
const;
44 bool get(
const char *nm,
bool *value)
const;
46 bool get(
const char *nm,
int *value)
const;
48 bool get(
const char *nm, std::string *value)
const;
50 void getMap(std::unordered_map<std::string, std::string>& out);
52 class UPNPP_LOCAL Internal;
57 std::string UPNPP_API xmlQuote(
const std::string& in);
58 std::string UPNPP_API xmlUnquote(
const std::string& in);
59 std::string UPNPP_API i2s(
int val);
60 inline std::string val2s(
const std::string& val)
64 inline std::string val2s(
int val)
68 inline std::string val2s(
bool val)
72 template <
class InputIterator>
73 std::string UPNPP_API argsToStr(InputIterator first, InputIterator last)
76 for (
auto it = first; it != last; it++) {
77 out += it->first +
" = " + it->second +
"\n";
93 SoapOutgoing(
const std::string& st,
const std::string& nm);
96 SoapOutgoing& addarg(
const std::string& k,
const std::string& v);
98 SoapOutgoing& operator()(
const std::string& k,
const std::string& v);
100 const std::string& getName()
const;
102 class UPNPP_LOCAL Internal;
Store the values to be encoded in a SOAP response.
Definition: soaphelp.hxx:90
Decode incoming Soap call data.
Definition: soaphelp.hxx:35
Definition: base64.cxx:26