artdaq  v3_07_02
NetMonWrapper.hh
1 #ifndef artdaq_ArtModules_NetMonWrapper_hh
2 #define artdaq_ArtModules_NetMonWrapper_hh
3 
4 #include "artdaq-core/Utilities/ExceptionHandler.hh"
5 #include "fhiclcpp/ParameterSet.h"
6 
7 #include "artdaq-core/Data/Fragment.hh"
8 
9 #include <memory>
10 #include <string>
11 
12 namespace art {
23 {
24 public:
29  NetMonWrapper(fhicl::ParameterSet const& ps);
30 
34  virtual ~NetMonWrapper() = default;
35 
40  artdaq::FragmentPtr receiveMessage();
41 
46  artdaq::FragmentPtr receiveInitMessage();
47 
48 private:
49  fhicl::ParameterSet data_pset_;
50  bool init_received_;
51  double init_timeout_s_;
52 };
53 } // namespace art
54 
55 #endif /* artdaq_ArtModules_NetMonWrapper_hh */
artdaq::FragmentPtr receiveInitMessage()
Receive an init message from the NetMonTransportService.
This class wraps NetMonTransportService so that it can act as an ArtdaqInput template class...
NetMonWrapper(fhicl::ParameterSet const &ps)
NetMonWrapper Constructor.
Definition: NetMonWrapper.cc:8
virtual ~NetMonWrapper()=default
NetMonWrapper Destructor.
artdaq::FragmentPtr receiveMessage()
Receive a message from the NetMonTransportService.