DNA Calib 1.1
Project brief
|
ConditionalCommand is used to run a command if the specified condition is met. More...
#include <ConditionalCommand.h>
Public Member Functions | |
ConditionalCommand () | |
ConditionalCommand (CommandType *command_, ConditionType condition_) | |
~ConditionalCommand ()=default | |
ConditionalCommand (const ConditionalCommand &)=delete | |
ConditionalCommand & | operator= (const ConditionalCommand &)=delete |
ConditionalCommand (ConditionalCommand &&)=default | |
ConditionalCommand & | operator= (ConditionalCommand &&)=default |
void | setCommand (Command *command_) |
Method for setting the command to run. More... | |
void | setCondition (ConditionType condition_) |
Method for setting the condition under which the command should run. More... | |
void | run (DNACalibDNAReader *output) override |
![]() | |
virtual | ~Command () |
virtual void | run (DNACalibDNAReader *output)=0 |
Private Types | |
using | CommandType = TCommand |
using | ConditionType = TCondition |
Private Attributes | |
CommandType * | command |
ConditionType | condition |
ConditionalCommand is used to run a command if the specified condition is met.
|
private |
|
private |
|
inline |
|
inline |
|
default |
|
delete |
|
default |
|
default |
|
delete |
|
inlineoverridevirtual |
|
inline |
Method for setting the command to run.
command_ | The command to run. |
References dnac::ConditionalCommand< TCommand, TCondition >::command.
|
inline |
Method for setting the condition under which the command should run.
condition_ | The condition that should be met. |
References dnac::ConditionalCommand< TCommand, TCondition >::condition.
|
private |
|
private |