10#include <framework/dataobjects/EventMetaData.h>
11#include <framework/pcore/zmq/messages/ZMQDefinitions.h>
12#include <framework/pcore/zmq/utils/EventMetaDataSerialization.h>
13#include <framework/pcore/EvtMessage.h>
14#include <framework/datastore/StoreObjPtr.h>
43 return zmq::message_t(s.c_str(), s.length());
56 return zmq::message_t(message.c_str(), message.length());
63 return zmq::message_t(evtMessage->buffer(), evtMessage->size());
Type-safe access to single objects in the data store.
Internal helper for creating ZMQ messages (should not be used otherwise).
static zmq::message_t createZMQMessage(const int i)
Create a message out of an int by casting to a string.
static zmq::message_t createZMQMessage(const std::string &s)
Create a message out of a string.
static zmq::message_t createZMQMessage(const std::unique_ptr< EvtMessage > &evtMessage)
Create a message out of an event message.
static zmq::message_t createZMQMessage(const StoreObjPtr< EventMetaData > &evtMetaData)
Create a message out of an event meta data by serialization.
static zmq::message_t createZMQMessage(const EMessageTypes &c)
Create a message out of a type by casting to a char.
static zmq::message_t createZMQMessage(zmq::message_t message)
Just pass a zmq message.
EMessageTypes
Type the messages can have.
Abstract base class for different kinds of events.