A DecoderElement to get values.
More...
#include <codec_iterator.h>
Inherits ddl::codec::FactoryElement< ElementAccessType, ChildElementsType >.
Inherited by ddl::codec::CodecElement< ElementAccessType, ChildElementsType >.
|
|
using | base_type = FactoryElement<ElementAccessType, ChildElementsType> |
| | base type
|
| |
| using | self_type = DecoderElement<ElementAccessType, ChildElementsType> |
| |
|
using | access_type = typename ElementAccessType::access_type |
| | access type from concept template
|
| |
|
using | child_elements_type = typename base_type::child_elements_type |
| | allowed container type
|
| |
| using | iterator_type = typename child_elements_type::iterator |
| |
|
using | const_iterator_type = typename child_elements_type::const_iterator |
| | allowed const iterator type
|
| |
|
using | self_type = FactoryElement<ElementAccessType, ChildElementsType> |
| | self type
|
| |
|
using | access_type = typename ElementAccessType::access_type |
| | access type
|
| |
|
using | child_elements_type = ChildElementsType |
| | allowed container type
|
| |
| using | iterator_type = typename child_elements_type::iterator |
| |
|
using | const_iterator_type = typename child_elements_type::const_iterator |
| | allowed const iterator type
|
| |
|
|
| DecoderElement ()=delete |
| | CTOR.
|
| |
| template<typename T> |
| T | getValue () const |
| | Get the value as type T.
|
| |
| a_util::variant::Variant | getVariantValue () const |
| | Get the value as variant.
|
| |
| std::string | getStringValue () const |
| | Get the value as string.
|
| |
| void | getRawValue (void *value, size_t value_size) const |
| | Get the as copy to the value buffer.
|
| |
| const void * | getAddress () const |
| | Get the address of the element.
|
| |
| self_type | getChildElement (std::string_view path) const |
| | Get the child element with the given name.
|
| |
| self_type | getArrayElement (size_t array_pos=0) const |
| | Get the array element of the given array_pos.
|
| |
|
| FactoryElement ()=delete |
| | no CTOR
|
| |
| | FactoryElement (FactoryElement &&other) |
| | move CTOR
|
| |
| FactoryElement & | operator= (FactoryElement &&other) |
| | copy assignment operator
|
| |
| | FactoryElement (const FactoryElement &other) |
| | copy CTOR
|
| |
| FactoryElement & | operator= (const FactoryElement &other) |
| | move assignment operator
|
| |
|
| ~FactoryElement ()=default |
| | DTOR.
|
| |
| const CodecIndex & | getIndex () const |
| | Get the codec index of the element.
|
| |
| size_t | getArraySize () const |
| | Get the array size.
|
| |
| ddl::codec::ElementType | getType () const |
| | Get the type of the element.
|
| |
| std::string | getFullName () const |
| | Get the full name of the element. If the element is an array you get the elements array name representation: "main_element.element_name[0]" or main_element.element_name[1] ... etc. If the element is not an array you get the elements name representation: "main_element.element_name".
|
| |
| std::string | getName () const |
| | Get the name of the element If the element is an array you get the elements array name representation: "element_name[0]" or element_name[1] ... etc. If the element is not an array you get the elements name representation: "element_name".
|
| |
| std::string | getBaseName () const |
| | Get the base name of the element. If the element is an array you get the elements base name representation : "element_name" for each array element. If the element is not an array you get the elements name representation is also the base name representation: "element_name" .
|
| |
| bool | isArray () const |
| | Get array information.
|
| |
| bool | hasChildren () const |
| | Get children information.
|
| |
| const child_elements_type & | getChildElements () const |
| | Get the ChildElements.
|
| |
| self_type | getChildElement (std::string_view path) const |
| | Get the child element with the given name.
|
| |
| self_type | getArrayElement (size_t array_pos=0) const |
| | Get the array element of the given array_pos.
|
| |
| bool | isValid () const |
| | Get validation indormation.
|
| |
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
class ddl::codec::DecoderElement< ElementAccessType, ChildElementsType >
A DecoderElement to get values.
- Template Parameters
-
◆ iterator_type
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
◆ self_type
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
◆ getAddress()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get the address of the element.
- Returns
- const void*
◆ getArrayElement()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get the array element of the given array_pos.
- Parameters
-
| array_pos | The array pos of the element to retrieve |
- Returns
- self_type
◆ getChildElement()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get the child element with the given name.
- Parameters
-
| path | Name of the child element. |
- Returns
- self_type
◆ getRawValue()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get the as copy to the value buffer.
- Parameters
-
| value | The value buffer to copy to |
| value_size | The size of the value buffer (if 0 its unsafe usage without size check!, the size is only retrieved from the codec information) |
◆ getStringValue()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get the value as string.
- Returns
- value as string (the value is returned as enum element name in case of enum type)
◆ getValue()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
template<typename T>
Get the value as type T.
- Template Parameters
-
| T | Type of the value to return |
- Returns
- value in type T (supported types: all int types, bool, float, double, std::string)
- See also
- StaticCodec::getElementValue
◆ getVariantValue()
template<typename ElementAccessType, typename ChildElementsType = ChildElements<ElementAccessType>>
Get the value as variant.
- Returns
- value as variant (supported types: all int types, bool, float, double, std::string)
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/codec_iterator.h