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 // $Id: FWNavigatorBase.h,v 1.4 2010/09/02 19:54:03 matevz Exp $
8 //
9 
10 // system include files
11 #include <string>
12 #include <sigc++/sigc++.h>
13 #include <Rtypes.h>
14 
15 // user include files
17 
19 
20 // forward declarations
21 class CmsShowMainBase;
22 
23 namespace edm {
24  class EventBase;
25  class EventID;
26 }
27 
29 {
30 public:
32  enum EFilterMode { kOr = 1, kAnd = 2 };
33 
34 public:
36  virtual ~FWNavigatorBase();
37 
38  //configuration management interface
39  virtual void addTo(FWConfiguration&) const = 0;
40  virtual void setFrom(const FWConfiguration&) = 0;
41 
42  virtual void nextEvent() = 0;
43  virtual void previousEvent() = 0;
44  virtual bool nextSelectedEvent() = 0;
45  virtual bool previousSelectedEvent() = 0;
46  virtual void firstEvent() = 0;
47  virtual void lastEvent() = 0;
48  // FIXME -- should be Long64_t.
50 
51  virtual bool isLastEvent() = 0;
52  virtual bool isFirstEvent() = 0;
53 
54  virtual const edm::EventBase* getCurrentEvent() const = 0;
55  virtual int getNSelectedEvents() = 0;
56  virtual int getNTotalEvents() = 0;
57 
58  sigc::signal<void> newEvent_;
59 private:
60  FWNavigatorBase(const FWNavigatorBase&); // stop default
61  const FWNavigatorBase& operator=(const FWNavigatorBase&); // stop default
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
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_