Diag-Client-Lib
Namespaces | Classes | Functions
diag::client::dcm Namespace Reference

Namespaces

 anonymous_namespace{dcm_client.cpp}
 

Classes

class  DCMClient
 Class to create Diagnostic Manager Client functionality. More...
 

Functions

auto GetConversationManager () noexcept -> conversation_manager::ConversationManager &
 Function to get the reference to conversation manager. More...
 

Function Documentation

◆ GetConversationManager()

auto diag::client::dcm::GetConversationManager ( ) -> conversation_manager::ConversationManager &
noexcept

Function to get the reference to conversation manager.

Returns
Reference to conversation manager

Definition at line 90 of file dcm_client.cpp.

90  {
91  if (!conversation_manager_ref.has_value()) {
92  logger::DiagClientLogger::GetDiagClientLogger().GetLogger().LogFatalAndTerminate(
93  FILE_NAME, __LINE__, "",
94  [](std::stringstream &msg) { msg << "DiagClient is not Initialized"; });
95  }
96  return conversation_manager_ref.value();
97 }
#define FILE_NAME
Definition: file_path.h:14
std::optional< std::reference_wrapper< conversation_manager::ConversationManager > > conversation_manager_ref
Store the conversation manager reference optionally.
Definition: dcm_client.cpp:24

References diag::client::dcm::anonymous_namespace{dcm_client.cpp}::conversation_manager_ref, FILE_NAME, and diag::client::logger::DiagClientLogger::GetDiagClientLogger().

Referenced by diag::client::conversation::DiagClientConversation::DiagClientConversationImpl::DiagClientConversationImpl().

Here is the call graph for this function:
Here is the caller graph for this function: