CMS 3D CMS Logo

ProcessingController.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_ProcessingController_h
2 #define FWCore_Framework_ProcessingController_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Class : ProcessingController
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri Aug 6 16:06:01 CDT 2010
19 //
20 
21 // system include files
22 
23 // user include files
25 
26 // forward declarations
27 namespace edm {
28 
30  public:
31  enum ForwardState {
33  kNextFileExists, // but no events ahead in this file
35  kUnknownForward // returned by a source which is not random accessible
36  };
37 
38  enum ReverseState {
40  kPreviousFileExists, // but no events backwards in this file
42  kUnknownReverse // returned by a source which is not random accessible
43  };
44 
46  ProcessingController(const ProcessingController&) = delete; // stop default
47  const ProcessingController& operator=(const ProcessingController&) = delete; // stop default
48 
49  // ---------- const member functions ---------------------
50 
52  ForwardState forwardState() const;
53  ReverseState reverseState() const;
54 
56  bool canRandomAccess() const;
57 
59 
61 
65 
66  bool lastOperationSucceeded() const;
67 
68  // ---------- static member functions --------------------
69 
70  // ---------- member functions ---------------------------
71 
76 
81 
85  void setTransitionToEvent(edm::EventID const& iID);
86 
88 
89  private:
90  // ---------- member data --------------------------------
97  };
98 } // namespace edm
99 #endif
edm::ProcessingController::lastOperationSucceeded
bool lastOperationSucceeded() const
Definition: ProcessingController.cc:86
edm::ProcessingController::kAtLastEvent
Definition: ProcessingController.h:34
edm::ProcessingController::kUnknownReverse
Definition: ProcessingController.h:42
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ProcessingController::kToNextEvent
Definition: ProcessingController.h:58
edm::ProcessingController::forwardState
ForwardState forwardState() const
Returns the present state of processing.
Definition: ProcessingController.cc:76
edm::ProcessingController::operator=
const ProcessingController & operator=(const ProcessingController &)=delete
edm::ProcessingController::canRandomAccess_
bool canRandomAccess_
Definition: ProcessingController.h:95
edm::ProcessingController
Definition: ProcessingController.h:29
edm::ProcessingController::kToPreviousEvent
Definition: ProcessingController.h:58
edm::ProcessingController::requestedTransition
Transition requestedTransition() const
Definition: ProcessingController.cc:82
edm::ProcessingController::lastOperationSucceeded_
bool lastOperationSucceeded_
Definition: ProcessingController.h:96
edm::ProcessingController::ForwardState
ForwardState
Definition: ProcessingController.h:31
edm::ProcessingController::ProcessingController
ProcessingController(ForwardState forwardState, ReverseState reverseState, bool iCanRandomAccess)
Definition: ProcessingController.cc:30
edm::ProcessingController::kNextFileExists
Definition: ProcessingController.h:33
EventID.h
edm::ProcessingController::kAtFirstEvent
Definition: ProcessingController.h:41
edm::ProcessingController::kToSpecifiedEvent
Definition: ProcessingController.h:58
edm::ProcessingController::transition_
Transition transition_
Definition: ProcessingController.h:93
edm::ProcessingController::kEventsAheadInFile
Definition: ProcessingController.h:32
edm::ProcessingController::reverseState
ReverseState reverseState() const
Definition: ProcessingController.cc:78
edm::ProcessingController::setTransitionToPreviousEvent
void setTransitionToPreviousEvent()
Definition: ProcessingController.cc:64
edm::Transition
Transition
Definition: Transition.h:12
edm::ProcessingController::Transition
Transition
Definition: ProcessingController.h:58
edm::ProcessingController::forwardState_
ForwardState forwardState_
Definition: ProcessingController.h:91
edm::ProcessingController::setTransitionToNextEvent
void setTransitionToNextEvent()
Definition: ProcessingController.cc:62
value
Definition: value.py:1
edm::ProcessingController::specifiedEvent_
EventID specifiedEvent_
Definition: ProcessingController.h:94
edm::ProcessingController::kEventsBackwardsInFile
Definition: ProcessingController.h:39
edm::ProcessingController::reverseState_
ReverseState reverseState_
Definition: ProcessingController.h:92
edm::ProcessingController::kUnknownForward
Definition: ProcessingController.h:35
edm::ProcessingController::kPreviousFileExists
Definition: ProcessingController.h:40
edm::ProcessingController::canRandomAccess
bool canRandomAccess() const
Returns 'true' if the job's source can randomly access.
Definition: ProcessingController.cc:80
edm::EventID
Definition: EventID.h:31
edm::ProcessingController::ReverseState
ReverseState
Definition: ProcessingController.h:38
edm::ProcessingController::setTransitionToEvent
void setTransitionToEvent(edm::EventID const &iID)
Definition: ProcessingController.cc:66
edm::ProcessingController::specifiedEventTransition
edm::EventID specifiedEventTransition() const
Definition: ProcessingController.cc:84
edm::ProcessingController::setLastOperationSucceeded
void setLastOperationSucceeded(bool value)
Definition: ProcessingController.cc:71