Belle II Software  release-06-01-15
FileDescriptor.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_FileDescriptor_hh
9 #define _Belle2_FileDescriptor_hh
10 
11 namespace Belle2 {
18 
19  public:
22  FileDescriptor(int fd);
23  virtual ~FileDescriptor();
24 
25  public:
26  int get_fd() const;
27  bool select(int sec = -1, int usec = -1);
28  bool select2(int sec = -1, int usec = -1);
29  bool close();
30 
31  protected:
32  int m_fd;
33 
34  };
35 
37 }
38 
39 #endif
Abstract base class for different kinds of events.