![]() |
BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
#include <CommandSender.h>
Public Member Functions | |
| void | setCommandDispatcher (CommandDispatcher *dispatcher) |
| void | dispatch (Poco::AutoPtr< Command > cmd, Poco::AutoPtr< Answer > answer) |
| void | dispatch (Poco::AutoPtr< Command > cmd) |
| AnswerQueue & | answerQueue () |
Abstract class that provides a generic way to access a CommandDispatcher. The CommandSender MUST be used for dispatching commands.
| AnswerQueue & CommandSender::answerQueue | ( | ) |
Provides an implicit answer queue for the sender.
| void BeeeOn::CommandSender::dispatch | ( | Poco::AutoPtr< Command > | cmd, |
| Poco::AutoPtr< Answer > | answer | ||
| ) |
Dispatches commands via the configured CommandDispatcher.
| void BeeeOn::CommandSender::dispatch | ( | Poco::AutoPtr< Command > | cmd | ) |
Dispatches commands where the caller does not care about the answer (there is no sensible reaction possible).
| void CommandSender::setCommandDispatcher | ( | CommandDispatcher * | dispatcher | ) |
Setting raw pointer to avoid circular dependencies when an implementation of CommandSender also implements CommandHandler and is registered with the same dispatcher.
1.8.5