Belle II Software  release-05-01-25
Fifo.h
1 #ifndef _Belle2_Fifo_hh
2 #define _Belle2_Fifo_hh
3 
4 #include "daq/slc/system/FileDescriptor.h"
5 
6 #include <cstddef>
7 #include <string>
8 
9 namespace Belle2 {
15  class Fifo : public FileDescriptor {
16 
17  public:
18  static Fifo mkfifo(const std::string& path);
19 
20  public:
21  Fifo() {}
22  virtual ~Fifo() {}
23 
24  public:
25  void open(const std::string& path,
26  const std::string& mode = "r");
27  void unlink(const std::string& path);
28  virtual size_t write(const void* v, size_t count);
29  virtual size_t read(void* v, size_t count);
30 
31  };
32 
34 }
35 
36 #endif
Belle2::Fifo
Definition: Fifo.h:15
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::FileDescriptor
Definition: FileDescriptor.h:10