Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::com::cg::CommunicationGroupClient< T, R > Class Template Reference

Communication group client proxy. More...

#include <communication_group_client.h>

Public Member Functions

 CommunicationGroupClient (RequestHandler< T > requestHandler)
 Constructor. More...
 
void Message (const T &msg)
 Receive a request message from the server. More...
 
std::future< void > Response (const R &responseMsg) const
 Send a response message to the server. More...
 

Detailed Description

template<typename T, typename R>
class ara::com::cg::CommunicationGroupClient< T, R >

Communication group client proxy.

Template Parameters
TRequest message type
RResponse message type

Constructor & Destructor Documentation

◆ CommunicationGroupClient()

template<typename T , typename R >
ara::com::cg::CommunicationGroupClient< T, R >::CommunicationGroupClient ( RequestHandler< T >  requestHandler)
inlineexplicit

Constructor.

Parameters
requestHandlerOn request message received handler

Member Function Documentation

◆ Message()

template<typename T , typename R >
void ara::com::cg::CommunicationGroupClient< T, R >::Message ( const T &  msg)
inline

Receive a request message from the server.

Parameters
msgReceived request message

◆ Response()

template<typename T , typename R >
std::future< void > ara::com::cg::CommunicationGroupClient< T, R >::Response ( const R &  responseMsg) const

Send a response message to the server.

Parameters
responseMsgResponse message to be sent
Returns
Fire and forget future