#include <codec_legacy.h>
Inherits ddl::Decoder.
|
| | Codec (std::shared_ptr< const StructLayout > layout, void *data, size_t data_size, DataRepresentation rep) |
| |
|
| Codec (codec::Codec &&codec) |
| | For internal use only.
|
| |
|
virtual const void * | getLayoutElement (size_t index) const |
| | this virtual pointer must stay for binary compatiblity.
|
| |
|
| Decoder (const std::shared_ptr< LegacyCodecAccess > &legacy_codec_access) |
| | For internal use only.
|
| |
| | Decoder (std::shared_ptr< const StructLayout >, const void *data, size_t data_size, DataRepresentation rep) |
| |
| | StaticDecoder (std::shared_ptr< const StructLayout > layout, const void *data, size_t data_size, DataRepresentation rep) |
| |
|
| StaticDecoder (const std::shared_ptr< LegacyCodecAccess > &legacy_codec_access) |
| | For internal use only.
|
| |
|
|
class | CodecFactory |
| |
|
class | Decoder |
| |
Decoder for dynamic structures defined by a DataDefinition definition. Currently the amount of dynamic elements is determined during construction only (by the current values in the structure).
- Deprecated
- Use the new ddl::codec::Codec() instead.
◆ Codec() [1/3]
| DEV_ESSENTIAL_DEPRECATED_CODEC ddl::Codec::Codec |
( |
| ) |
|
|
default |
◆ Codec() [2/3]
| ddl::Codec::Codec |
( |
Codec && | | ) |
|
|
default |
◆ Codec() [3/3]
| ddl::Codec::Codec |
( |
std::shared_ptr< const StructLayout > | layout, |
|
|
void * | data, |
|
|
size_t | data_size, |
|
|
DataRepresentation | rep ) |
|
protected |
◆ getElementAddress() [1/2]
| void * ddl::Codec::getElementAddress |
( |
size_t | index | ) |
|
- Parameters
-
| [in] | index | The index of the element. |
- Returns
- A pointer to the element or NULL in case of an error.
◆ getElementAddress() [2/2]
| const void * ddl::StaticDecoder::getElementAddress |
( |
size_t | index | ) |
const |
- Parameters
-
| [in] | index | The index of the element. |
- Returns
- A pointer to the element or NULL in case of an error.
◆ operator=()
| DEV_ESSENTIAL_DEPRECATED_CODEC Codec & ddl::Codec::operator= |
( |
Codec && | | ) |
|
|
default |
Move assignment operator.
◆ setConstants()
Sets all elements to their constant values defined in the DataDefinition.
- Returns
- Standard result.
◆ setElementValue() [1/2]
Sets the current value of the given element to the given value.
- Parameters
-
| [in] | index | The index of the element. |
| [in] | value | The value. |
- Return values
-
| ERR_INVALID_INDEX | Invalid element index. |
◆ setElementValue() [2/2]
Sets the current value of the given element by copying its data from the passed-in location.
- Parameters
-
| [in] | index | The index of the element. |
| [in] | value | The location where the data should be copied from. |
- Return values
-
| ERR_INVALID_INDEX | Invalid element index. |
The documentation for this class was generated from the following file: