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... | |
MetaInfo & | operator= (const MetaInfo &)=delete |
MetaInfo & | operator= (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... | |
Diagnostic metainfo in different context.
ara::diag::MetaInfo::MetaInfo | ( | Context | context | ) |
Non-ARA compatible constructor.
context | Metainfo context |
|
noexcept |
Get metainfo context.
core::Optional< std::string > ara::diag::MetaInfo::GetValue | ( | std::string | key | ) |
Get an entry value within the metainfo.
key | Entry key |
void ara::diag::MetaInfo::SetValue | ( | std::string | key, |
std::string | value | ||
) |
Add a key-value pair to the metainfo.
key | Key of the pair |
value | Value of the pair |