3 #include <Poco/SharedPtr.h>
5 #include "core/CommandDispatcherListener.h"
6 #include "core/CommandHandler.h"
7 #include "util/EventSource.h"
8 #include "util/Loggable.h"
19 void registerHandler(Poco::SharedPtr<CommandHandler> handler);
27 void dispatch(Command::Ptr cmd, Answer::Ptr answer);
29 void registerListener(CommandDispatcherListener::Ptr listener);
30 void setEventsExecutor(AsyncExecutor::Ptr executor);
33 virtual void dispatchImpl(Command::Ptr cmd, Answer::Ptr answer) = 0;
36 std::list<Poco::SharedPtr<CommandHandler>> m_commandHandlers;
EventSource implements common logic for firing events to listeners.
Definition: EventSource.h:24
Definition: Loggable.h:19
Definition: CommandDispatcher.h:12