ADTF
|
Value getter to retrieve the current value of the given element as a ValueType
if supported from a data area.
More...
Static Public Member Functions | |
static ValueType | getValue (const void *data, const size_t data_size, const LeafLayout &leaf_layout) |
Returns the current value of the given element as a ValueType if supported. More... | |
Value getter to retrieve the current value of the given element as a ValueType
if supported from a data area.
ValueType | The value type supported (by default bool, all int types, float, double and std::string are supported). |
Definition at line 861 of file leaf_value_access.h.
|
inlinestatic |
Returns the current value of the given element as a ValueType
if supported.
leaf_layout | The small leaf layout of the element to get. |
data | The data area to retrieve the value from |
data_size | The data area size in bytes |
std::runtime_error | if there is no valid conversion or the given layout is invalid |
Definition at line 870 of file leaf_value_access.h.
References LeafLayout::data_flags, and ddl::codec::serialized.
Referenced by StaticDecoder::getElementValue(), and ValueGetterSelect< DecoderType, ValueType, true >::getValue().