GenericMacroCommandDispatcher< Command_T, RedoStrategy_T, SendStrategy_T > Class Template Referencefinal

The MacroCommandDispatcher class. More...

Inheritance diagram for GenericMacroCommandDispatcher< Command_T, RedoStrategy_T, SendStrategy_T >:
ICommandDispatcher

Detailed Description

template<typename Command_T, typename RedoStrategy_T, typename SendStrategy_T>
class GenericMacroCommandDispatcher< Command_T, RedoStrategy_T, SendStrategy_T >

The MacroCommandDispatcher class.

Used to send multiple "one-shot" commands one after the other. An aggregate command is required : it will put them under the same "command" once in the stack.

Public Member Functions

template<typename... Args>
 GenericMacroCommandDispatcher (Args &&... args)
 
template<typename... Args>
 GenericMacroCommandDispatcher (std::unique_ptr< score::AggregateCommand > cmd, Args &&... args)
 
void submit (score::Command *cmd)
 
void commit ()
 
void rollback ()
 
auto command () const
 
- Public Member Functions inherited from ICommandDispatcher
 ICommandDispatcher (const score::CommandStack &stack)=delete
 
 ICommandDispatcher (const score::CommandStackFacade &stack)
 
const score::CommandStackFacadestack () const
 

Protected Attributes

std::unique_ptr< Command_T > m_aggregateCommand
 

The documentation for this class was generated from the following file: