CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
31  enum EFilterMode { kOr = 1, kAnd = 2 };
32 
33 public:
35  virtual ~FWNavigatorBase();
36 
37  //configuration management interface
38  virtual void addTo(FWConfiguration&) const = 0;
39  virtual void setFrom(const FWConfiguration&) = 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.
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&); // stop default
60  const FWNavigatorBase& operator=(const FWNavigatorBase&); // 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(const CmsShowMainBase &)
virtual void goToRunEvent(edm::RunNumber_t, edm::LuminosityBlockNumber_t, edm::EventNumber_t)=0
unsigned int EventNumber_t
Definition: EventID.h:30
virtual void nextEvent()=0
virtual ~FWNavigatorBase()
unsigned int LuminosityBlockNumber_t
Definition: EventID.h:31
virtual bool previousSelectedEvent()=0
virtual bool nextSelectedEvent()=0
virtual bool isFirstEvent()=0
virtual void addTo(FWConfiguration &) const =0
virtual void firstEvent()=0
virtual void setFrom(const FWConfiguration &)=0
virtual int getNSelectedEvents()=0
virtual void previousEvent()=0
virtual const edm::EventBase * getCurrentEvent() const =0
const CmsShowMainBase & m_main
virtual int getNTotalEvents()=0
const FWNavigatorBase & operator=(const FWNavigatorBase &)
unsigned int RunNumber_t
Definition: EventRange.h:32
virtual void lastEvent()=0
virtual bool isLastEvent()=0
sigc::signal< void > newEvent_