|
|
|
@ -3,6 +3,8 @@
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
#include "webcc/globals.h" // for COPY_ASSIGN_MOVE_DEFAULT
|
|
|
|
|
|
|
|
|
|
namespace webcc {
|
|
|
|
|
|
|
|
|
|
// Key-value SOAP parameter.
|
|
|
|
@ -44,10 +46,17 @@ class SoapParameter {
|
|
|
|
|
as_cdata_(false) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if WEBCC_DEFAULT_MOVE_COPY_ASSIGN
|
|
|
|
|
|
|
|
|
|
SoapParameter(SoapParameter&&) = default;
|
|
|
|
|
SoapParameter& operator=(SoapParameter&&) = default;
|
|
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
// Use "= default" if drop the support of VS 2013.
|
|
|
|
|
SoapParameter(SoapParameter&& rhs)
|
|
|
|
|
: key_(std::move(rhs.key_)), value_(std::move(rhs.value_)),
|
|
|
|
|
as_cdata_(rhs.as_cdata_) {
|
|
|
|
|
as_cdata_(rhs.as_cdata_) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Use "= default" if drop the support of VS 2013.
|
|
|
|
@ -60,6 +69,8 @@ class SoapParameter {
|
|
|
|
|
return *this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // WEBCC_DEFAULT_MOVE_COPY_ASSIGN
|
|
|
|
|
|
|
|
|
|
const std::string& key() const { return key_; }
|
|
|
|
|
const std::string& value() const { return value_; }
|
|
|
|
|
|
|
|
|
|