Belle II Software  release-08-01-10
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:
21  FileDescriptor(int fd);
22  virtual ~FileDescriptor();
23 
24  public:
25  int get_fd() const;
26  bool select(int sec = -1, int usec = -1);
27  bool select2(int sec = -1, int usec = -1);
28  bool close();
29 
30  protected:
31  int m_fd;
32 
33  };
34 
36 }
37 
38 #endif
Abstract base class for different kinds of events.