1 #ifndef EUDAQ_INCLUDED_LogCollector
2 #define EUDAQ_INCLUDED_LogCollector
7 #include "eudaq/Platform.hh"
8 #include "eudaq/Configuration.hh"
9 #include "eudaq/TransportServer.hh"
10 #include "eudaq/CommandReceiver.hh"
24 const std::string &listenaddress);
28 virtual void OnServer();
29 virtual void OnReceive(
const LogMessage &msg) = 0;
32 virtual void OnStopRun()
34 if (m_connectionstate.GetState() != eudaq::ConnectionState::STATE_ERROR)
35 SetConnectionState(eudaq::ConnectionState::STATE_CONF);
43 bool m_done, m_listening;
47 std::unique_ptr<std::thread> m_thread;
48 std::string m_filename;
53 #endif // EUDAQ_INCLUDED_LogCollector
Definition: TransportBase.hh:80
Definition: CommandReceiver.hh:20
Definition: LogCollector.hh:21
Definition: LogMessage.hh:15
Definition: TransportServer.hh:10
Definition: TransportBase.hh:22