forked from sPHENIX-Collaboration/online_distribution
/
Eventiterator.h
58 lines (40 loc) · 1.48 KB
/
Eventiterator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// -*- c++ -*-
#ifndef __EVENTITERATOR_H__
#define __EVENTITERATOR_H__
#include "Event.h"
/**
The Eventiterator creates and returns pointers to Event objects.
This is the virtual base class of a variety of different iterators.
*/
#ifndef __CINT__
class WINDOWSEXPORT Eventiterator {
#else
class Eventiterator {
#endif
public:
/// The virtual destructor.
inline virtual ~Eventiterator(){};
virtual const char * getIdTag() const =0;
virtual void identify(std::ostream& os = std::cout) const = 0;
/**
this member function returns a pointer to the Event object, or
NULL if there no events left.
*/
virtual Event *getNextEvent() = 0;
/** the next member functions do nothing for most iterators
except the etEventiterator. It's still easier to give the parent
class the interfaces
*/
virtual int *getNextEventData() {return 0;};
virtual int releaseEventData() {return 0;};
virtual void setBlockingMode(const int mode) {};
virtual int getBlockingMode() const {return 0;};
virtual void setSelectMode(const int mode) {};
virtual int getSelectMode() const {return 0;};
virtual void setSelectWords(const int i1, const int i2, const int i3, const int i4 ) {};
virtual void getSelectWords(int val[]) const {};
virtual const char * getCurrentFileName() const { return " "; };
virtual int setVerbosity(const int v) { return -1; }; // most iterators don't have the concept
virtual int getVerbosity() const { return -1; };
};
#endif /* __EVENTITERATOR_H__ */