Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
application::helper Namespace Reference

Namespace that contains the helper classes for the application. More...

Classes

class  ArgumentConfiguration
 A helper class to manage the arguments passed to the main application. More...
 
class  CurlWrapper
 Minimalist C++ wrapper of easy (blocking interface) CURL library for RESTful communication. More...
 
class  FifoCheckpointCommunicator
 Supervision checkpoint communicator over the FIFO medium. More...
 
class  LogRecoveryAction
 A class to provide logging as the recovery action for a failed supervised entity. More...
 
class  MemoryCache
 Memory cache helper class with expiration time. More...
 
struct  NetworkConfiguration
 Data model for a network configuration. More...
 
class  ReadDataByIdentifier
 UDS to read data at the diagnostic server by passing the data ID (DID) More...
 
struct  RpcConfiguration
 Data model for a remote procedure call connection configuration. More...
 

Functions

bool TryGetNetworkConfiguration (const arxml::ArxmlReader &reader, std::string networkEndpoint, std::string applicationEndpoint, ara::com::option::Layer4ProtocolType protocol, NetworkConfiguration &configuration)
 Try to get a nework configuration based on a ARXML configuration file. More...
 
bool TryGetNetworkConfiguration (const std::string &configFilepath, std::string networkEndpoint, std::string applicationEndpoint, ara::com::option::Layer4ProtocolType protocol, NetworkConfiguration &configuration)
 Try to get a nework configuration based on a ARXML configuration file. More...
 
template<typename T , size_t M, size_t N>
bool TryExtractDeepValue (const arxml::ArxmlReader &shallowReader, const std::array< std::string, M > &shallowChildren, const std::array< std::string, N > &deepChildren, std::string shortNameFilter, T &deepValue)
 Try to extract a deep value from an XML content. More...
 
bool TryGetRpcConfiguration (const std::string &configFilepath, std::string networkEndpoint, std::string applicationEndpoint, RpcConfiguration &configuration)
 Try to get a RPC configuration based on a ARXML configuration file. More...
 

Detailed Description

Namespace that contains the helper classes for the application.

Function Documentation

◆ TryExtractDeepValue()

template<typename T , size_t M, size_t N>
bool application::helper::TryExtractDeepValue ( const arxml::ArxmlReader shallowReader,
const std::array< std::string, M > &  shallowChildren,
const std::array< std::string, N > &  deepChildren,
std::string  shortNameFilter,
T &  deepValue 
)

Try to extract a deep value from an XML content.

Template Parameters
TDeep value type
MShallow children depth level
NDeep children depth level
Parameters
[in]shallowReaderXML content reader
[in]shallowChildrenXML node hierarchy that may contain multiple deep values
[in]deepChildrenXML node hierarchy of a deep value
[in]shortNameFilterDeep value short name for filtering within multiple deep values
[out]deepValueFilled deep value
Returns
True if the value is extracted properly; otherwise false

◆ TryGetNetworkConfiguration() [1/2]

bool application::helper::TryGetNetworkConfiguration ( const arxml::ArxmlReader reader,
std::string  networkEndpoint,
std::string  applicationEndpoint,
ara::com::option::Layer4ProtocolType  protocol,
NetworkConfiguration configuration 
)

Try to get a nework configuration based on a ARXML configuration file.

Parameters
[in]readerARXML configuration reader
[in]networkEndpointDesired network endpoint name
[in]applicationEndpointDesired application endpoint name
[in]protocolNetwork transmission protocol
[out]configurationFilled network configuration
Returns
True if the configuration is filled properly; otherwise false

◆ TryGetNetworkConfiguration() [2/2]

bool application::helper::TryGetNetworkConfiguration ( const std::string &  configFilepath,
std::string  networkEndpoint,
std::string  applicationEndpoint,
ara::com::option::Layer4ProtocolType  protocol,
NetworkConfiguration configuration 
)

Try to get a nework configuration based on a ARXML configuration file.

Parameters
[in]configFilepathARXML configuration file path
[in]networkEndpointDesired network endpoint name
[in]applicationEndpointDesired application endpoint name
[in]protocolNetwork transmission protocol
[out]configurationFilled network configuration
Returns
True if the configuration is filled properly; otherwise false

◆ TryGetRpcConfiguration()

bool application::helper::TryGetRpcConfiguration ( const std::string &  configFilepath,
std::string  networkEndpoint,
std::string  applicationEndpoint,
RpcConfiguration configuration 
)

Try to get a RPC configuration based on a ARXML configuration file.

Parameters
[in]configFilepathARXML configuration file path
[in]networkEndpointDesired network endpoint name
[in]applicationEndpointDesired application endpoint name
[out]configurationFilled RPC configuration
Returns
True if the configuration is filled properly; otherwise false