Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame^] | 1 | #include "slp.hpp" |
| 2 | |
| 3 | slp::Message::Message(const slp::Message& rhs) |
| 4 | { |
| 5 | *this = rhs; |
| 6 | } |
| 7 | |
| 8 | slp::Message& slp::Message::operator=(const slp::Message& rhs) |
| 9 | { |
| 10 | |
| 11 | if (this != &rhs) |
| 12 | { |
| 13 | header = rhs.header; |
| 14 | body = rhs.body; |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | |
| 19 | slp::Payload::Payload(const slp::Payload& rhs) |
| 20 | { |
| 21 | *this = rhs; |
| 22 | } |
| 23 | |
| 24 | slp::Payload& slp::Payload::operator=(const slp::Payload& rhs) |
| 25 | { |
| 26 | if (this != &rhs) |
| 27 | { |
| 28 | this->srvtyperqst = rhs.srvtyperqst ; |
| 29 | this->srvrqst = rhs.srvrqst; |
| 30 | } |
| 31 | } |