Belle II Software development
TxSocketModule.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
9#ifndef TXMODULE_H
10#define TXMODULE_H
11
12#include <framework/core/Module.h>
13#include <daq/dataflow/EvtSocket.h>
14
15#include <string>
16
17#include <framework/pcore/DataStoreStreamer.h>
18
19namespace Belle2 {
27 class TxSocketModule : public Module {
28
29 // Public functions
30 public:
31
34 virtual ~TxSocketModule();
35
37 void initialize() override;
38
40 void beginRun() override;
41 void event() override;
42 void endRun() override;
43 void terminate() override;
44
45 // Data members
46 private:
47
50
51 // Parameters for EvtSocket
52
54 std::string m_dest;
55
57 int m_port;
58
61
64
67
68 };
69
71} // end namespace Belle2
72
73#endif // MODULEHELLO_H
Stream/restore DataStore objects to/from EvtMessage.
Base class for Modules.
Definition: Module.h:72
A class definition of an input module for Sequential ROOT I/O.
DataStoreStreamer * m_streamer
DataStoreStreamer.
void initialize() override
Module functions to be called from main process.
void event() override
This method is the core of the module.
void endRun() override
This method is called if the current run ends.
EvtSocketSend * m_sock
EvtSocket.
void terminate() override
This method is called at the end of the event processing.
int m_port
Destination port.
void beginRun() override
Module functions to be called from event process.
int m_nsent
No. of sent events.
int m_compressionLevel
Compression parameter.
std::string m_dest
Destination Host.
TxSocketModule()
Constructor / Destructor.
Abstract base class for different kinds of events.