An object of ProxyReplyHandlerClass is passed as a reference to the Middleware when performing a subscription. Then Middleware use it as a callback. More...
#include <ProxyReplyHandler.h>
Public Member Functions | |
ProxyReplyHandler () | |
virtual | ~ProxyReplyHandler () |
void | handleReply (const rdaRequest &request, const rdaData &value) |
void | waitReply (std::string &deviceName, std::string &propertyName, std::string &cycleSelectorName, rdaData &data) |
void | handleError (const rdaRequest &, const rdaException &ex) |
void | disconnected (const rdaRequest &) |
void | reconnected (const rdaRequest &) |
void | cancelled (const rdaRequest &) |
Private Attributes | |
rdaData | value_ |
std::string | deviceName_ |
std::string | propertyName_ |
std::string | cycleSelectorName_ |
Mutex | mtx_ |
ConditionalVariable | cv_ |
An object of ProxyReplyHandlerClass is passed as a reference to the Middleware when performing a subscription. Then Middleware use it as a callback.
Definition at line 22 of file ProxyReplyHandler.h.
fesa::ProxyReplyHandler::ProxyReplyHandler | ( | ) |
Definition at line 22 of file ProxyReplyHandler.cpp.
References fesa::AbstractMutex::lock(), and mtx_.
fesa::ProxyReplyHandler::~ProxyReplyHandler | ( | ) | [virtual] |
Definition at line 27 of file ProxyReplyHandler.cpp.
void fesa::ProxyReplyHandler::cancelled | ( | const rdaRequest & | ) |
Definition at line 57 of file ProxyReplyHandler.cpp.
void fesa::ProxyReplyHandler::disconnected | ( | const rdaRequest & | ) |
Definition at line 49 of file ProxyReplyHandler.cpp.
void fesa::ProxyReplyHandler::handleError | ( | const rdaRequest & | , | |
const rdaException & | ex | |||
) |
Definition at line 44 of file ProxyReplyHandler.cpp.
void fesa::ProxyReplyHandler::handleReply | ( | const rdaRequest & | request, | |
const rdaData & | value | |||
) |
the callback values have to be saved as they can change after this call is finished
Definition at line 32 of file ProxyReplyHandler.cpp.
References cv_, cycleSelectorName_, deviceName_, mtx_, propertyName_, fesa::ConditionalVariable::signal(), and value_.
void fesa::ProxyReplyHandler::reconnected | ( | const rdaRequest & | ) |
Definition at line 53 of file ProxyReplyHandler.cpp.
void fesa::ProxyReplyHandler::waitReply | ( | std::string & | deviceName, | |
std::string & | propertyName, | |||
std::string & | cycleSelectorName, | |||
rdaData & | data | |||
) |
Definition at line 61 of file ProxyReplyHandler.cpp.
References cv_, cycleSelectorName_, deviceName_, mtx_, propertyName_, value_, and fesa::ConditionalVariable::wait().
Referenced by fesa::ProxyInterface::waitNotification().
Definition at line 86 of file ProxyReplyHandler.h.
Referenced by handleReply(), and waitReply().
std::string fesa::ProxyReplyHandler::cycleSelectorName_ [private] |
Definition at line 83 of file ProxyReplyHandler.h.
Referenced by handleReply(), and waitReply().
std::string fesa::ProxyReplyHandler::deviceName_ [private] |
Definition at line 81 of file ProxyReplyHandler.h.
Referenced by handleReply(), and waitReply().
Mutex fesa::ProxyReplyHandler::mtx_ [private] |
Definition at line 85 of file ProxyReplyHandler.h.
Referenced by handleReply(), ProxyReplyHandler(), and waitReply().
std::string fesa::ProxyReplyHandler::propertyName_ [private] |
Definition at line 82 of file ProxyReplyHandler.h.
Referenced by handleReply(), and waitReply().
rdaData fesa::ProxyReplyHandler::value_ [private] |
Definition at line 80 of file ProxyReplyHandler.h.
Referenced by handleReply(), and waitReply().