dpyGeofencing Namespace Reference

Deepsy Geofencing namespace that includes the different enums, structs or method signatures that should be used.

Classes

struct  Geofence
 

Typedefs

typedef boost::function< void(const bool &available)> service_availability_handler
 Prototype of the handler function used to monitor service availability. More...
 
typedef boost::function< void(boost::system::error_code error_code)> result_handler_function
 Handler for command function callback. More...
 
typedef boost::function< void(boost::system::error_code error_code, std::map< int, Geofence > &geofencesMap)> geofences_list_handler_function
 Handler for get geofences requests. More...
 
typedef 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. More...
 
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
 Handler for command function callback. More...
 
typedef 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. More...
 
typedef boost::function< void(boost::system::error_code error_code, SogListEvent event, std::string sogid)> soglist_event_handler_function
 Handler for command function callback. More...
 

Enumerations

enum  SogListEvent { SOG_ADDED = 0, SOG_REMOVED = 1 }
 
enum  SogEvent { GEOFENCE_ADDED = 0, GEOFENCE_REMOVED = 1 }
 
enum  GeofenceEvent {
  ENTER = 0, EXIT = 1, ENTER_ENABLED = 2, EXIT_DISABLED = 3,
  ENABLED = 4, DISABLED = 5
}
 
enum  FeedStatus { FEED_DISABLED = 0, FEED_ENABLED = 1 }
 

Typedef Documentation

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

This type of function is called when an event ocurrs

Parameters
error_codeerror code (if any)
eventENTER or EXIT
sogid"set of geofences" id
idid of the geofence
geofencegeofence details
anglebearing respect the geofence centroid
typedef boost::function<void(boost::system::error_code error_code, std::map<int, Geofence> &geofencesMap)> geofences_list_handler_function

This type of function is called when server returns a map of geofences

Parameters
error_codeerror code (if any)
geofencesMapmap of geofences
typedef boost::function<void(boost::system::error_code error_code)> result_handler_function

This type of function is called if a result is returned as error code

Parameters
error_codeerror code (if any)
typedef boost::function<void(const bool &available)> service_availability_handler
Parameters
availabletrue if the service is available, false otherwise
typedef boost::function<void(boost::system::error_code error_code, SogEvent event, std::string sogid, int id, Geofence geofence)> sog_event_handler_function

This type of function is called when an event ocurrs

Parameters
error_codeerror code (if any)
eventADDED or REMOVED
sogid"set of geofences" id
idid of the geofence
geofencegeofence details
typedef boost::function<void(boost::system::error_code error_code, SogListEvent event, std::string sogid)> soglist_event_handler_function

This type of function is called when an event ocurrs

Parameters
error_codeerror code (if any)
eventADDED or REMOVED
sogid"set of geofences" id
typedef boost::function<void(boost::system::error_code error_code, std::list<std::string> &sogsList)> sogs_list_handler_function

This type of function is called when server returns a map of geofences

Parameters
error_codeerror code (if any)
sogsListlist of "set of geofences"

Enumeration Type Documentation

enum FeedStatus

Custom position feed status

Enumerator
FEED_DISABLED 

Custom position feed disabled.

FEED_ENABLED 

Custom position feed enabled.

Event of a geofence

Enumerator
ENTER 

ENTER.

EXIT 

EXIT.

ENTER_ENABLED 

ENTER_ENABLED.

EXIT_DISABLED 

EXIT_DISABLED.

ENABLED 

ENABLED.

DISABLED 

DISABLED.

enum SogEvent

Event of a sog

Enumerator
GEOFENCE_ADDED 

A geofence is added to the set.

GEOFENCE_REMOVED 

A geofence is removed from the set.

Sog list event

Enumerator
SOG_ADDED 

A set of geofences is added.

SOG_REMOVED 

A set of geofences is removed.