iSpike
2.1
Spike conversion library for robotics
|
00001 //iSpike includes 00002 #include "iSpike/Description.hpp" 00003 using namespace ispike; 00004 00006 Description::Description(){ 00007 name = "Unnamed"; 00008 description = "Undescribed"; 00009 type = "Unknown"; 00010 } 00011 00012 00014 Description::Description(string name, string description, string type){ 00015 this->name = name; 00016 this->description = description; 00017 this->type = type; 00018 } 00019 00020 00022 Description::Description(const Description& desc){ 00023 this->name = desc.name; 00024 this->description = desc.description; 00025 this->type = desc.type; 00026 } 00027 00028 00030 Description::~Description() { 00031 } 00032 00033 00035 Description & Description::operator= (const Description & rhs) { 00036 if (this != &rhs) {// protect against invalid self-assignment 00037 this->name = rhs.name; 00038 this->description = rhs.description; 00039 this->type = rhs.type; 00040 } 00041 00042 // by convention, always return *this 00043 return *this; 00044 } 00045