#include <static_codec_legacy.h>
Inherited by ddl::Decoder, and ddl::StaticCodec.
|
| | 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.
|
| |
Decoder for static structures defined by a DataDefinition definition.
- Deprecated
- Use the new ddl::codec::StaticDecoder() instead.
◆ StaticDecoder() [1/4]
| DEV_ESSENTIAL_DEPRECATED_STATIC_DECODER ddl::StaticDecoder::StaticDecoder |
( |
| ) |
|
◆ StaticDecoder() [2/4]
◆ StaticDecoder() [3/4]
◆ StaticDecoder() [4/4]
| ddl::StaticDecoder::StaticDecoder |
( |
std::shared_ptr< const StructLayout > | layout, |
|
|
const void * | data, |
|
|
size_t | data_size, |
|
|
DataRepresentation | rep ) |
|
protected |
◆ getElement()
Access information about an element.
- Parameters
-
| [in] | index | The index of the element. |
| [out] | element | Pointer that will be updated to point to the element information. |
- Return values
-
| ERR_INVALID_INDEX | Invalid element index. |
◆ getElementAddress()
| 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.
◆ getElementCount()
| virtual size_t ddl::StaticDecoder::getElementCount |
( |
| ) |
const |
|
virtual |
- Returns
- The amount of elements contained in the data structure.
Reimplemented in ddl::Decoder.
◆ getElementValue() [1/2]
Returns the current value of the given element as a variant.
- Parameters
-
| [in] | index | The index of the element. |
| [out] | value | The will be set to the current value. |
- Return values
-
| ERR_INVALID_INDEX | Invalid element index. |
◆ getElementValue() [2/2]
Returns the current value of the given element by copying its data to the passed-in location.
- Parameters
-
| [in] | index | The index of the element. |
| [out] | value | The location where the value should be copied to. |
- Return values
-
| ERR_INVALID_INDEX | Invalid element index. |
◆ getRepresentation()
- Returns
- The data representation which this decoder handles.
◆ getStaticBufferSize()
- Parameters
-
| [in] | rep | The data representation for which the buffer size should be returned. |
- Returns
- The size of the structure in the requested data representation.
◆ isValid()
- Returns
- Whether or not the decoder is valid.
- Return values
-
| ERR_INVALID_ARG | The passed data is not large enough. |
Reimplemented in ddl::Decoder.
◆ operator=() [1/2]
◆ operator=() [2/2]
Move assignment operator.
◆ _compat_data
| const void* ddl::StaticDecoder::_compat_data |
|
protected |
◆ _compat_data_size
| size_t ddl::StaticDecoder::_compat_data_size |
|
protected |
◆ _compat_element_accessor
| const void* ddl::StaticDecoder::_compat_element_accessor |
|
protected |
The documentation for this class was generated from the following file:
- /workspace/conan/dev_essential/1.6.3/dw/stable/package/65324bff46e457721a7ba250afe9d61dc2b0e57a/include/ddl/codec/legacy/static_codec_legacy.h