ADTF
|
Value setter to set the current value of the given element from a type ValueType
if supported.
More...
Static Public Member Functions | |
static void | setValue (void *data, const size_t data_size, const LeafLayout &leaf_layout, const ValueType &value) |
Sets the current value if the given element as a ValueType if supported. More... | |
Value setter to set the current value of the given element from a type ValueType
if supported.
CodecType | The type of the codec. |
ValueType | The value type supported (by default bool, all int types, float and double are supported). |
Definition at line 892 of file leaf_value_access.h.
|
inlinestatic |
Sets the current value if the given element as a ValueType
if supported.
leaf_layout | The small leaf layout of the element to get. | |
data | The data area to set the value to | |
data_size | The data area size in bytes | |
[in] | value | The value to set as ValueType, if supported. |
std::runtime_error | if there is no valid conversion or the given layout is invalid |
Definition at line 901 of file leaf_value_access.h.
References LeafLayout::data_flags, and ddl::codec::serialized.
Referenced by Codec::setElementValue(), StaticCodec::setElementValue(), and ValueSetterSelect< CodecType, ValueType, true >::setValue().