Static Public Member Functions | Private Member Functions | List of all members
evdb::NavState Class Reference

#include <NavState.h>

Static Public Member Functions

static int Which ()
 
static void Set (int which)
 
static void SetTarget (int run, int event)
 
static int TargetRun ()
 
static int TargetEvent ()
 

Private Member Functions

 NavState ()
 

Detailed Description

Encapsulate some data about where the display should go next

Since there can only be one state, these are implemented as a set of static methods

Definition at line 25 of file NavState.h.

Constructor & Destructor Documentation

evdb::NavState::NavState ( )
inlineprivate

Definition at line 33 of file NavState.h.

33 { }

Member Function Documentation

void evdb::NavState::Set ( int  which)
static

Definition at line 24 of file NavState.cxx.

25  {
26  // only allow the state to change if it has not been previously set
27  // to kSEQUENTIAL_ONLY, this should be made more intelligent, ie
28  // if we can only do sequential access because we are using the
29  // socket input source, then we shouldn't be allowed to press the
30  // other buttons
32  gsNavState = which;
33 
34  gROOT->GetApplication()->Terminate();
35  }
static int gsNavState
Definition: NavState.cxx:14
void evdb::NavState::SetTarget ( int  run,
int  event 
)
static

Definition at line 39 of file NavState.cxx.

40  {
41  gsTargetRun = run;
43  }
static int gsTargetEvent
Definition: NavState.cxx:16
static int gsTargetRun
Definition: NavState.cxx:15
unsigned int run
int evdb::NavState::TargetEvent ( )
static

Definition at line 51 of file NavState.cxx.

51 { return gsTargetEvent; }
static int gsTargetEvent
Definition: NavState.cxx:16
int evdb::NavState::TargetRun ( )
static

Definition at line 47 of file NavState.cxx.

47 { return gsTargetRun; }
static int gsTargetRun
Definition: NavState.cxx:15
int evdb::NavState::Which ( )
static

Definition at line 20 of file NavState.cxx.

20 { return gsNavState; }
static int gsNavState
Definition: NavState.cxx:14

The documentation for this class was generated from the following files: