ADTF
adtf_a_util_variant.h File Reference

Copyright © Audi Electronics Venture GmbH. More...

Go to the source code of this file.

Namespaces

 adtf_util
 ADTF adtf_util Namespace - Within adtf this is used as adtf::util or adtf_util and also defined as A_UTILS_NS.
 

Macros

#define ADTF_DEFINE_GET_AUTIL_VARIANT_VALUE_BY_TYPE(_type_, _getter_functionname_)
 

Functions

template<typename T , typename U = T>
cVariant ConvertToADTFVariantByType (const a_util::variant::Variant &oValue)
 
cVariant ConvertToADTFVariant (const a_util::variant::Variant &oValue)
 
a_util::variant::Variant ConvertToAUtilVariant (const cVariant &oValue)
 
bool GetVariantInfoIsString (const cVariant &oValue)
 
bool GetVariantInfoIsUnsignedInt (const cVariant &oValue)
 

Detailed Description

Copyright © Audi Electronics Venture GmbH.

All rights reserved

Definition in file adtf_a_util_variant.h.

Macro Definition Documentation

◆ ADTF_DEFINE_GET_AUTIL_VARIANT_VALUE_BY_TYPE

#define ADTF_DEFINE_GET_AUTIL_VARIANT_VALUE_BY_TYPE (   _type_,
  _getter_functionname_ 
)
Value:
namespace detail \
{ \
inline _type_ GetArrayValueByType(const a_util::variant::Variant& oValue, size_t nIdx, _type_ ) \
{ \
return (&(oValue))->_getter_functionname_(nIdx); \
} \
}

Definition at line 14 of file adtf_a_util_variant.h.