File indexing completed on 2025-08-03 08:20:45
0001 #ifndef __LISTEVENTITERATOR_H__
0002 #define __LISTEVENTITERATOR_H__
0003
0004 #include <cstdio>
0005
0006 #ifndef __CINT__
0007 #include <fstream>
0008 #endif
0009
0010 #include "fileEventiterator.h"
0011 #include "Event.h"
0012
0013 #define FEMAXFILENAMELENGTH 256
0014
0015
0016
0017
0018
0019
0020 #ifndef __CINT__
0021 class WINDOWSEXPORT listEventiterator : public Eventiterator {
0022 #else
0023 class listEventiterator : public Eventiterator {
0024 #endif
0025 public:
0026
0027 virtual ~listEventiterator();
0028
0029
0030
0031
0032 listEventiterator(const char *filename);
0033
0034
0035
0036
0037
0038
0039 listEventiterator(const char *filename, int &status);
0040
0041 const char * getIdTag() const;
0042
0043 virtual void identify(std::ostream& os = std::cout) const;
0044
0045 virtual const char * getCurrentFileName() const;
0046
0047
0048
0049
0050
0051 Event *getNextEvent();
0052
0053
0054 private:
0055
0056 Eventiterator * getNextIterator();
0057
0058 char thefilename[FEMAXFILENAMELENGTH];
0059 char * listfilename;
0060
0061 #ifndef __CINT__
0062 std::ifstream *liststream;
0063 #endif
0064
0065 Eventiterator *it;
0066 int defunct;
0067 int finished;
0068
0069 };
0070
0071
0072
0073 #endif