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  //virtual ~ProcessingController();
47 
48  // ---------- const member functions ---------------------
49 
51  ForwardState forwardState() const;
52  ReverseState reverseState() const;
53 
55  bool canRandomAccess() const;
56 
58 
60 
64 
65  bool lastOperationSucceeded() const;
66 
67  // ---------- static member functions --------------------
68 
69  // ---------- member functions ---------------------------
70 
75 
80 
84  void setTransitionToEvent(edm::EventID const& iID);
85 
87 
88  private:
89  ProcessingController(const ProcessingController&) = delete; // stop default
90 
91  const ProcessingController& operator=(const ProcessingController&) = delete; // stop default
92 
93  // ---------- member data --------------------------------
100  };
101 } // namespace edm
102 #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:57
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:98
edm::ProcessingController
Definition: ProcessingController.h:29
edm::ProcessingController::kToPreviousEvent
Definition: ProcessingController.h:57
edm::ProcessingController::requestedTransition
Transition requestedTransition() const
Definition: ProcessingController.cc:82
edm::ProcessingController::lastOperationSucceeded_
bool lastOperationSucceeded_
Definition: ProcessingController.h:99
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:57
edm::ProcessingController::transition_
Transition transition_
Definition: ProcessingController.h:96
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:57
edm::ProcessingController::forwardState_
ForwardState forwardState_
Definition: ProcessingController.h:94
edm::ProcessingController::setTransitionToNextEvent
void setTransitionToNextEvent()
Definition: ProcessingController.cc:62
value
Definition: value.py:1
edm::ProcessingController::specifiedEvent_
EventID specifiedEvent_
Definition: ProcessingController.h:97
edm::ProcessingController::kEventsBackwardsInFile
Definition: ProcessingController.h:39
edm::ProcessingController::reverseState_
ReverseState reverseState_
Definition: ProcessingController.h:95
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