#include "Commander.hpp"
Public Member Functions | |
Commander () | |
virtual void | PriorityLoop () |
virtual void | beforeFirstLoop () |
virtual unsigned long | loop () |
Static Public Member Functions | |
static void | CommanderPriorityLoops () |
static void | BeforeFirstLoops () |
static unsigned long | loops () |
This is the base class for all the commanders.
DO NOT INSTANCIATE THIS CLASS !
A commander is a class with a loop function which is able to raise events for a source. Each commander is an item into a linked list of commanders. There is one and only one Commander of a given type during a library session.
Definition at line 29 of file Commander.hpp.
|
inline |
Default constructor.
Definition at line 37 of file Commander.hpp.
|
inlinevirtual |
This function will be called after sketch Setup(), but before the first call to loop(). It will be called only one time.
Reimplemented in ButtonsCommanderClass.
Definition at line 46 of file Commander.hpp.
|
static |
This function will call all BeforeFirstLoop() in sequence.
Definition at line 33 of file Commander.cpp.
|
static |
This function will call all PriorityLoop() in sequence.
Definition at line 44 of file Commander.cpp.
|
inlinevirtual |
Main loop of this commander.
Reimplemented in DccCommanderNMRAClass, DccCommanderClass, CANCommanderClass, ButtonsCommanderClass, and I2CCommanderClass.
Definition at line 50 of file Commander.hpp.
|
static |
This function will call all loop() in sequence.
Definition at line 55 of file Commander.cpp.
|
inlinevirtual |
Priority loop function. A commander can need more call to its loop than normal. The priority loop functions of all the commanders will be called before any commander loop.
Reimplemented in DccCommanderNMRAClass, and DccCommanderClass.
Definition at line 43 of file Commander.hpp.