45 lines
1.0 KiB
C++
45 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#ifndef GROUPDATA_H
|
|
#define GROUPDATA_H
|
|
|
|
#include "common/Defines.h"
|
|
#include "byte_array.h"
|
|
|
|
#include "mt/msg/MulticastMessage.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @class GroupData
|
|
* @ingroup Moversight
|
|
* @brief Represents a group data message.
|
|
* @author Jan Gäbler, Robert Noack
|
|
*/
|
|
class GroupData : public MulticastMessage {
|
|
public:
|
|
GroupData();
|
|
GroupData( const GroupData& other);
|
|
virtual ~GroupData();
|
|
|
|
GroupData* dup() const;
|
|
GroupData& operator=( const GroupData& other);
|
|
|
|
void handleReceive( Dispatcher& dis);
|
|
void handleDeliver( Dispatcher& dis, const PeerIDList& missedPeers);
|
|
|
|
virtual void set( Archive& archive);
|
|
|
|
void setData( ByteArray&& data);
|
|
void setData( const ByteArray& data);
|
|
const ByteArray& getData() const;
|
|
|
|
private:
|
|
ByteArray data;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif /* GROUPDATA_H */
|