CMS 3D CMS Logo

FWNavigatorBase.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef Fireworks_Core_FWNavigatorBase_h
3 #define Fireworks_Core_FWNavigatorBase_h
4 //
5 // Package: newVersion
6 // Class : CmsShowNavigator
7 //
8 
9 // system include files
10 #include <string>
11 #include <sigc++/sigc++.h>
12 #include <Rtypes.h>
13 
14 // user include files
16 
18 
19 // forward declarations
20 class CmsShowMainBase;
21 
22 namespace edm {
23  class EventBase;
24  class EventID;
25 } // namespace edm
26 
28 public:
30  enum EFilterMode { kOr = 1, kAnd = 2 };
31 
32 public:
34  ~FWNavigatorBase() override;
35 
36  //configuration management interface
37  void addTo(FWConfiguration&) const override = 0;
38  void setFrom(const FWConfiguration&) override = 0;
39 
40  virtual void nextEvent() = 0;
41  virtual void previousEvent() = 0;
42  virtual bool nextSelectedEvent() = 0;
43  virtual bool previousSelectedEvent() = 0;
44  virtual void firstEvent() = 0;
45  virtual void lastEvent() = 0;
46  // FIXME -- should be Long64_t.
48 
49  virtual bool isLastEvent() = 0;
50  virtual bool isFirstEvent() = 0;
51 
52  virtual const edm::EventBase* getCurrentEvent() const = 0;
53  virtual int getNSelectedEvents() = 0;
54  virtual int getNTotalEvents() = 0;
55 
56  sigc::signal<void()> newEvent_;
57 
58  FWNavigatorBase(const FWNavigatorBase&) = delete; // stop default
59  const FWNavigatorBase& operator=(const FWNavigatorBase&) = delete; // stop default
60 
61 private:
62  // ---------- member data --------------------------------
63  // entry is an event index nubmer which runs from 0 to
64  // #events or #selected_events depending on if we filter
65  // events or not
67 };
68 
69 #endif
sigc::signal< void()> newEvent_
FWNavigatorBase(const CmsShowMainBase &)
void addTo(FWConfiguration &) const override=0
virtual void goToRunEvent(edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t)=0
virtual void nextEvent()=0
unsigned long long EventNumber_t
void setFrom(const FWConfiguration &) override=0
unsigned int LuminosityBlockNumber_t
virtual bool previousSelectedEvent()=0
virtual bool nextSelectedEvent()=0
virtual bool isFirstEvent()=0
virtual void firstEvent()=0
~FWNavigatorBase() override
const FWNavigatorBase & operator=(const FWNavigatorBase &)=delete
virtual int getNSelectedEvents()=0
virtual void previousEvent()=0
virtual const edm::EventBase * getCurrentEvent() const =0
const CmsShowMainBase & m_main
virtual int getNTotalEvents()=0
HLT enums.
unsigned int RunNumber_t
virtual void lastEvent()=0
virtual bool isLastEvent()=0