Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::diag::MetaInfo Class Referencefinal

Diagnostic metainfo in different context. More...

#include <meta_info.h>

Public Member Functions

 MetaInfo (const MetaInfo &)=delete
 
 MetaInfo (MetaInfo &&) noexcept=default
 
 MetaInfo (Context context)
 Non-ARA compatible constructor. More...
 
MetaInfooperator= (const MetaInfo &)=delete
 
MetaInfooperator= (MetaInfo &&) &=default
 
core::Optional< std::string > GetValue (std::string key)
 Get an entry value within the metainfo. More...
 
void SetValue (std::string key, std::string value)
 Add a key-value pair to the metainfo. More...
 
Context GetContext () const noexcept
 Get metainfo context. More...
 

Detailed Description

Diagnostic metainfo in different context.

Constructor & Destructor Documentation

◆ MetaInfo()

ara::diag::MetaInfo::MetaInfo ( Context  context)

Non-ARA compatible constructor.

Parameters
contextMetainfo context

Member Function Documentation

◆ GetContext()

Context ara::diag::MetaInfo::GetContext ( ) const
noexcept

Get metainfo context.

Returns
Context in which the metainfo has been defined

◆ GetValue()

core::Optional< std::string > ara::diag::MetaInfo::GetValue ( std::string  key)

Get an entry value within the metainfo.

Parameters
keyEntry key
Returns
Optional entry value based on the key existence

◆ SetValue()

void ara::diag::MetaInfo::SetValue ( std::string  key,
std::string  value 
)

Add a key-value pair to the metainfo.

Parameters
keyKey of the pair
valueValue of the pair
Note
The method is not defined in the ARA standard.