Interacts with Context service.
#include <contextClient.h>
|
| ContextClient (std::string &ip, int dport, int sport) |
| Constructor of the class. More...
|
|
| ~ContextClient () |
| Destructor of the class.
|
|
void | getDevices (dpyContext::devices_list_handler_function handler) |
| Get all context memory devices Ids. More...
|
|
void | getMemoryValues (dpyContext::get_context_handler_function handler, std::string deviceid, unsigned int position, unsigned int length) |
| Get context memory values. More...
|
|
void | setMemoryValues (dpyContext::result_handler_function handler, std::string deviceid, unsigned int position, std::string data) |
| Set context memory values. More...
|
|
void | getMemoryType (dpyContext::memory_type_handler_function handler, std::string deviceid) |
| Get context memory type. More...
|
|
void | getContextSize (dpyContext::context_size_handler_function handler, std::string deviceid) |
| Get context size. More...
|
|
void | dumpContext (dpyContext::get_context_handler_function handler, std::string deviceid) |
| Get all context memory data. More...
|
|
| DpyMwClient (std::string &ip, int dport, int sport) |
|
void | start () |
|
void | stop () |
|
void | subscribe (int messageType, boost::any handler) |
|
void | unsubscribe (int messageType) |
|
bool | isAlive () |
|
void | monitorServiceAvailability_S (const f_hearbeat_handler &handler) |
|
void | monitorServiceAvailability_U () |
|
- Parameters
-
ip | ip of the service |
dport | dealer port |
sport | subscriber port |
- Parameters
-
handler | Handler to be called when a response comes from the service |
deviceid | Context memory device Id |
- Parameters
-
handler | Handler to be called when a response comes from the service |
deviceid | Context memory device Id |
- Parameters
-
handler | Handler to be called when a response comes from the service |
- Parameters
-
handler | Handler to be called when a response comes from the service |
deviceid | Context memory device Id |
- Parameters
-
handler | Handler to be called when a response comes from the service |
deviceid | Context memory device Id |
position | Position inside context memory of the first value to get |
length | Length to read from context memory |
- Parameters
-
handler | Handler to be called when a response comes from the service |
deviceid | Context memory device Id |
position | Position inside context memory of the first value to write |
data | Data to be written |