openDAQ
Open data acquisition platform
WorkRepetitivePtr Class Reference

The interface used for repetitive work that needs to be executed in the main loop. The callback is expected to return a boolean value indicating whether the work should be repeated. If the callback does return nothing, it is assumed that the work should not be repeated. More...

Inherits ObjectPtr< IWorkRepetitive >.

Detailed Description

The interface used for repetitive work that needs to be executed in the main loop. The callback is expected to return a boolean value indicating whether the work should be repeated. If the callback does return nothing, it is assumed that the work should not be repeated.

Public Member Functions

daq::Bool executeRepetitively () const
 Executes the repetitive task logic and determines whether it should be repeated. More...
 

Member Function Documentation

◆ executeRepetitively()

daq::Bool executeRepetitively ( ) const
inline

Executes the repetitive task logic and determines whether it should be repeated.

Returns
Set to true to continue repeating the task, or false to stop.