56 lines
1.5 KiB
C++
Executable File
56 lines
1.5 KiB
C++
Executable File
/*
|
|
* File: UnicastMessage.h
|
|
* Author: jgaebler
|
|
*
|
|
* Created on October 25, 2012, 3:00 PM
|
|
*/
|
|
#pragma once
|
|
|
|
#ifndef UNICASTMESSAGE_H
|
|
#define UNICASTMESSAGE_H
|
|
|
|
#include "common/transport/msg/ExteriorMessage.h"
|
|
#include "common/transport/MessageReference.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Represents an unicast message, used in the ut service. The message is used as a sub class for extending.
|
|
* @author Jan Gäbler, Robert Noack
|
|
* @class UnicastMessage
|
|
* @ingroup Moversight
|
|
*/
|
|
class UnicastMessage : public ExteriorMessage {
|
|
public:
|
|
UnicastMessage();
|
|
UnicastMessage( const UnicastMessage& other);
|
|
virtual ~UnicastMessage();
|
|
|
|
virtual UnicastMessage* dup() const;
|
|
virtual UnicastMessage& operator=( const UnicastMessage& other);
|
|
|
|
void handleReceive( Dispatcher& dis);
|
|
|
|
int getSequ() const;
|
|
void setSequ( const int sequ);
|
|
|
|
void setIsLast( const bool isLast);
|
|
bool getIsLast();
|
|
|
|
const MessageReference& getMessageReference() const;
|
|
void setMessageReference( const MessageReference& mRef);
|
|
|
|
virtual void set( Archive& archive);
|
|
|
|
private:
|
|
size_t sequ;
|
|
bool isLastMessage; // @NOTE purpose?
|
|
MessageReference messageReference;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif /* UNICASTMESSAGE_H */
|
|
|