Belle II Software  release-08-01-10
LogListener.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 #ifndef _Belle2_LogListener_hh
9 #define _Belle2_LogListener_hh
10 
11 namespace Belle2 {
17  class ProcessController;
18 
19  class LogListener {
20 
21  public:
22  LogListener(ProcessController* con, int pipe[2], bool enableUnescapeNewlines = true)
23  : m_con(con), m_enableUnescapeNewlines(enableUnescapeNewlines)
24  {
25  m_pipe[0] = pipe[0];
26  m_pipe[1] = pipe[1];
27  }
28  ~LogListener() {}
29 
30  public:
31  void run();
32 
33  private:
34  ProcessController* m_con;
35  int m_pipe[2];
36 
37  bool m_enableUnescapeNewlines;
38 
39  };
40 
42 }
43 
44 #endif
45 
Abstract base class for different kinds of events.