@@ -16,7 +16,11 @@ class EvseManagerInterface;
16
16
class DatabaseHandlerInterface ;
17
17
class ComponentStateManagerInterface ;
18
18
19
- struct BlockContext {
19
+ // / \brief Context / requirements for the functional blocks.
20
+ // /
21
+ // / All functional blocks will get this context. The references and pointers in this struct are used by all or most
22
+ // / functional blocks.
23
+ struct FunctionalBlockContext {
20
24
MessageDispatcherInterface<MessageType>& message_dispatcher;
21
25
DeviceModel& device_model;
22
26
ConnectivityManagerInterface& connectivity_manager;
@@ -25,10 +29,10 @@ struct BlockContext {
25
29
EvseSecurity& evse_security;
26
30
ComponentStateManagerInterface& component_state_manager;
27
31
28
- BlockContext (MessageDispatcherInterface<MessageType>& message_dispatcher, DeviceModel& device_model,
29
- ConnectivityManagerInterface& connectivity_manager, EvseManagerInterface& evse_manager,
30
- DatabaseHandlerInterface& database_handler, EvseSecurity& evse_security,
31
- ComponentStateManagerInterface& component_state_manager) :
32
+ FunctionalBlockContext (MessageDispatcherInterface<MessageType>& message_dispatcher, DeviceModel& device_model,
33
+ ConnectivityManagerInterface& connectivity_manager, EvseManagerInterface& evse_manager,
34
+ DatabaseHandlerInterface& database_handler, EvseSecurity& evse_security,
35
+ ComponentStateManagerInterface& component_state_manager) :
32
36
message_dispatcher (message_dispatcher),
33
37
device_model (device_model),
34
38
connectivity_manager (connectivity_manager),
0 commit comments