CuteHMI - Modbus (CuteHMI.Modbus.4)
cutehmi::modbus::internal::PollingIterator Class Reference

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

Inheritance diagram for cutehmi::modbus::internal::PollingIterator:
cutehmi::modbus::internal::IterableTasks cutehmi::NonCopyable

Public Member Functions

 PollingIterator (AbstractDevice *device)
 
bool runNext () override
 Run next task. More...
 
void reset () override
 Reset tasks iterator. More...
 
QUuidrequestId ()
 
const QUuidrequestId () 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

- 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
 
- Protected Member Functions inherited from cutehmi::NonCopyable
 NonCopyable ()=default
 
 NonCopyable (NonCopyable &&other)=default
 
 ~NonCopyable ()=default
 
NonCopyableoperator= (NonCopyable &&other)=default
 

Constructor & Destructor Documentation

◆ PollingIterator()

cutehmi::modbus::internal::PollingIterator::PollingIterator ( AbstractDevice device)

Member Function Documentation

◆ requestId() [1/2]

QUuid & cutehmi::modbus::internal::PollingIterator::requestId ( )

◆ requestId() [2/2]

const QUuid & cutehmi::modbus::internal::PollingIterator::requestId ( ) const

◆ reset()

void cutehmi::modbus::internal::PollingIterator::reset ( )
overridevirtual

Reset tasks iterator.

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

◆ runNext()

bool cutehmi::modbus::internal::PollingIterator::runNext ( )
overridevirtual

Run next task.

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

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