|
typedef Poco::AutoPtr< Command > | Ptr |
|
|
std::string | name () const |
|
CommandHandler * | sendingHandler () const |
|
virtual std::string | toString () const |
|
virtual Result::Ptr | deriveResult (Answer::Ptr answer) const |
|
template<typename T > |
bool | is () |
|
template<typename T > |
bool | is () const |
|
template<typename C > |
const C & | cast () const |
|
template<typename C > |
C & | cast () |
|
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.
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:
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/core/Command.h
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/core/Command.cpp