You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
668 B
C++
28 lines
668 B
C++
![]()
8 years ago
|
#include "csoap/common.h"
|
||
|
|
||
|
namespace csoap {
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
Parameter::Parameter(const std::string& key, const std::string& value)
|
||
|
: key_(key) {
|
||
|
value_ = LexicalCast<std::string>(value, "");
|
||
|
}
|
||
|
|
||
|
Parameter::Parameter(const std::string& key, int value)
|
||
|
: key_(key) {
|
||
|
value_ = LexicalCast<std::string>(value, "");
|
||
|
}
|
||
|
|
||
|
Parameter::Parameter(const std::string& key, float value)
|
||
|
: key_(key) {
|
||
|
value_ = LexicalCast<std::string>(value, "");
|
||
|
}
|
||
|
|
||
|
Parameter::Parameter(const std::string& key, bool value)
|
||
|
: key_(key) {
|
||
|
value_ = LexicalCast<std::string>(value, "");
|
||
|
}
|
||
|
|
||
|
} // namespace csoap
|