source: trunk/MagicSoft/Mars/mfileio/MRead.h@ 4905

Last change on this file since 4905 was 4694, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 686 bytes
Line 
1#ifndef MARS_MRead
2#define MARS_MRead
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MFilter;
9class MDirIter;
10
11class MRead : public MTask
12{
13private:
14 MFilter *fSelector;
15
16public:
17 MRead() : fSelector(NULL) {}
18
19 virtual UInt_t GetEntries() = 0;
20 virtual TString GetFileName() const = 0;
21 virtual Bool_t Rewind();
22
23 void SetSelector(MFilter *f) { fSelector = f; }
24 MFilter *GetSelector() { return fSelector; }
25
26 virtual Int_t AddFile(const char *fname, Int_t entries=-1) { return -1; }
27 Int_t AddFiles(MDirIter &dir);
28
29 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
30
31 ClassDef(MRead, 0) // Base class for a reading task
32};
33
34#endif
Note: See TracBrowser for help on using the repository browser.