00001 #ifndef DEMOINPUTMODULE_H
00002 #define DEMOINPUTMODULE_H
00003
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00016
00017 #include <iosfwd>
00018 #include "Persistency/PerInputStreamManager.h"
00019
00020 class MomNavigator;
00021 class DemoInputModule;
00022
00023 std::ostream& operator<< (std::ostream& ms, const DemoInputModule& dm);
00024
00025 class DemoInputModule {
00026
00027 public:
00028
00029
00030 DemoInputModule() {}
00031 virtual ~DemoInputModule() {}
00032
00033
00034 bool IsBegin() const;
00035 bool IsEnd() const;
00036 std::ostream& Print(std::ostream& ms) const;
00037
00038
00039 void BeginJob();
00040 void EndJob();
00041 bool BeginFile(std::string streamname,
00042 std::string fullfilepathname,
00043 Per::EAccessMode = Per::kRead);
00044 void EndFile(std::string streamname="*");
00045
00046 Int_t Next(MomNavigator *mom, Int_t advanceby=1);
00047 Int_t Previous(MomNavigator *mom, Int_t rewindby=1);
00048
00049 private:
00050
00051 PerInputStreamManager fInputStreamManager;
00052
00053 };
00054
00055 #endif // DEMOINPUMODULE_H
00056
00057
00058
00059
00060