update20140630
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
|
||||
#include "MulticastMessage.h"
|
||||
#include "Dispatcher.h"
|
||||
|
||||
namespace ubeeme {
|
||||
namespace moversight {
|
||||
|
||||
/**
|
||||
* @brief Constructor. Creates a multicast message of the given name and type.
|
||||
* @param name The name of the message.
|
||||
* @param aType The type of the message.
|
||||
*/
|
||||
MulticastMessage::MulticastMessage( const std::string& name, MoversightMessageType type)
|
||||
: MoversightMessage( name, type) {
|
||||
setViewID( UNDEFINED_VIEW_ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Copy constructor.
|
||||
* @param other The instance to copy.
|
||||
*/
|
||||
MulticastMessage::MulticastMessage( const MulticastMessage& other)
|
||||
: MoversightMessage(other) {
|
||||
operator=( other);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Destructor.
|
||||
*/
|
||||
MulticastMessage::~MulticastMessage() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Assignment operator.
|
||||
* @param other The instance to assign.
|
||||
* @return A reference to the this instance.
|
||||
*/
|
||||
MulticastMessage&
|
||||
MulticastMessage::operator=( const MulticastMessage& other) {
|
||||
MoversightMessage::operator=( other);
|
||||
return *this;
|
||||
}
|
||||
|
||||
MulticastMessage*
|
||||
MulticastMessage::dup() const {
|
||||
return new MulticastMessage(*this);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Archive method
|
||||
* @param archive The archive to which the attributes are to add
|
||||
*/
|
||||
void
|
||||
MulticastMessage::set(Archive &archive) {
|
||||
MoversightMessage::set(archive);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user