geofencingApi.h
Go to the documentation of this file.
97 typedef boost::function<void(boost::system::error_code error_code, std::map<int, Geofence> &geofencesMap)> geofences_list_handler_function;
106 typedef boost::function<void(boost::system::error_code error_code, std::list<std::string> &sogsList)> sogs_list_handler_function;
120 typedef boost::function<void(boost::system::error_code error_code, GeofenceEvent event, std::string sogid, int id, Geofence geofence, double angle)> geofence_event_handler_function;
133 typedef boost::function<void(boost::system::error_code error_code, SogEvent event, std::string sogid, int id, Geofence geofence)> sog_event_handler_function;
144 typedef boost::function<void(boost::system::error_code error_code, SogListEvent event, std::string sogid)> soglist_event_handler_function;
165 virtual void NewEvent(dpyGeofencing::GeofenceEvent type, std::string sogid, int id, dpyGeofencing::Geofence geofence, double angle) = 0;
191 void asyncAddPolygon(dpyGeofencing::result_handler_function handler, std::string sogid, int id, std::string name, bool enabled, std::vector<std::pair<double, double>> positionList);
192 void asyncAddCircle(dpyGeofencing::result_handler_function handler, std::string sogid, int id, std::string name, bool enabled, std::pair<double, double> position, int radius);
193 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);
194 void asyncDeleteGeofence(dpyGeofencing::result_handler_function handler, std::string sogid, int id);
195 void asyncEnableGeofence(dpyGeofencing::result_handler_function handler, std::string sogid, int id);
196 void asyncDisableGeofence(dpyGeofencing::result_handler_function handler, std::string sogid, int id);
197 void asyncFeedPosition(dpyGeofencing::result_handler_function handler, std::pair<double, double> position);
203 void asyncGetGeofences(dpyGeofencing::geofences_list_handler_function handler, std::string sogid);
bool active
indicates if the geofence is active. It means the current position is inside the geofence.
Definition: geofencingApi.h:31
boost::function< void(boost::system::error_code error_code, SogListEvent event, std::string sogid)> soglist_event_handler_function
Handler for command function callback.
Definition: geofencingApi.h:144
boost::function< void(const bool &available)> service_availability_handler
Prototype of the handler function used to monitor service availability.
Definition: geofencingApi.h:80
boost::function< void(boost::system::error_code error_code, SogEvent event, std::string sogid, int id, Geofence geofence)> sog_event_handler_function
Handler for command function callback.
Definition: geofencingApi.h:133
Deepsy Geofencing namespace that includes the different enums, structs or method signatures that shou...
boost::function< void(boost::system::error_code error_code, std::list< std::string > &sogsList)> sogs_list_handler_function
Handler for get "sets of geofences" request.
Definition: geofencingApi.h:106
boost::function< void(boost::system::error_code error_code, GeofenceEvent event, std::string sogid, int id, Geofence geofence, double angle)> geofence_event_handler_function
Handler for command function callback.
Definition: geofencingApi.h:120
boost::function< void(boost::system::error_code error_code)> result_handler_function
Handler for command function callback.
Definition: geofencingApi.h:88
virtual ~IgeofencingObserver()
Destructor.
Definition: geofencingApi.h:169
Definition: geofencingApi.h:27
std::list< std::pair< double, double > > points
list of points that defines the geofence
Definition: geofencingApi.h:32
double radius
radius of the geofence (0 if polygon, >0 if buffered line or circle)
Definition: geofencingApi.h:33
boost::function< void(boost::system::error_code error_code, std::map< int, Geofence > &geofencesMap)> geofences_list_handler_function
Handler for get geofences requests.
Definition: geofencingApi.h:97
bool enabled
indicates if the geofence is enabled or disabled. If disabled the geofence is not considered when sea...
Definition: geofencingApi.h:30