#ifndef HLDGREPFILESOURCE_H
#define HLDGREPFILESOURCE_H
#include "hldfilesourcebase.h"
#include "TIterator.h"
#include "TString.h"
#include "TObjString.h"
#include "TList.h"
#include "TStopwatch.h"
#include <time.h>
#include <cstdlib>
class HldGrepFileSource : public HldFileSourceBase {
protected:
static time_t lastfile;
static time_t timelimit;
static time_t tcurrent;
static Int_t timeoffset;
static TString fullname;
static TString fullnamesort;
static TString path;
Int_t first;
Int_t mode;
Int_t interval;
TStopwatch timer;
Int_t referenceId;
Bool_t dostop;
Int_t getNewFile();
Int_t checkDir(TString dir);
Int_t decodeOption(TString opt);
static Int_t selectFiles(const struct dirent *entry);
Int_t loopForNewFile();
public:
HldGrepFileSource(TString dir="",TString opt="Grep",Int_t grepInterval=5,Int_t refId=-1,Int_t off=5);
virtual ~HldGrepFileSource(void);
EDsState getNextEvent(Bool_t doUnpack=kTRUE);
Int_t getRunId(const Text_t *fileName);
void setMaxEventPerFile(Int_t n) {fEventLimit = n; }
void setRefId(Int_t id=-1) {referenceId=id;}
void stop() {dostop=kTRUE;}
void addFile(const Text_t *fileName, Int_t refId=-1){Error("addFile()","This function is not implemented!");exit(1);}
Bool_t getNextFile() {Warning("getNextFile()","This function is a dummy implementation!");return kTRUE;}
Bool_t rewind() {Error("rewind()","This function is not implemented!") ;exit(1);return kTRUE;}
ClassDef(HldGrepFileSource,0)
};
#endif /* !HLDGREPFILESOURCE_H */
Last change: Sat May 22 13:17:57 2010
Last generated: 2010-05-22 13:17
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.