artdaq_core  v3_05_00
SimpleMemoryReader.hh
1 #ifndef artdaq_core_Core_SimpleMemoryReader_hh
2 #define artdaq_core_Core_SimpleMemoryReader_hh 1
3 
4 #include "artdaq-core/Core/SharedMemoryEventReceiver.hh"
5 #include <memory>
6 
7 namespace artdaq
8 {
19  int SimpleMemoryReaderApp(int argc, char** argv);
20 
26  {
27  public:
34  explicit SimpleMemoryReader( uint32_t shm_key, uint32_t broadcast_key, std::size_t expectedEventCount = 0);
35 
41  void run();
42 
43  private:
47  std::shared_ptr<SharedMemoryEventReceiver> incoming_events_;
51  std::size_t expectedEventCount_;
52  };
53 }
54 
55 #endif /* artdaq_core_Core_SimpleMemoryReader_hh */
void run()
Run until a null pointer is popped off of the RawEventQueue. Throws an excpetion if expectedEventCoun...
SimpleMemoryReader(uint32_t shm_key, uint32_t broadcast_key, std::size_t expectedEventCount=0)
Constructs a SimpleMemoryReader.
SimpleMemoryReader will continue to read RawEvent objects off the queue until it encounters a null po...
int SimpleMemoryReaderApp(int argc, char **argv)
An application which pops items off a RawEventQueue using the SimpleMemoryReader. ...