| 
    Diag-Client-Lib
    
   | 
 
Class implements routing activation handler. More...

Public Types | |
| using | DiagnosticMessageStateContext = utility::state::StateContext< DiagnosticMessageState > | 
| 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 | |
| DiagnosticMessageHandlerImpl (sockets::TcpSocketHandler &tcp_socket_handler, DoipTcpChannel &channel) | |
| Constructs an instance of DiagnosticMessageHandlerImpl.  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 -> DiagnosticMessageStateContext & | 
| Function to get the Diagnostic Message State context.  More... | |
| auto | GetSocketHandler () noexcept -> sockets::TcpSocketHandler & | 
| Function to get the socket handler.  More... | |
| auto | GetDoipChannel () noexcept -> DoipTcpChannel & | 
| Function to get the doip channel.  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... | |
| DoipTcpChannel & | channel_ | 
| The reference to doip channel.  More... | |
| DiagnosticMessageStateContext | state_context_ | 
| Stores the diagnostic message states.  More... | |
| SyncTimer | sync_timer_ | 
| Store the synchronous timer.  More... | |
Class implements routing activation handler.
Definition at line 287 of file doip_diagnostic_message_handler.cpp.
| using doip_client::channel::tcp_channel::DiagnosticMessageHandler::DiagnosticMessageHandlerImpl::DiagnosticMessageStateContext = utility::state::StateContext<DiagnosticMessageState> | 
Type alias for state context.
Definition at line 292 of file doip_diagnostic_message_handler.cpp.
| using doip_client::channel::tcp_channel::DiagnosticMessageHandler::DiagnosticMessageHandlerImpl::SyncTimer = utility::sync_timer::SyncTimer<std::chrono::steady_clock> | 
Type alias for Sync timer.
Definition at line 297 of file doip_diagnostic_message_handler.cpp.
      
  | 
  inline | 
Constructs an instance of DiagnosticMessageHandlerImpl.
| [in] | tcp_socket_handler | The reference to socket handler | 
| [in] | channel | The reference to doip channel | 
Definition at line 306 of file doip_diagnostic_message_handler.cpp.
References utility::state::StateContext< EnumState >::AddState(), state_context_, and utility::state::StateContext< EnumState >::TransitionTo().

      
  | 
  inlinenoexcept | 
Function to get the doip channel.
Definition at line 376 of file doip_diagnostic_message_handler.cpp.
References channel_.
      
  | 
  inlinenoexcept | 
Function to get the socket handler.
Definition at line 370 of file doip_diagnostic_message_handler.cpp.
References tcp_socket_handler_.
      
  | 
  inlinenoexcept | 
Function to get the Diagnostic Message State context.
Definition at line 364 of file doip_diagnostic_message_handler.cpp.
References state_context_.
      
  | 
  inlinenoexcept | 
Function to get the sync timer.
Definition at line 382 of file doip_diagnostic_message_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 358 of file doip_diagnostic_message_handler.cpp.
References Stop().

      
  | 
  inline | 
Function to start the handler.
Definition at line 343 of file doip_diagnostic_message_handler.cpp.
      
  | 
  inline | 
Function to stop the handler.
This will reset all the internal handler back to default state
Definition at line 349 of file doip_diagnostic_message_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 | 
The reference to doip channel.
Definition at line 393 of file doip_diagnostic_message_handler.cpp.
Referenced by GetDoipChannel().
      
  | 
  private | 
Stores the diagnostic message states.
Definition at line 398 of file doip_diagnostic_message_handler.cpp.
Referenced by DiagnosticMessageHandlerImpl(), GetStateContext(), and Stop().
      
  | 
  private | 
Store the synchronous timer.
Definition at line 403 of file doip_diagnostic_message_handler.cpp.
Referenced by GetSyncTimer(), and Stop().
      
  | 
  private | 
The reference to socket handler.
Definition at line 388 of file doip_diagnostic_message_handler.cpp.
Referenced by GetSocketHandler().