IStateful.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_ISTATEFUL_H
2 #define GAUDIKERNEL_ISTATEFUL_H
3 
4 // Include Files
7 #include <string>
8 
16 class GAUDI_API IStateful: virtual public IInterface {
17 public:
20 
21  ~IStateful() override = default; //< Virtual destructor.
22 
25  virtual StatusCode configure() = 0;
26 
29  virtual StatusCode initialize() = 0;
30 
33  virtual StatusCode start() = 0;
34 
37  virtual StatusCode stop() = 0;
38 
41  virtual StatusCode finalize() = 0;
42 
45  virtual StatusCode terminate() = 0;
46 
47 
50  virtual StatusCode reinitialize() = 0;
51 
54  virtual StatusCode restart() = 0;
55 
58  virtual Gaudi::StateMachine::State FSMState() const = 0;
59 
63  virtual Gaudi::StateMachine::State targetFSMState() const = 0;
64 
65 };
66 
67 #endif // GAUDIKERNEL_ISTATEFUL_H
def initialize()
Definition: AnalysisTest.py:12
State
Allowed states for classes implementing the state machine (ApplicationMgr, Algorithm, Service, AlgTool).
Definition: StateMachine.h:12
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
Definition of the basic interface.
Definition: IInterface.h:234
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition: IInterface.h:14
Interface for classes that implement the Gaudi State Machine.
Definition: IStateful.h:16
#define GAUDI_API
Definition: Kernel.h:107
tuple start
Definition: IOTest.py:88