Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::log::Argument< T > Class Template Reference

A payload (quantity) with an unit wrapper. More...

#include <argument.h>

Public Member Functions

 Argument (T &&payload, const char *identifier, const char *unit)
 brief description Constructor More...
 
std::string ToString () const
 Convert the payload to a standard string. More...
 

Detailed Description

template<typename T>
class ara::log::Argument< T >

A payload (quantity) with an unit wrapper.

Template Parameters
TPayload type

Constructor & Destructor Documentation

◆ Argument()

template<typename T >
ara::log::Argument< T >::Argument ( T &&  payload,
const char *  identifier,
const char *  unit 
)
inline

brief description Constructor

Parameters
payloadPayload value
identifierPayload ID
unitPlayload unit

Member Function Documentation

◆ ToString()

template<typename T >
std::string ara::log::Argument< T >::ToString ( ) const
inline

Convert the payload to a standard string.

Returns
Serialized payload string