Allows to interact with geofencing server.

#include <geofencingApi.h>

Public Member Functions

 Geofencing (std::string ip="127.0.0.1")
 
bool isAlive ()
 
void monitorServiceAvailability_S (dpyGeofencing::service_availability_handler handler)
 
void monitorServiceAvailability_U ()
 
void asyncAddPolygon (dpyGeofencing::result_handler_function handler, std::string sogid, int id, std::string name, bool enabled, std::vector< std::pair< double, double >> positionList)
 
void asyncAddCircle (dpyGeofencing::result_handler_function handler, std::string sogid, int id, std::string name, bool enabled, std::pair< double, double > position, int radius)
 
void asyncAddBufferedLine (dpyGeofencing::result_handler_function handler, std::string sogid, int id, std::string name, bool enabled, std::vector< std::pair< double, double >> positionList, int radius)
 
void asyncDeleteGeofence (dpyGeofencing::result_handler_function handler, std::string sogid, int id)
 
void asyncEnableGeofence (dpyGeofencing::result_handler_function handler, std::string sogid, int id)
 
void asyncDisableGeofence (dpyGeofencing::result_handler_function handler, std::string sogid, int id)
 
void asyncFeedPosition (dpyGeofencing::result_handler_function handler, std::pair< double, double > position)
 
boost::system::error_code feedPosition (std::pair< double, double > position)
 
void asyncDisableFeedPosition (dpyGeofencing::result_handler_function handler)
 
boost::system::error_code disableFeedPosition ()
 
void asyncGetSOGs (dpyGeofencing::sogs_list_handler_function handler)
 
void asyncGetGeofences (dpyGeofencing::geofences_list_handler_function handler, std::string sogid)
 
boost::system::error_code subscribePeriodicPosition (IgeofencingObserver *observer)
 
boost::system::error_code unsubscribePeriodicPosition (IgeofencingObserver *observer)
 
void sogListEvents_S (dpyGeofencing::soglist_event_handler_function handler)
 
void sogListEvents_U ()
 
void sogEvents_S (dpyGeofencing::sog_event_handler_function handler)
 
void sogEvents_U ()
 
void geofenceEvents_S (dpyGeofencing::geofence_event_handler_function handler)
 
void geofenceEvents_U ()