10#include <framework/pcore/zmq/messages/ZMQModuleMessage.h>
11#include <framework/pcore/zmq/messages/ZMQDefinitions.h>
26 static constexpr const unsigned int c_type = 0;
28 static constexpr const unsigned int c_data = 1;
38 return getMessagePart<c_data>();
44 return getMessagePart<c_additionalData>();
Helper class for creating new ID/No-ID messages.
A general message with as many parts as given as template argument.
ZMQModuleMessage()=default
Do not allow to create a new message from scratch publicly.
A message without an associated socket ID. Is used in most cases.
static constexpr const unsigned int c_additionalData
Where the additional data is stored.
std::string getData() const
Get the data as string.
zmq::message_t & getDataMessage()
Get the data part.
static constexpr const unsigned int c_data
Where the data is stored.
bool isMessage(EMessageTypes isType) const
The if the message is of a given type.
static constexpr const unsigned int c_type
Where the type is stored.
zmq::message_t & getAdditionalDataMessage()
Get the additional data part.
EMessageTypes
Type the messages can have.
Abstract base class for different kinds of events.