Files
scandocs/uni/masterarbeit/source/moversight/mt/msg/MulticastMessage.cc
2014-06-30 13:58:10 +02:00

59 lines
1.6 KiB
C++

#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);
}
}
}