ifw-daq 3.1.0
IFW Data Acquisition modules
Loading...
Searching...
No Matches
actionMgr.hpp
Go to the documentation of this file.
1/**
2 * @file
3 * @ingroup server
4 * @copyright ESO - European Southern Observatory
5 * @author
6 *
7 * @brief ActionMgr class header file.
8 */
9#ifndef SERVER_ACTION_MGR_HPP_
10#define SERVER_ACTION_MGR_HPP_
11
12#include <rad/actionMgr.hpp>
13#include <rad/smAdapter.hpp>
14
15#include <scxml4cpp/EventQueue.h>
16
17#include <boost/asio.hpp>
18
19namespace server {
20
21class DataContext;
22class ActionsStd;
23
24/**
25 * This class is responsible for the life-cycle management of
26 * actions and activities.
27 */
28class ActionMgr : public rad::ActionMgr {
29 public:
30 /**
31 * Default constructor.
32 */
33 ActionMgr();
34
35 /**
36 * Default destructor.
37 */
38 virtual ~ActionMgr();
39
40 /**
41 * Method to instantiate the action objects.
42 *
43 * @param[in] ios Event loop.
44 * @param[in] sm SM adapter used to inject internal events.
45 * @param[in] the_data Data shared within the application among actions and activities.
46 */
47 void CreateActions(boost::asio::io_service& ios,
48 rad::SMAdapter& sm,
49 DataContext& the_data);
50
51 /**
52 * Method to instantiate activity objects.
53 *
54 * @param[in] the_data Data shared within the application.
55 * @param[in] sm Reference to the State Machine adapter needed to trigger internal events.
56 */
57 void CreateActivities(rad::SMAdapter& sm, DataContext& the_data);
58
59 ActionMgr(const ActionMgr&) = delete; //! Disable copy constructor
60 ActionMgr& operator=(const ActionMgr&) = delete; //! Disable assignment operator
61};
62
63} // namespace server
64
65#endif // SERVER_ACTION_MGR_HPP_
This class is responsible for the life-cycle management of actions and activities.
Definition: actionMgr.hpp:28
virtual ~ActionMgr()
Default destructor.
Definition: actionMgr.cpp:27
void CreateActivities(rad::SMAdapter &sm, DataContext &the_data)
Method to instantiate activity objects.
Definition: actionMgr.cpp:107
ActionMgr()
Default constructor.
Definition: actionMgr.cpp:23
ActionMgr & operator=(const ActionMgr &)=delete
Disable copy constructor.
ActionMgr(const ActionMgr &)=delete
void CreateActions(boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &the_data)
Method to instantiate the action objects.
Definition: actionMgr.cpp:31
This class provide access to the application run-time data including the in-memory DB.
Definition: dataContext.hpp:21