14 #ifndef DDL_STRUCT_ELEMENT_ACCESS_LEGACY_CLASS_HEADER
15 #define DDL_STRUCT_ELEMENT_ACCESS_LEGACY_CLASS_HEADER
21 namespace access_element {
34 template <
typename AccessType>
44 return &_legacy_struct_element;
55 auto codec_index = access.resolve(leaf_index);
56 const auto& layout = codec_index.getLayout();
57 const auto&
type_info = *(layout.type_info);
59 _legacy_struct_element.
type =
61 _legacy_struct_element.
name = access.getElementFullName(codec_index);
82 return ERR_STRUCT_ELEMENT_NOT_FOUND;
A common result class usable as return value throughout.
Legacy helper for the ddl::StructElement.
a_util::result::Result getStructElement(const AccessType &access, size_t leaf_index, const ddl::StructElement *&struct_element) const
Fill the local Struct Element and retrieves the Struct Element pointer for legacy in struct_element.
const ddl::StructElement * getStructElement() const
Get the converted StructElement pointer.
const ddl::StructElement * getStructElement(const AccessType &access, size_t leaf_index) const
Fill the local Struct Element and retrieves the Struct Element pointer for legacy.
VariantType
Enumeration of supported Variant types.
_MAKE_RESULT(-20, ERR_STRUCT_ELEMENT_NOT_FOUND)
Creates an a_util error ERR_AUTIL_NOT_FOUND.
definition of the ddl namespace
Information about an element accessible with a decoder or codec.
a_util::variant::VariantType type
The type of the element.
const AccessEnumType * p_enum
pointer to an enum, can be NULL.
std::string name
The full name of the element.
Common include for component a_util::result.
Definition of old StructElement legacy header for old Codec API.