2 #include <score/command/Dispatchers/ICommandDispatcher.hpp>
3 #include <score/command/Dispatchers/SendStrategy.hpp>
6 template <
typename SendStrategy = SendStrategy::Simple>
15 template <
typename... Args>
21 void submit(
score::Command* cmd)
const { SendStrategy::send(stack(), cmd); }
23 template <
typename T,
typename... Args>
24 void submit(Args&&... args)
const
26 SendStrategy::send(stack(),
new T{std::forward<Args>(args)...});
29 void submit(std::unique_ptr<score::Command> cmd)
const
31 SendStrategy::send(stack(), cmd.release());
The CommandDispatcher class.
Definition: CommandDispatcher.hpp:13
The ICommandDispatcher class.
Definition: ICommandDispatcher.hpp:21
The Command class.
Definition: Command.hpp:34