Belle II Software development
HistoRelay.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#ifndef HISTORELAY_H
9#define HISTORELAY_H
10
11#include <string>
12
13#include <daq/dataflow/EvtSocket.h>
14#include <daq/dqm/DqmMemFile.h>
15
16namespace Belle2 {
21 class HistoRelay {
22 public:
23 HistoRelay(std::string& filename, std::string& dest, int port);
24 ~HistoRelay();
26 HistoRelay(const HistoRelay&) = delete;
27
29 HistoRelay& operator=(const HistoRelay&) = delete;
30
31 int collect();
32 private:
33 std::string m_filename;
34 DqmMemFile* m_memfile;
35 EvtSocketSend* m_sock;
36 std::string m_dest;
37 int m_port;
38
39 };
40
41}
42
43#endif
44
HistoRelay(const HistoRelay &)=delete
Copy constructor (disabled).
HistoRelay & operator=(const HistoRelay &)=delete
Operator = (disabled).
Abstract base class for different kinds of events.