AMS Advanced Air Mobility Sensors UG
Loading...
Searching...
No Matches
CPortReader Class Reference

Static Public Member Functions

template<typename TRunnableId , typename... TPortTypes>
static auto ReadPorts (TRunnableId eRunnableId, TPortTypes &... orPorts) -> std::optional< std::tuple< typename TPortTypes::DataType... > >
 

Member Function Documentation

◆ ReadPorts()

template<typename TRunnableId , typename... TPortTypes>
auto CPortReader::ReadPorts ( TRunnableId  eRunnableId,
TPortTypes &...  orPorts 
) -> std::optional<std::tuple<typename TPortTypes::DataType...>>
static

Read data from multiple ports.

Template Parameters
TRunnableIdRunnable ID type (enum or integer)
TPortTypesVariadic list of port types.
Parameters
eRunnableIdRunnable ID. Use 0 to skip logging, or if not applicable.
orPortsVariadic list of port references.
Returns
An optional tuple containing the data read from the ports. If any port fails to lock, returns empty optional.

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