geofencingApi.h
Go to the documentation of this file.
97 typedef boost::function<void(boost::system::error_code error_code, const std::string &ip)> gnss_source_ip_handler_function;
106 typedef boost::function<void(boost::system::error_code error_code, std::map<int, Geofence> &geofencesMap)> geofences_list_handler_function;
115 typedef boost::function<void(boost::system::error_code error_code, std::list<std::string> &sogsList)> sogs_list_handler_function;
129 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;
142 typedef boost::function<void(boost::system::error_code error_code, SogEvent event, std::string sogid, int id, Geofence geofence)> sog_event_handler_function;
153 typedef boost::function<void(boost::system::error_code error_code, SogListEvent event, std::string sogid)> soglist_event_handler_function;
174 virtual void NewEvent(dpyGeofencing::GeofenceEvent type, std::string sogid, int id, dpyGeofencing::Geofence geofence, double angle) = 0;
200 void asyncAddPolygon(dpyGeofencing::result_handler_function handler, std::string sogid, int id, std::string name, bool enabled, std::vector<std::pair<double, double>> positionList);
201 void asyncAddCircle(dpyGeofencing::result_handler_function handler, std::string sogid, int id, std::string name, bool enabled, std::pair<double, double> position, int radius);
202 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);
203 void asyncDeleteGeofence(dpyGeofencing::result_handler_function handler, std::string sogid, int id);
204 void asyncEnableGeofence(dpyGeofencing::result_handler_function handler, std::string sogid, int id);
205 void asyncDisableGeofence(dpyGeofencing::result_handler_function handler, std::string sogid, int id);
209 void asyncFeedPosition(dpyGeofencing::result_handler_function handler, std::pair<double, double> position);
219 void asyncGetGeofences(dpyGeofencing::geofences_list_handler_function handler, std::string sogid);
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:153
Deepsy Geofencing namespace that includes the different enums, structs or method signatures that shou...
@ GEOFENCE_REMOVED
A geofence is removed from the set.
Definition: geofencingApi.h:51
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:106
Definition: geofencingApi.h:27
bool enabled
indicates if the geofence is enabled or disabled. If disabled the geofence is not considered when sea...
Definition: geofencingApi.h:30
virtual void NewEvent(dpyGeofencing::GeofenceEvent type, std::string sogid, int id, dpyGeofencing::Geofence geofence, double angle)=0
NewEvent. This function will be called on new position received event.
double radius
radius of the geofence (0 if polygon, >0 if buffered line or circle)
Definition: geofencingApi.h:33
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:142
boost::function< void(boost::system::error_code error_code, const std::string &ip)> gnss_source_ip_handler_function
Handler for get GNSS source IP requests.
Definition: geofencingApi.h:97
virtual ~IgeofencingObserver()
Destructor.
Definition: geofencingApi.h:178
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:115
boost::function< void(boost::system::error_code error_code)> result_handler_function
Handler for command function callback.
Definition: geofencingApi.h:88
std::list< std::pair< double, double > > points
list of points that defines the geofence
Definition: geofencingApi.h:32
@ FEED_ENABLED
Custom position feed enabled.
Definition: geofencingApi.h:73
bool active
indicates if the geofence is active. It means the current position is inside the geofence.
Definition: geofencingApi.h:31
@ FEED_DISABLED
Custom position feed disabled.
Definition: geofencingApi.h:72
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:129
@ GEOFENCE_ADDED
A geofence is added to the set.
Definition: geofencingApi.h:50