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

ServerAnswer extends regular Answer with ID of corresponding received GWMessage, which was translated to dispatched Command. This ID is used to create GWMessage to inform server about execution status of this Command. More...

#include <ServerAnswer.h>

Inheritance diagram for BeeeOn::ServerAnswer:
BeeeOn::Answer

Public Types

typedef Poco::AutoPtr
< ServerAnswer
Ptr
 
- Public Types inherited from BeeeOn::Answer
typedef Poco::AutoPtr< AnswerPtr
 

Public Member Functions

 ServerAnswer (AnswerQueue &answerQueue, const GlobalID &id)
 
 ServerAnswer (const ServerAnswer &)=delete
 
void setID (const GlobalID &id)
 
GWResponseWithAckContext::Ptr toResponse (const GWResponse::Status &status) const
 
GlobalID id () const
 
- Public Member Functions inherited from BeeeOn::Answer
 Answer (AnswerQueue &answerQueue, const bool autoDispose=false)
 
 Answer (const Answer &)=delete
 
void setDirty (bool dirty)
 
bool isDirty () const
 
bool isPending () const
 
Poco::Event & event ()
 
bool isEmpty () const
 
unsigned long resultsCount () const
 
int handlersCount () const
 
void setHandlersCount (unsigned long counter)
 
void addResult (Result *result)
 
void notifyUpdated ()
 
void waitNotPending (const Poco::Timespan &timeout)
 
Result::Ptr at (size_t position)
 
std::vector< Result::Ptr >
::iterator 
begin ()
 
std::vector< Result::Ptr >
::iterator 
end ()
 

Detailed Description

ServerAnswer extends regular Answer with ID of corresponding received GWMessage, which was translated to dispatched Command. This ID is used to create GWMessage to inform server about execution status of this Command.

Member Function Documentation

GWResponseWithAckContext::Ptr ServerAnswer::toResponse ( const GWResponse::Status status) const

Convert Answer to appropriate GWResponseWithAckContext if possible.


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