iSpike
2.1
Spike conversion library for robotics
|
00001 #include <iSpike/YarpPortDetails.hpp> 00002 using namespace ispike; 00003 00005 YarpPortDetails::YarpPortDetails(){ 00006 setIp("Undefined"); 00007 setPort(0); 00008 setType("Untyped"); 00009 } 00010 00011 00013 YarpPortDetails::YarpPortDetails(string ip, unsigned port, string type) { 00014 setIp(ip); 00015 setPort(port); 00016 setType(type); 00017 } 00018 00019 00021 YarpPortDetails::YarpPortDetails(const YarpPortDetails& ypd){ 00022 ip= ypd.ip; 00023 port = ypd.port; 00024 type = ypd.type; 00025 } 00026 00027 00029 YarpPortDetails& YarpPortDetails::operator=(const YarpPortDetails& rhs){ 00030 if(this == &rhs) 00031 return *this; 00032 00033 ip= rhs.ip; 00034 port = rhs.port; 00035 type = rhs.type; 00036 00037 return *this; 00038 }