CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: ProcessingController.h,v 1.2 2010/08/27 19:57:24 wdd Exp $
20 //
21 
22 // system include files
23 
24 // user include files
26 
27 // forward declarations
28 namespace edm {
29 
31 
32  public:
33  enum ForwardState {
35  kNextFileExists, // but no events ahead in this file
37  kUnknownForward // returned by a source which is not random accessible
38  };
39 
40  enum ReverseState {
42  kPreviousFileExists, // but no events backwards in this file
44  kUnknownReverse // returned by a source which is not random accessible
45  };
46 
48  //virtual ~ProcessingController();
49 
50  // ---------- const member functions ---------------------
51 
53  ForwardState forwardState() const;
54  ReverseState reverseState() const;
55 
57  bool canRandomAccess() const;
58 
59  enum Transition {
63  };
64 
66 
70 
71  bool lastOperationSucceeded() const;
72 
73  // ---------- static member functions --------------------
74 
75  // ---------- member functions ---------------------------
76 
81 
86 
90  void setTransitionToEvent( edm::EventID const& iID);
91 
93 
94  private:
95  ProcessingController(const ProcessingController&); // stop default
96 
97  const ProcessingController& operator=(const ProcessingController&); // stop default
98 
99  // ---------- member data --------------------------------
106  };
107 }
108 #endif
bool canRandomAccess() const
Returns 'true' if the job's source can randomly access.
edm::EventID specifiedEventTransition() const
ProcessingController(ForwardState forwardState, ReverseState reverseState, bool iCanRandomAccess)
void setTransitionToEvent(edm::EventID const &iID)
ForwardState forwardState() const
Returns the present state of processing.
void setLastOperationSucceeded(bool value)
const ProcessingController & operator=(const ProcessingController &)
Transition requestedTransition() const
ReverseState reverseState() const