Uniot Core
0.8.1
Loading...
Searching...
No Matches
uniot::IExecutor Class Referenceabstract

Interface for executing tasks in the scheduler system. More...

#include <IExecutor.h>

Inheritance diagram for uniot::IExecutor:
[legend]

Public Member Functions

virtual ~IExecutor ()
 Virtual destructor for proper cleanup.
 
virtual void execute (short times)=0
 Execute the implementation's functionality.
 

Detailed Description

Interface for executing tasks in the scheduler system.

IExecutor provides a common interface for any class that needs to be executed by the TaskScheduler. This enables different components to be integrated into the scheduling system.

Constructor & Destructor Documentation

◆ ~IExecutor()

virtual uniot::IExecutor::~IExecutor ( )
inlinevirtual

Virtual destructor for proper cleanup.

Member Function Documentation

◆ execute()

virtual void uniot::IExecutor::execute ( short times)
pure virtual

Execute the implementation's functionality.

Parameters
timesThe number of remaining executions:
  • Positive numbers indicate remaining executions count
  • Negative numbers indicate infinite executions (repeat forever)
  • Zero indicates the last execution has occurred

Implemented in uniot::Button, uniot::ConfigCaptivePortal, uniot::Date, uniot::EventBus< T_topic, T_msg, T_data >, uniot::EventBus< unsigned int, int, Bytes >, and uniot::EventBus< unsigned int, int, Bytes >.


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