Legacy Base Class to Support adtf_ddl::access_element API.
More...
Legacy Base Class to Support adtf_ddl::access_element API.
- See also
- The Codec Leaf Index.
Definition at line 28 of file sample_codec_access_legacy.h.
◆ getDecoder()
◆ GetElement()
Get the Element StructElement information.
- Parameters
-
nElementLeafIndex | The leaf index (between 0 and GetElementCount()) |
pElement | The legacy StructElement |
- Returns
- tResult
◆ GetElementAddress()
Legacy: Get the Element StructElement information.
- Parameters
-
nElementLeafIndex | The leaf index (between 0 and GetElementCount()) |
pElement | The legacy StructElement |
- Returns
- tResult
◆ GetElementCount()
size_t GetElementCount |
( |
| ) |
const |
Legacy: Get the Element Leaf count.
- Returns
- size_t The amount of leafs.
◆ GetElementValue() [1/5]
tResult GetElementValue |
( |
const char * |
strElementName, |
|
|
adtf_util::cVariant & |
oValue |
|
) |
| const |
Legacy: Get the Element Value.
- Parameters
-
strElementName | The full element name |
oValue | The result value to retrieve to |
- Returns
- tResult
◆ GetElementValue() [2/5]
tResult GetElementValue |
( |
const char * |
strElementName, |
|
|
void * |
pValue |
|
) |
| const |
Legacy: Get the Element Value pointer.
- Parameters
-
strElementName | The full element name |
pValue | The result value pointer to retrieve to |
- Returns
- tResult
◆ GetElementValue() [3/5]
adtf_util::cVariant GetElementValue |
( |
tCodecLeafIndex |
nElementLeafIndex | ) |
const |
Legacy: Get the Element Value.
- Parameters
-
- Returns
- adtf_util::cVariant
- Exceptions
-
Throws | a tResult if not found. |
◆ GetElementValue() [4/5]
Legacy: Get the Element Value.
- Parameters
-
nElementLeafIndex | The leaf index (between 0 and GetElementCount()) |
oValue | The result value to retrieve to |
- Returns
- tResult
◆ GetElementValue() [5/5]
Legacy: Copies the Element Value memory into the memory pointer.
Keep in MIND this function is UNSAFE in case of value memory is biger than the given one.
- Parameters
-
nElementLeafIndex | The leaf index (between 0 and GetElementCount()) |
pValue | The result value pointer to retrieve to |
- Returns
- tResult
◆ GetElementValueString()
adtf_util::cString GetElementValueString |
( |
tCodecLeafIndex |
nElementLeafIndex | ) |
const |
Legacy: Get the Element Value as string (resolved to the enum element name if is enum type)
- Parameters
-
- Returns
- adtf_util::cString
◆ GetStructElementName()
Legacy: Get the Struct Element Name for access_element legacy support.
- Parameters
-
pElement | the struct element where to retrieve the name from |
- Returns
- const char*
◆ Resolve()