stream  0.10.0
stream analysis framework
EventProc.h
1 #ifndef BASE_EVENTPROC_H
2 #define BASE_EVENTPROC_H
3 
4 #include "base/Processor.h"
5 
6 namespace base {
7 
8  class Event;
9 
12  class EventProc : public Processor {
13  friend class ProcMgr;
14 
15  protected:
16 
18  EventProc(const char* name = "", unsigned brdid = DummyBrdId);
19 
20  public:
21 
22  virtual ~EventProc() {}
23 
26  virtual bool Process(Event*) { return true; }
27 
28  };
29 
30 }
31 
32 #endif
Abstract processor of build events.
Definition: EventProc.h:12
EventProc(const char *name="", unsigned brdid=DummyBrdId)
Make constructor protected - no way to create base class instance.
Definition: EventProc.cxx:3
virtual bool Process(Event *)
Generic event processing If returns false, processing will be aborted and event will not be stored.
Definition: EventProc.h:26
Event - collection of several subevents.
Definition: Event.h:17
Central data and process manager.
Definition: ProcMgr.h:30
Abstract processor.
Definition: base/Processor.h:62