10 #include <wpi/Twine.h> 12 #include "Commands/Command.h" 65 void _Initialize()
override;
68 void _Interrupted()
override;
78 Command* m_chosenCommand =
nullptr;
Definition: Utility.cpp:119
bool IsFinished() override
Returns whether this command is finished.
Definition: ConditionalCommand.cpp:68
ConditionalCommand(Command *onTrue, Command *onFalse=nullptr)
Creates a new ConditionalCommand with given onTrue and onFalse Commands.
Definition: ConditionalCommand.cpp:27
virtual bool Condition()=0
The Condition to test to determine which Command to run.
void _Cancel() override
This works like Cancel(), except that it doesn't throw an exception if it is a part of a command grou...
Definition: ConditionalCommand.cpp:60
The Command class is at the very core of the entire command framework.
Definition: Command.h:48
A ConditionalCommand is a Command that starts one of two commands.
Definition: ConditionalCommand.h:35
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79