BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions
BeeeOn::CommandSender Class Reference

#include <CommandSender.h>

Inheritance diagram for BeeeOn::CommandSender:
BeeeOn::DeviceManager BeeeOn::DeviceStatusFetcher BeeeOn::GWSCommandSender BeeeOn::GWServerConnector BeeeOn::TestingCenter BeeeOn::BelkinWemoDeviceManager BeeeOn::ConradDeviceManager BeeeOn::DongleDeviceManager BeeeOn::FitpDeviceManager BeeeOn::JablotronDeviceManager BeeeOn::PhilipsHueDeviceManager BeeeOn::PressureSensorManager BeeeOn::SonoffDeviceManager BeeeOn::VektivaDeviceManager BeeeOn::VirtualDeviceManager BeeeOn::VPTDeviceManager BeeeOn::ZWaveDeviceManager

Public Member Functions

void setCommandDispatcher (CommandDispatcher *dispatcher)
 
void dispatch (Poco::AutoPtr< Command > cmd, Poco::AutoPtr< Answer > answer)
 
void dispatch (Poco::AutoPtr< Command > cmd)
 
AnswerQueueanswerQueue ()
 

Detailed Description

Abstract class that provides a generic way to access a CommandDispatcher. The CommandSender MUST be used for dispatching commands.

Member Function Documentation

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.


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