CuteHMI - Modbus (CuteHMI.Modbus.4)
cutehmi::modbus::internal::DataContainerPolling< DERIVED, DATA > Class Template Reference

#include <cutehmi/modbus/internal/DataContainerPolling.hpp>

Inheritance diagram for cutehmi::modbus::internal::DataContainerPolling< DERIVED, DATA >:
cutehmi::modbus::internal::IterableTasks cutehmi::NonCopyable

Public Types

typedef DATA Data
 
typedef RegisterTraits< Data >::Container DataContainer
 
- Public Types inherited from cutehmi::modbus::internal::IterableTasks
typedef RegisterTraits< Coil >::Container CoilDataContainer
 
typedef RegisterTraits< DiscreteInput >::Container DiscreteInputDataContainer
 
typedef RegisterTraits< HoldingRegister >::Container HoldingRegisterDataContainer
 
typedef RegisterTraits< InputRegister >::Container InputRegisterDataContainer
 

Public Member Functions

 DataContainerPolling (AbstractDevice *device, QUuid *requestId)
 
AbstractDevicedevice () const
 
bool runNext () override
 Run next task. More...
 
void reset () override
 Reset tasks iterator. More...
 
DERIVED & derived ()
 
const DERIVED & derived () const
 
- Public Member Functions inherited from cutehmi::modbus::internal::IterableTasks
virtual ~IterableTasks ()=default
 
virtual bool runNext ()=0
 Run next task. More...
 
virtual void reset ()=0
 Reset tasks iterator. More...
 
const CoilDataContainercoilData (const AbstractDevice *device) const
 
const DiscreteInputDataContainerdiscreteInputData (const AbstractDevice *device) const
 
const HoldingRegisterDataContainerholdingRegisterData (const AbstractDevice *device) const
 
const InputRegisterDataContainerinputRegisterData (const AbstractDevice *device) const
 

Additional Inherited Members

- Protected Member Functions inherited from cutehmi::NonCopyable
 NonCopyable ()=default
 
 NonCopyable (NonCopyable &&other)=default
 
 ~NonCopyable ()=default
 
NonCopyableoperator= (NonCopyable &&other)=default
 

Member Typedef Documentation

◆ Data

template<class DERIVED , class DATA >
typedef DATA cutehmi::modbus::internal::DataContainerPolling< DERIVED, DATA >::Data

◆ DataContainer

template<class DERIVED , class DATA >
typedef RegisterTraits<Data>::Container cutehmi::modbus::internal::DataContainerPolling< DERIVED, DATA >::DataContainer

Constructor & Destructor Documentation

◆ DataContainerPolling()

template<class DERIVED , class DATA >
cutehmi::modbus::internal::DataContainerPolling< DERIVED, DATA >::DataContainerPolling ( AbstractDevice device,
QUuid requestId 
)

Member Function Documentation

◆ derived() [1/2]

template<class DERIVED , class DATA >
DERIVED & cutehmi::modbus::internal::DataContainerPolling< DERIVED, DATA >::derived

◆ derived() [2/2]

template<class DERIVED , class DATA >
const DERIVED & cutehmi::modbus::internal::DataContainerPolling< DERIVED, DATA >::derived

◆ device()

template<class DERIVED , class DATA >
AbstractDevice * cutehmi::modbus::internal::DataContainerPolling< DERIVED, DATA >::device

◆ reset()

template<class DERIVED , class DATA >
void cutehmi::modbus::internal::DataContainerPolling< DERIVED, DATA >::reset ( )
overridevirtual

Reset tasks iterator.

Implements cutehmi::modbus::internal::IterableTasks.

◆ runNext()

template<class DERIVED , class DATA >
bool cutehmi::modbus::internal::DataContainerPolling< DERIVED, DATA >::runNext ( )
overridevirtual

Run next task.

Returns
false if there are no more tasks to run, true otherwise.

Implements cutehmi::modbus::internal::IterableTasks.