10#include <framework/pcore/zmq/messages/ZMQModuleMessage.h>
11#include <framework/pcore/zmq/messages/ZMQDefinitions.h>
22 friend class ZMQMessageFactory;
28 static constexpr const unsigned int c_type = 1;
30 static constexpr const unsigned int c_data = 2;
38 return type.size() == 1 and type[0] ==
static_cast<char>(isType);
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.
ZMQModuleMessage(const ZMQModuleMessage &)=delete
Copy the constructor from the base class.
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.
const zmq::message_t & getMessagePart() const
ZMQModuleMessage(const ZMQModuleMessage &)=delete
Do not allow to copy a message.
std::string getMessagePartAsString() const
EMessageTypes
Type the messages can have.
Abstract base class for different kinds of events.