ADTF
Loading...
Searching...
No Matches
ddl::mapping::ArraySourceValue Class Referenceabstract

Source Value base class that represents an array. More...

#include <mapper_interfaces.h>

Inherits ddl::mapping::SourceValue.

Public Member Functions

virtual std::optional< ValueVariantgetValue (size_t array_pos) const =0
 Get the value as optional variant.
 
virtual size_t getArraySize () const =0
 Returns the array size of the SourceValue.
 
- Public Member Functions inherited from ddl::mapping::SourceValue
virtual ~SourceValue ()
 DTOR.
 

Detailed Description

Source Value base class that represents an array.

Member Function Documentation

◆ getArraySize()

virtual size_t ddl::mapping::ArraySourceValue::getArraySize ( ) const
pure virtual

Returns the array size of the SourceValue.

Returns
size_t The array size

◆ getValue()

virtual std::optional< ValueVariant > ddl::mapping::ArraySourceValue::getValue ( size_t array_pos) const
pure virtual

Get the value as optional variant.

Parameters
array_posarray pos of the value
Returns
if source value is not set it returns an empty optional

The documentation for this class was generated from the following file: