Allow to send/receive ROOT/KV objects between ZeroMQ sockets.
Examples of use
Sending an object
zmq::socket_t socket;
TObject* obj;
Allow to send/receive ROOT/KV objects between ZeroMQ sockets.
virtual void WriteObject(const TObject *obj, Bool_t cacheReuse=kTRUE)
zmq::message_t & GetMessage()
Receiving an object
zmq::socket_t socket;
zmq::message_t zmq_message;
if(socket.recv(&zmq_message))
{
}
Definition at line 46 of file KVZMQMessage.h.
#include <KVZMQMessage.h>
◆ KVZMQMessage() [1/2]
KVZMQMessage::KVZMQMessage |
( |
| ) |
|
|
inline |
◆ KVZMQMessage() [2/2]
KVZMQMessage::KVZMQMessage |
( |
zmq::message_t & |
g | ) |
|
|
inline |
stop the underlying TBuffer from deleting the buffer which in our case belongs to the zmq::message_t object
Definition at line 57 of file KVZMQMessage.h.
◆ ~KVZMQMessage()
virtual KVZMQMessage::~KVZMQMessage |
( |
| ) |
|
|
inlinevirtual |
◆ GetMessage()
zmq::message_t& KVZMQMessage::GetMessage |
( |
| ) |
|
|
inline |
◆ GetObject() [1/2]
TObject* KVZMQMessage::GetObject |
( |
| ) |
|
|
inline |
◆ GetObject() [2/2]
template<class T >
T* KVZMQMessage::GetObject |
( |
| ) |
|
|
inline |
◆ WriteObject()
virtual void KVZMQMessage::WriteObject |
( |
const TObject * |
obj, |
|
|
Bool_t |
cacheReuse = kTRUE |
|
) |
| |
|
inlinevirtual |
◆ fMessage
zmq::message_t KVZMQMessage::fMessage |
|
private |
◆ fObject
std::unique_ptr<TObject> KVZMQMessage::fObject |
|
private |
◆ fReadNewObject
Bool_t KVZMQMessage::fReadNewObject |
|
private |