Diag-Client-Lib
|
Class implements routing activation handler. More...
Public Types | |
using | RoutingActivationStateContext = utility::state::StateContext< RoutingActivationState > |
Type alias for state context. More... | |
using | SyncTimer = utility::sync_timer::SyncTimer< std::chrono::steady_clock > |
Type alias for Sync timer. More... | |
Public Member Functions | |
RoutingActivationHandlerImpl (sockets::TcpSocketHandler &tcp_socket_handler) | |
Constructs an instance of RoutingActivationHandlerImpl. More... | |
void | Start () |
Function to start the handler. More... | |
void | Stop () |
Function to stop the handler. More... | |
void | Reset () |
Function to reset the handler. More... | |
auto | GetStateContext () noexcept -> RoutingActivationStateContext & |
Function to get the Routing Activation State context. More... | |
auto | GetSocketHandler () noexcept -> sockets::TcpSocketHandler & |
Function to get the socket handler. More... | |
auto | GetSyncTimer () noexcept -> SyncTimer & |
Function to get the sync timer. More... | |
Private Attributes | |
sockets::TcpSocketHandler & | tcp_socket_handler_ |
The reference to socket handler. More... | |
RoutingActivationStateContext | state_context_ |
Stores the routing activation states. More... | |
SyncTimer | sync_timer_ |
Store the synchronous timer. More... | |
Class implements routing activation handler.
Definition at line 215 of file doip_routing_activation_handler.cpp.
using doip_client::channel::tcp_channel::RoutingActivationHandler::RoutingActivationHandlerImpl::RoutingActivationStateContext = utility::state::StateContext<RoutingActivationState> |
Type alias for state context.
Definition at line 220 of file doip_routing_activation_handler.cpp.
using doip_client::channel::tcp_channel::RoutingActivationHandler::RoutingActivationHandlerImpl::SyncTimer = utility::sync_timer::SyncTimer<std::chrono::steady_clock> |
Type alias for Sync timer.
Definition at line 225 of file doip_routing_activation_handler.cpp.
|
inlineexplicit |
Constructs an instance of RoutingActivationHandlerImpl.
[in] | tcp_socket_handler | The reference to socket handler |
Definition at line 232 of file doip_routing_activation_handler.cpp.
References utility::state::StateContext< EnumState >::AddState(), state_context_, and utility::state::StateContext< EnumState >::TransitionTo().
|
inlinenoexcept |
Function to get the socket handler.
Definition at line 285 of file doip_routing_activation_handler.cpp.
References tcp_socket_handler_.
|
inlinenoexcept |
Function to get the Routing Activation State context.
Definition at line 279 of file doip_routing_activation_handler.cpp.
References state_context_.
|
inlinenoexcept |
Function to get the sync timer.
Definition at line 291 of file doip_routing_activation_handler.cpp.
References sync_timer_.
|
inline |
Function to reset the handler.
This will reset all the internal handler back to default state
Definition at line 273 of file doip_routing_activation_handler.cpp.
References Stop().
|
inline |
Function to start the handler.
Definition at line 258 of file doip_routing_activation_handler.cpp.
|
inline |
Function to stop the handler.
This will reset all the internal handler back to default state
Definition at line 264 of file doip_routing_activation_handler.cpp.
References utility::sync_timer::SyncTimer< ClockType >::CancelWait(), utility::sync_timer::SyncTimer< ClockType >::IsTimerActive(), state_context_, sync_timer_, and utility::state::StateContext< EnumState >::TransitionTo().
Referenced by Reset().
|
private |
Stores the routing activation states.
Definition at line 302 of file doip_routing_activation_handler.cpp.
Referenced by GetStateContext(), RoutingActivationHandlerImpl(), and Stop().
|
private |
Store the synchronous timer.
Definition at line 307 of file doip_routing_activation_handler.cpp.
Referenced by GetSyncTimer(), and Stop().
|
private |
The reference to socket handler.
Definition at line 297 of file doip_routing_activation_handler.cpp.
Referenced by GetSocketHandler().