healthClient.h
Go to the documentation of this file.
1 
4 #pragma once
5 #include "../../../../LIBRARIES/MIDDLEWARE/src/com/dpyMwClient.h"
6 #include "healthApi.h"
7 
13 {
14 private:
15  void RegisterCallbacks();
16 public:
17  HealthClient(std::string &ip, int dport, int sport);
18  ~HealthClient();
19  void getCurrentStatusList(dpyHealth::status_handler_function handler);
20  void getPendingStatusList(dpyHealth::status_handler_function handler);
21  void getDeviceList(dpyHealth::device_handler_function handler);
22  void reportNewStatus(dpyHealth::handler_function handler, std::string key, std::string value, dpyHealth::Priority priority);
23 };
Priority
Priority of the message.
Definition: healthTypes.h:20
boost::function< void(boost::system::error_code error_code, std::vector< dpyHealth::Status > &)> status_handler_function
Handler for getStatusList function callback.
Definition: healthApi.h:59
boost::function< void(boost::system::error_code &ec)> handler_function
Handler for status function callback.
Definition: healthApi.h:52
boost::function< void(boost::system::error_code error_code, std::vector< dpyHealth::DeviceInformation > &)> device_handler_function
Handler for getDeviceList function callback.
Definition: healthApi.h:66
Manages dealer and susbriber.
Definition: dpyMwClient.h:59
Interacts with Health service.
Definition: healthClient.h:12