DDASToys for NSCLDAQ  6.2-000
CEventProcessor.h
Go to the documentation of this file.
1 /*
2  This software is Copyright by the Board of Trustees of Michigan
3  State University (c) Copyright 2017.
4 
5  You may use this software under the terms of the GNU public license
6  (GPL). The terms of this license are described at:
7 
8  http://www.gnu.org/licenses/gpl.txt
9 
10  Authors:
11  Ron Fox
12  Jeromy Tompkins
13  FRIB
14  Michigan State University
15  East Lansing, MI 48824-1321
16 */
17 
25 #ifndef CEVENTPROCESSOR_H
26 #define CEVENTPROCESSOR_H
27 
28 class URL;
29 class CRingItem;
30 class CRingItemProcessor;
31 
43 {
44  // Private data:
45 
46 private:
47  URL* m_pDataSource;
48  CRingItemProcessor* m_pProcessor;
49  unsigned m_itemCount;
50  unsigned m_skipCount;
51 
52  // Canonicals:
53 
54 public:
59 
60  // Entry point:
61 
62 public:
73  int operator()(int argc, char* argv[]);
74 
75  // Utilities:
76 
77 private:
83  void processRingItem(CRingItem& item);
84 };
85 
86 #endif
Define an event processor for DDAS data.
Definition: CEventProcessor.h:43
int operator()(int argc, char *argv[])
Entry point for the processor.
Definition: CEventProcessor.cpp:83
CEventProcessor()
Constructor.
Definition: CEventProcessor.cpp:61
~CEventProcessor()
Destructor.
Definition: CEventProcessor.cpp:67
Abstract base class to support type-independent ring-item processing.
Definition: CRingItemProcessor.h:48