Files
scandocs/uni/masterarbeit/source/moversight/app/events/GroupMessage.h
2014-06-30 13:58:10 +02:00

40 lines
855 B
C++

#pragma once
#ifndef GROUP_MESSAGE_H
#define GROUP_MESSAGE_H
#include <string>
#include <sstream>
#include <core/network/generic_message.h>
#include "common/Defines.h"
namespace ubeeme
{
namespace moversight
{
class MOV_EXPORT GroupMessage : public GenericMessage<moversight::PeerID>
{
public:
GroupMessage(int type, std::string tag = "") : GenericMessage<moversight::PeerID>(type, tag) {}
virtual ~GroupMessage() {}
inline virtual std::string toString() const;
};
std::string
GroupMessage::toString() const
{
std::ostringstream out;
out << "GroupMessage [" << header.getModuleTag() << "] from type: " << header.getMessageType();
return out.str();
}
}
}
#endif // GROUP_MESSAGE_H