Wyatt
1.0.1
|
#include <SimpleIteratorCommand.h>
Public Member Functions | |
SimpleIteratorCommand (int goal) | |
bool | execute () |
bool | cleanup (bool canceled) |
int | getCount () |
Public Member Functions inherited from Command | |
Command () | |
virtual | ~Command () |
void | init () |
void | cancel () |
void | stop () |
bool | isRunning () |
bool | isInitialized () |
void | setIsRunning (bool value) |
bool | isFinished () |
Additional Inherited Members | |
Protected Attributes inherited from Command | |
std::mutex | m_lock |
Lock for managing access to member variables in a thread-safe manner. | |
Mock command to check the CommandManager class.
Definition at line 13 of file SimpleIteratorCommand.h.
|
virtual |
This method is called to cleanup the command (whenever the stop method is called).
canceled | true if command was canceled, false otherwise. |
Implements Command.
Definition at line 36 of file SimpleIteratorCommand.cpp.
|
virtual |
This method is called periodically during the command execution. Think of it like the Arduino's loop() function. While the command is executing this will be called repeatedly. Do not include while loops in here.
Implements Command.
Definition at line 20 of file SimpleIteratorCommand.cpp.