Belle II Software development
ZMQNullConnection.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <framework/pcore/zmq/connections/ZMQConnection.h>
11
12#include <memory>
13#include <zmq.hpp>
14
15namespace Belle2 {
22 public:
24 std::vector<zmq::socket_t*> getSockets() const final;
25
27 void handleIncomingData();
29 std::string getEndPoint() const { return ""; }
30 };
32}
Base class for every connection with virtual functions to be implemented:
Definition: ZMQConnection.h:31
Connection doing just nothing: without the capability to pull, send or receive. Useful for template i...
std::string getEndPoint() const
Return the connection string.
void handleIncomingData()
Raise an exception if called - there should never be any incoming message.
std::vector< zmq::socket_t * > getSockets() const final
There is no socket, so just return an empty list.
Abstract base class for different kinds of events.