artdaq_core  v1_07_04
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
artdaq::SimpleQueueReader Class Reference

SimpleQueueReader will continue to read RawEvent objects off the queue until it encounters a null pointer, at which point it stops. More...

#include <artdaq-core/Core/SimpleQueueReader.hh>

Public Member Functions

 SimpleQueueReader (std::size_t expectedEventCount=0)
 Constructs a SimpleQueueReader. More...
 
void run ()
 Run until a null pointer is popped off of the RawEventQueue. Throws an excpetion if expectedEventCount is set and a different number of events come off the queue.

Exceptions
std::stringWhen the expectedEventCount is set and a different number of events come off the queue.

 

Detailed Description

SimpleQueueReader will continue to read RawEvent objects off the queue until it encounters a null pointer, at which point it stops.

Definition at line 26 of file SimpleQueueReader.hh.

Constructor & Destructor Documentation

artdaq::SimpleQueueReader::SimpleQueueReader ( std::size_t  expectedEventCount = 0)
explicit

Constructs a SimpleQueueReader.

Parameters
expectedEventCountThe number of events the SimpleQueueReader should expect

Definition at line 39 of file SimpleQueueReader.cc.


The documentation for this class was generated from the following files: