ICommandDispatcher.hpp
1 #pragma once
2 #include <score/command/Command.hpp>
3 namespace score
4 {
5 class CommandStack;
6 class CommandStackFacade;
7 }
8 
21 {
22 public:
23  explicit ICommandDispatcher(const score::CommandStack& stack) = delete;
24 
25  explicit ICommandDispatcher(const score::CommandStackFacade& stack)
26  : m_stack{stack}
27  {
28  }
29 
30  const score::CommandStackFacade& stack() const { return m_stack; }
31 
32 private:
33  const score::CommandStackFacade& m_stack;
34 };
The ICommandDispatcher class.
Definition: ICommandDispatcher.hpp:21
A small abstraction layer over the score::CommandStack.
Definition: CommandStackFacade.hpp:20
Definition: CommandStack.hpp:26
Base toolkit upon which the software is built.
Definition: Application.cpp:90