|
a/libupnpp/soaphelp.hxx |
|
b/libupnpp/soaphelp.hxx |
|
... |
|
... |
47 |
* The elements in the response must be in a defined order, so we
|
47 |
* The elements in the response must be in a defined order, so we
|
48 |
* can't use a map as container, we use a vector of pairs instead.
|
48 |
* can't use a map as container, we use a vector of pairs instead.
|
49 |
* The generic UpnpDevice callback fills up name and service type, the
|
49 |
* The generic UpnpDevice callback fills up name and service type, the
|
50 |
* device call only needs to fill the data vector.
|
50 |
* device call only needs to fill the data vector.
|
51 |
*/
|
51 |
*/
|
52 |
struct SoapData {
|
52 |
class SoapData {
|
|
|
53 |
public:
|
53 |
std::string name;
|
54 |
std::string name;
|
54 |
std::string serviceType;
|
55 |
std::string serviceType;
|
55 |
std::vector<std::pair<std::string, std::string> > data;
|
56 |
std::vector<std::pair<std::string, std::string> > data;
|
|
|
57 |
void addarg(const std::string& k, const std::string& v) {
|
|
|
58 |
data.push_back(pair<string,string>(k, v));
|
|
|
59 |
}
|
56 |
};
|
60 |
};
|
57 |
|
61 |
|
58 |
/** Build a SOAP response data XML document from a list of values */
|
62 |
/** Build a SOAP response data XML document from a list of values */
|
59 |
extern IXML_Document *buildSoapBody(SoapData& data);
|
63 |
extern IXML_Document *buildSoapBody(SoapData& data);
|
60 |
|
64 |
|