The Gaudi Framework  v33r1 (b1225454)
IStateful.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_ISTATEFUL_H
12 #define GAUDIKERNEL_ISTATEFUL_H
13 
14 // Include Files
15 #include "GaudiKernel/IInterface.h"
17 #include <string>
18 
26 class GAUDI_API IStateful : virtual public IInterface {
27 public:
30 
33  virtual StatusCode configure() = 0;
34 
37  virtual StatusCode initialize() = 0;
38 
41  virtual StatusCode start() = 0;
42 
45  virtual StatusCode stop() = 0;
46 
49  virtual StatusCode finalize() = 0;
50 
53  virtual StatusCode terminate() = 0;
54 
57  virtual StatusCode reinitialize() = 0;
58 
61  virtual StatusCode restart() = 0;
62 
65  virtual Gaudi::StateMachine::State FSMState() const = 0;
66 
70  virtual Gaudi::StateMachine::State targetFSMState() const = 0;
71 };
72 
73 #endif // GAUDIKERNEL_ISTATEFUL_H
State
Allowed states for classes implementing the state machine (ApplicationMgr, Algorithm,...
Definition: StateMachine.h:22
def start
Definition: IOTest.py:108
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:61
Definition of the basic interface.
Definition: IInterface.h:254
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition: IInterface.h:23
Interface for classes that implement the Gaudi State Machine.
Definition: IStateful.h:26
#define GAUDI_API
Definition: Kernel.h:81