00001 #ifndef artdaq_ArtModules_NetMonWrapper_hh
00002 #define artdaq_ArtModules_NetMonWrapper_hh
00003
00004
00005 #include "artdaq/ArtModules/NetMonTransportService.h"
00006
00007 #include "art/Framework/Services/Registry/ServiceHandle.h"
00008 #include "fhiclcpp/fwd.h"
00009
00010 #include <TBufferFile.h>
00011
00012 #include <string>
00013 #include <memory>
00014
00015 namespace art
00016 {
00026 class NetMonWrapper
00027 {
00028 public:
00029
00039 NetMonWrapper(const fhicl::ParameterSet&)
00040 {
00041 ServiceHandle<NetMonTransportService> transport;
00042 transport->listen();
00043 }
00044
00048 ~NetMonWrapper()
00049 {
00050 ServiceHandle<NetMonTransportService> transport;
00051 transport->disconnect();
00052 }
00053
00058 void receiveMessage(std::unique_ptr<TBufferFile>& msg);
00059
00064 void receiveInitMessage(std::unique_ptr<TBufferFile>& msg);
00065 };
00066 }
00067
00068 #endif