53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
/*
|
|
* File: StreamMessage.h
|
|
* Author: jgaebler
|
|
*
|
|
* Created on February 17, 2012, 3:55 PM
|
|
*/
|
|
#pragma once
|
|
|
|
#ifndef STREAMMESSAGE_H
|
|
#define STREAMMESSAGE_H
|
|
|
|
#include "common/Defines.h"
|
|
#include "common/transport/msg/MoversightMessage.h"
|
|
#include "byte_array.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Represents a stream multicast data message.
|
|
* @author Jan Gäbler, Robert Noack
|
|
* @class StreamMessage
|
|
* @ingroup Moversight
|
|
*/
|
|
class StreamMessage : public MoversightMessage {
|
|
public:
|
|
StreamMessage();
|
|
StreamMessage( const StreamMessage& other);
|
|
StreamMessage( StreamMessage&& other);
|
|
virtual ~StreamMessage();
|
|
|
|
StreamMessage& operator=( const StreamMessage& other);
|
|
StreamMessage& operator=( StreamMessage&& other);
|
|
|
|
StreamMessage* dup() const;
|
|
|
|
void handleReceive(Dispatcher& dis);
|
|
void handleDeliver(Dispatcher& dis);
|
|
|
|
void setData(const ByteArray& data);
|
|
void setData(ByteArray&& data);
|
|
const ByteArray& getData() const;
|
|
|
|
virtual void set( Archive& archive);
|
|
|
|
private:
|
|
ByteArray data;
|
|
};
|
|
|
|
}
|
|
}
|
|
#endif /* STREAMMESSAGE_H */
|