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 }
26 
28 {
29 public:
30  enum EFilterState { kOff, kOn, kWithdrawn };
31  enum EFilterMode { kOr = 1, kAnd = 2 };
32 
33 public:
35  ~FWNavigatorBase() override;
36 
37  //configuration management interface
38  void addTo(FWConfiguration&) const override = 0;
39  void setFrom(const FWConfiguration&) override = 0;
40 
41  virtual void nextEvent() = 0;
42  virtual void previousEvent() = 0;
43  virtual bool nextSelectedEvent() = 0;
44  virtual bool previousSelectedEvent() = 0;
45  virtual void firstEvent() = 0;
46  virtual void lastEvent() = 0;
47  // FIXME -- should be Long64_t.
48  virtual void goToRunEvent(edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t) = 0;
49 
50  virtual bool isLastEvent() = 0;
51  virtual bool isFirstEvent() = 0;
52 
53  virtual const edm::EventBase* getCurrentEvent() const = 0;
54  virtual int getNSelectedEvents() = 0;
55  virtual int getNTotalEvents() = 0;
56 
57  sigc::signal<void> newEvent_;
58 private:
59  FWNavigatorBase(const FWNavigatorBase&) = delete; // stop default
60  const FWNavigatorBase& operator=(const FWNavigatorBase&) = delete; // stop default
61  // ---------- member data --------------------------------
62  // entry is an event index nubmer which runs from 0 to
63  // #events or #selected_events depending on if we filter
64  // events or not
66 };
67 
68 #endif
unsigned long long EventNumber_t
unsigned int LuminosityBlockNumber_t
const CmsShowMainBase & m_main
HLT enums.
unsigned int RunNumber_t
sigc::signal< void > newEvent_