|
a/libupnpp/soaphelp.hxx |
|
b/libupnpp/soaphelp.hxx |
|
... |
|
... |
32 |
|
32 |
|
33 |
// Utility methods
|
33 |
// Utility methods
|
34 |
bool getBool(const char *nm, bool *value) const;
|
34 |
bool getBool(const char *nm, bool *value) const;
|
35 |
bool getInt(const char *nm, int *value) const;
|
35 |
bool getInt(const char *nm, int *value) const;
|
36 |
bool getString(const char *nm, std::string *value) const;
|
36 |
bool getString(const char *nm, std::string *value) const;
|
|
|
37 |
bool get(const char *nm, bool *value) const {return getBool(nm, value);}
|
|
|
38 |
bool get(const char *nm, int *value) const {return getInt(nm, value);}
|
|
|
39 |
bool get(const char *nm, std::string *value) const {return getString(nm, value);}
|
37 |
};
|
40 |
};
|
38 |
|
41 |
|
39 |
/** Decode the XML in a Soap call and return the arguments in a SoapArgs
|
42 |
/** Decode the XML in a Soap call and return the arguments in a SoapArgs
|
40 |
* structure.
|
43 |
* structure.
|
41 |
*
|
44 |
*
|
|
... |
|
... |
68 |
SoapEncodeInput& operator() (const std::string& k, const std::string& v) {
|
71 |
SoapEncodeInput& operator() (const std::string& k, const std::string& v) {
|
69 |
data.push_back(std::pair<std::string, std::string>(k, v));
|
72 |
data.push_back(std::pair<std::string, std::string>(k, v));
|
70 |
return *this;
|
73 |
return *this;
|
71 |
}
|
74 |
}
|
72 |
static std::string i2s(int val);
|
75 |
static std::string i2s(int val);
|
73 |
|
|
|
74 |
std::string serviceType;
|
76 |
std::string serviceType;
|
75 |
std::string name;
|
77 |
std::string name;
|
76 |
std::vector<std::pair<std::string, std::string> > data;
|
78 |
std::vector<std::pair<std::string, std::string> > data;
|
77 |
};
|
79 |
};
|
78 |
|
80 |
|
|
... |
|
... |
86 |
|
88 |
|
87 |
namespace SoapHelp {
|
89 |
namespace SoapHelp {
|
88 |
std::string xmlQuote(const std::string& in);
|
90 |
std::string xmlQuote(const std::string& in);
|
89 |
std::string xmlUnquote(const std::string& in);
|
91 |
std::string xmlUnquote(const std::string& in);
|
90 |
std::string i2s(int val);
|
92 |
std::string i2s(int val);
|
|
|
93 |
inline std::string val2s(const std::string& val) {return val;}
|
|
|
94 |
inline std::string val2s(int val) {return i2s(val);}
|
|
|
95 |
inline std::string val2s(bool val) {return i2s(int(val));}
|
91 |
}
|
96 |
};
|
92 |
|
97 |
|
93 |
/** Decode UPnP Event data. This is not soap, but it's quite close to
|
98 |
/** Decode UPnP Event data. This is not soap, but it's quite close to
|
94 |
* the other code in here so whatever...
|
99 |
* the other code in here so whatever...
|
95 |
*
|
100 |
*
|
96 |
* The variable values are contained in a propertyset XML document:
|
101 |
* The variable values are contained in a propertyset XML document:
|