BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
BeeeOn::Command Class Reference
Inheritance diagram for BeeeOn::Command:
BeeeOn::Castable BeeeOn::GatewayListenCommand BeeeOn::NewDeviceCommand BeeeOn::PrefixCommand BeeeOn::ServerDeviceListCommand BeeeOn::ServerLastValueCommand BeeeOn::DeviceAcceptCommand BeeeOn::DeviceSearchCommand BeeeOn::DeviceSetValueCommand BeeeOn::DeviceUnpairCommand

Public Types

typedef Poco::AutoPtr< CommandPtr
 

Public Member Functions

std::string name () const
 
CommandHandlersendingHandler () const
 
virtual std::string toString () const
 
virtual Result::Ptr deriveResult (Answer::Ptr answer) const
 
- Public Member Functions inherited from BeeeOn::Castable
template<typename T >
bool is ()
 
template<typename T >
bool is () const
 
template<typename C >
const C & cast () const
 
template<typename C >
C & cast ()
 

Protected Member Functions

void setSendingHandler (CommandHandler *sender)
 

Protected Attributes

CommandHandlerm_sendingHandler
 

Member Function Documentation

Result::Ptr Command::deriveResult ( Answer::Ptr  answer) const
virtual

Derive result appropriate for the Command instance. The result is always created in the PENDING state.

The default implementation returns an instance of class Result as it is suitable for most commands. Specific command would override this method to derive another Result (sub)class.

Reimplemented in BeeeOn::DeviceUnpairCommand.

CommandHandler * Command::sendingHandler ( ) const

Returns CommandHandler that initiates sending of this commands. If the sender does not implement the CommandHandler interface, it returns NULL.

string Command::toString ( ) const
virtual

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