10#include <framework/pcore/zmq/messages/ZMQModuleMessage.h>
11#include <framework/pcore/zmq/messages/ZMQDefinitions.h>
28 static constexpr const unsigned int c_type = 1;
30 static constexpr const unsigned int c_data = 2;
37 const auto& type = getMessagePartAsString<c_type>();
38 return type.size() == 1 and type[0] ==
static_cast<char>(isType);
44 return getMessagePartAsString<c_identity>();
50 return getMessagePart<c_data>();
56 return getMessagePart<c_additionalData>();
A message with the socket ID. Needed in input<->worker communication.
bool isMessage(const EMessageTypes isType) const
The if the message is of a given type.
std::string getIdentity() const
Get the identity part.
static constexpr const unsigned int c_additionalData
Where the additional data is stored.
zmq::message_t & getDataMessage()
Get the data part.
static constexpr const unsigned int c_data
Where the data is stored.
static constexpr const unsigned int c_identity
Where the identity is stored.
static constexpr const unsigned int c_type
Where the type of the message is stored.
zmq::message_t & getAdditionalDataMessage()
Get the additional data part.
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.
EMessageTypes
Type the messages can have.
Abstract base class for different kinds of events.