artdaq  v3_02_01
NetMonWrapper.hh
1 #ifndef artdaq_ArtModules_NetMonWrapper_hh
2 #define artdaq_ArtModules_NetMonWrapper_hh
3 
4 
5 #include "artdaq/ArtModules/NetMonTransportService.h"
6 
7 #include "art/Framework/Services/Registry/ServiceHandle.h"
8 #include "fhiclcpp/fwd.h"
9 
10 #include <TBufferFile.h>
11 
12 #include <string>
13 #include <memory>
14 
15 namespace art
16 {
27  {
28  public:
29 
39  NetMonWrapper(const fhicl::ParameterSet&)
40  {
41  ServiceHandle<NetMonTransportService> transport;
42  transport->listen();
43  }
44 
49  {
50  ServiceHandle<NetMonTransportService> transport;
51  transport->disconnect();
52  }
53 
58  void receiveMessage(std::unique_ptr<TBufferFile>& msg);
59 
64  void receiveInitMessage(std::unique_ptr<TBufferFile>& msg);
65  };
66 }
67 
68 #endif /* artdaq_ArtModules_NetMonWrapper_hh */
~NetMonWrapper()
NetMonWrapper Destructor.
This class wraps NetMonTransportService so that it can act as an ArtdaqInput template class...
NetMonWrapper(const fhicl::ParameterSet &)
NetMonWrapper Constructor.
void receiveMessage(std::unique_ptr< TBufferFile > &msg)
Receive a message from the NetMonTransportService.
Definition: NetMonWrapper.cc:7
void receiveInitMessage(std::unique_ptr< TBufferFile > &msg)
Receive an init message from the NetMonTransportService.