Publisher::Publisher(const Publisher& other) { MessageBuffer* tmp; publisher_name = other.getName(); pub_msg_buf->copyFrom(*(other.getBuffer()) ); pub_msg_queue = other.getQueue(); }
Publisher::Publisher(const Publisher& other) { publisher_name = other.getName(); pub_msg_buf->copyFrom(*(other.getBuffer()) ); pub_msg_queue = other.getQueue(); pub_msg_queue->add_publisher(this,pub_msg_buf); }
bool Publisher::operator==(const Publisher& pub_1) { return this->getName() == pub_1.getName(); }