Public Types | Public Member Functions | Private Attributes | List of all members
art::RootInput::AccessState Class Reference

Public Types

enum  State {
  SEQUENTIAL = 0, SEEKING_FILE, SEEKING_RUN, SEEKING_SUBRUN,
  SEEKING_EVENT
}
 

Public Member Functions

 ~AccessState ()
 
 AccessState ()
 
State state () const
 
void setState (State state)
 
void resetState ()
 
EventID const & lastReadEventID () const
 
void setLastReadEventID (EventID const &)
 
EventID const & wantedEventID () const
 
void setWantedEventID (EventID const &)
 
std::shared_ptr< RootInputFilerootFileForLastReadEvent () const
 
void setRootFileForLastReadEvent (std::shared_ptr< RootInputFile > const &)
 

Private Attributes

State state_
 
EventID lastReadEventID_
 
std::shared_ptr< RootInputFilerootFileForLastReadEvent_
 
EventID wantedEventID_
 

Detailed Description

Definition at line 50 of file RootInput.h.

Member Enumeration Documentation

Enumerator
SEQUENTIAL 
SEEKING_FILE 
SEEKING_RUN 
SEEKING_SUBRUN 
SEEKING_EVENT 

Definition at line 53 of file RootInput.h.

Constructor & Destructor Documentation

RootInput::AccessState::~AccessState ( )

Definition at line 25 of file RootInput_source.cc.

25 {}
RootInput::AccessState::AccessState ( )

Definition at line 27 of file RootInput_source.cc.

Member Function Documentation

EventID const & RootInput::AccessState::lastReadEventID ( ) const

Definition at line 47 of file RootInput_source.cc.

48 {
49  return lastReadEventID_;
50 }
void RootInput::AccessState::resetState ( )
shared_ptr< RootInputFile > RootInput::AccessState::rootFileForLastReadEvent ( ) const

Definition at line 59 of file RootInput_source.cc.

60 {
62 }
std::shared_ptr< RootInputFile > rootFileForLastReadEvent_
Definition: RootInput.h:87
void RootInput::AccessState::setLastReadEventID ( EventID const &  eid)

Definition at line 71 of file RootInput_source.cc.

72 {
73  lastReadEventID_ = eid;
74 }
void RootInput::AccessState::setRootFileForLastReadEvent ( std::shared_ptr< RootInputFile > const &  )

Definition at line 83 of file RootInput_source.cc.

85 {
87 }
std::shared_ptr< RootInputFile > rootFileForLastReadEvent_
Definition: RootInput.h:87
void RootInput::AccessState::setState ( State  state)

Definition at line 65 of file RootInput_source.cc.

66 {
67  state_ = state;
68 }
void RootInput::AccessState::setWantedEventID ( EventID const &  eid)

Definition at line 77 of file RootInput_source.cc.

78 {
79  wantedEventID_ = eid;
80 }
RootInput::AccessState::State RootInput::AccessState::state ( ) const

Definition at line 35 of file RootInput_source.cc.

36 {
37  return state_;
38 }
EventID const & RootInput::AccessState::wantedEventID ( ) const

Definition at line 53 of file RootInput_source.cc.

54 {
55  return wantedEventID_;
56 }

Member Data Documentation

EventID art::RootInput::AccessState::lastReadEventID_
private

Definition at line 86 of file RootInput.h.

std::shared_ptr<RootInputFile> art::RootInput::AccessState::rootFileForLastReadEvent_
private

Definition at line 87 of file RootInput.h.

State art::RootInput::AccessState::state_
private

Definition at line 85 of file RootInput.h.

EventID art::RootInput::AccessState::wantedEventID_
private

Definition at line 88 of file RootInput.h.


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