StopStrategy.h
Go to the documentation of this file.
1#pragma once
2
6
8 std::shared_ptr<ScenarioManager::Data_Structure::ApplicationInstance>;
9
11{
12 using ApplicationInstancePtr = std::shared_ptr<ApplicationInstance>;
13}
14
16{
18 typedef std::shared_ptr<ApplicationStopper> ApplicationStopperPtr;
19
20 /**
21 * @class StopStrategy
22 * @ingroup exec
23 * @brief Interface for classes that define how an application get stopped.
24 */
26 {
27 protected:
29
30 public:
32
33 /**
34 * Stops an application. Implement this method to define the behaviour when stopping applications.
35 * @param application application to be stopped.
36 */
37 virtual void stop(Data_Structure::ApplicationInstancePtr application) = 0;
38 };
39
40 using StopStrategyPtr = std::shared_ptr<StopStrategy>;
41} // namespace ScenarioManager::Exec
std::shared_ptr< ScenarioManager::Data_Structure::ApplicationInstance > ApplicationInstancePtr
Definition StopStrategy.h:7
Interface for classes that handle how application get stopped and killed.
virtual void stop(Data_Structure::ApplicationInstancePtr application)=0
Stops an application.
StopStrategy(ApplicationStopperPtr stopper)
std::shared_ptr< ApplicationInstance > ApplicationInstancePtr
std::shared_ptr< ApplicationStopper > ApplicationStopperPtr
std::shared_ptr< StopStrategy > StopStrategyPtr
Definition Executor.h:46