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 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
FWNavigatorBase::isFirstEvent
virtual bool isFirstEvent()=0
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
FWNavigatorBase::nextSelectedEvent
virtual bool nextSelectedEvent()=0
FWNavigatorBase
Definition: FWNavigatorBase.h:27
FWNavigatorBase::kOr
Definition: FWNavigatorBase.h:30
edm
HLT enums.
Definition: AlignableModifier.h:19
FWNavigatorBase::lastEvent
virtual void lastEvent()=0
FWNavigatorBase::setFrom
void setFrom(const FWConfiguration &) override=0
FWNavigatorBase::isLastEvent
virtual bool isLastEvent()=0
FWNavigatorBase::FWNavigatorBase
FWNavigatorBase(const CmsShowMainBase &)
Definition: FWNavigatorBase.cc:3
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition: RunLumiEventNumber.h:13
FWNavigatorBase::kWithdrawn
Definition: FWNavigatorBase.h:29
FWNavigatorBase::~FWNavigatorBase
~FWNavigatorBase() override
Definition: FWNavigatorBase.cc:5
FWNavigatorBase::newEvent_
sigc::signal< void > newEvent_
Definition: FWNavigatorBase.h:56
FWNavigatorBase::getCurrentEvent
virtual const edm::EventBase * getCurrentEvent() const =0
FWNavigatorBase::getNTotalEvents
virtual int getNTotalEvents()=0
CmsShowMainBase
Definition: CmsShowMainBase.h:49
FWNavigatorBase::kAnd
Definition: FWNavigatorBase.h:30
EventID.h
FWNavigatorBase::nextEvent
virtual void nextEvent()=0
FWNavigatorBase::addTo
void addTo(FWConfiguration &) const override=0
FWNavigatorBase::kOff
Definition: FWNavigatorBase.h:29
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
FWConfigurable.h
FWNavigatorBase::previousEvent
virtual void previousEvent()=0
FWNavigatorBase::goToRunEvent
virtual void goToRunEvent(edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t)=0
FWNavigatorBase::EFilterMode
EFilterMode
Definition: FWNavigatorBase.h:30
FWNavigatorBase::kOn
Definition: FWNavigatorBase.h:29
FWNavigatorBase::operator=
const FWNavigatorBase & operator=(const FWNavigatorBase &)=delete
FWNavigatorBase::EFilterState
EFilterState
Definition: FWNavigatorBase.h:29
FWNavigatorBase::getNSelectedEvents
virtual int getNSelectedEvents()=0
FWNavigatorBase::m_main
const CmsShowMainBase & m_main
Definition: FWNavigatorBase.h:65
FWConfigurable
Definition: FWConfigurable.h:28
edm::EventBase
Definition: EventBase.h:46
EventBase
FWConfiguration
Definition: FWConfiguration.h:31
FWNavigatorBase::previousSelectedEvent
virtual bool previousSelectedEvent()=0
FWNavigatorBase::firstEvent
virtual void firstEvent()=0