75 lines
2.1 KiB
C++
75 lines
2.1 KiB
C++
|
|
#include "RejoinRosterConfirm.h"
|
|
|
|
#include "Dispatcher.h"
|
|
#include "common/validator/MessageValidator.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Constructor
|
|
*/
|
|
RejoinRosterConfirm::RejoinRosterConfirm()
|
|
: ExteriorMessage( "RJRC", RJRC) {
|
|
}
|
|
|
|
/**
|
|
* @brief Copy constructor
|
|
* @param other The instance to copy.
|
|
*/
|
|
RejoinRosterConfirm::RejoinRosterConfirm(const RejoinRosterConfirm& other)
|
|
: ExteriorMessage(other) {
|
|
operator=(other);
|
|
}
|
|
|
|
/**
|
|
* @brief Destructor.
|
|
*/
|
|
RejoinRosterConfirm::~RejoinRosterConfirm() {
|
|
}
|
|
|
|
/**
|
|
* @brief Copy operation. Creates a copy of the current instance.
|
|
* @return A reference to the local instance.
|
|
*/
|
|
RejoinRosterConfirm *
|
|
RejoinRosterConfirm::dup() const {
|
|
return new RejoinRosterConfirm(*this);
|
|
}
|
|
|
|
/**
|
|
* @brief Assignment operator
|
|
* @param other The instance to assign
|
|
* @return a reference to this instance
|
|
*/
|
|
RejoinRosterConfirm& RejoinRosterConfirm::operator=(const RejoinRosterConfirm& other) {
|
|
if (this == &other) return *this;
|
|
ExteriorMessage::operator=(other);
|
|
return *this;
|
|
}
|
|
|
|
/**
|
|
* @brief Handles this message. To handle a message, it has first successfully validated.
|
|
* @param dis A reference to the dispatcher, used to forward this message to the handling modules.
|
|
*/
|
|
void
|
|
RejoinRosterConfirm::handleReceive( Dispatcher& dis) {
|
|
if( dis.getMessageValidator()->isValid( *this)) {
|
|
dis.getMobilitySupport().handleRejoinRosterConfirm(this);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @brief Archive method
|
|
* @param archive The archive to which the attributes are to add
|
|
*/
|
|
void
|
|
RejoinRosterConfirm::set(Archive & archive) {
|
|
ExteriorMessage::set(archive);
|
|
}
|
|
}
|
|
}
|
|
|
|
|