The Provider class is the abstract base of all positioning providers.
More...
#include <provider.h>
|
class | Controller |
| Facade for controlling the state of position/heading/velocity updates. More...
|
|
struct | Updates |
| Wraps all updates that can be delivered by a provider. More...
|
|
The Provider class is the abstract base of all positioning providers.
Definition at line 45 of file provider.h.
◆ Ptr
◆ Features
Enumerates the known features that can be supported by providers.
Enumerator |
---|
none | The provider does not support any feature.
|
position | The provider features position updates.
|
velocity | The provider features velocity updates.
|
heading | The provider features heading updates.
|
Definition at line 53 of file provider.h.
◆ Requirements
Enumerates the requirements of a provider implementation.
Enumerator |
---|
none | The provider does not require anything.
|
satellites | The provider requires satellites to be visible.
|
cell_network | The provider requires a cell-network to work correctly.
|
data_network | The provider requires a data-network to work correctly.
|
monetary_spending | Using the provider results in monetary cost.
|
Definition at line 64 of file provider.h.
◆ ~Provider()
virtual com::lomiri::location::Provider::~Provider |
( |
| ) |
|
|
virtualdefault |
◆ Provider() [1/2]
com::lomiri::location::Provider::Provider |
( |
const Provider & |
| ) |
|
|
delete |
◆ Provider() [2/2]
◆ matches_criteria()
virtual bool com::lomiri::location::Provider::matches_criteria |
( |
const Criteria & |
criteria | ) |
|
|
virtual |
Checks if a provider satisfies a set of accuracy criteria.
- Parameters
-
[in] | criteria | The criteria to check. |
- Returns
- true iff the provider satisfies the given criteria.
Reimplemented in com::lomiri::location::FusionProvider.
◆ mutable_updates()
virtual Updates& com::lomiri::location::Provider::mutable_updates |
( |
| ) |
|
|
protectedvirtual |
◆ on_reference_heading_updated()
virtual void com::lomiri::location::Provider::on_reference_heading_updated |
( |
const Update< Heading > & |
heading | ) |
|
|
virtual |
◆ on_reference_location_updated()
virtual void com::lomiri::location::Provider::on_reference_location_updated |
( |
const Update< Position > & |
position | ) |
|
|
virtual |
◆ on_reference_velocity_updated()
virtual void com::lomiri::location::Provider::on_reference_velocity_updated |
( |
const Update< Velocity > & |
velocity | ) |
|
|
virtual |
◆ on_wifi_and_cell_reporting_state_changed()
◆ operator=()
◆ requires()
virtual bool com::lomiri::location::Provider::requires |
( |
const Requirements & |
r | ) |
const |
|
virtual |
Checks if the provider has got a specific requirement.
- Parameters
-
r | Requirement to test for. |
- Returns
- true iff the provider has the specific requirement.
◆ start_heading_updates()
virtual void com::lomiri::location::Provider::start_heading_updates |
( |
| ) |
|
|
protectedvirtual |
◆ start_position_updates()
virtual void com::lomiri::location::Provider::start_position_updates |
( |
| ) |
|
|
protectedvirtual |
◆ start_velocity_updates()
virtual void com::lomiri::location::Provider::start_velocity_updates |
( |
| ) |
|
|
protectedvirtual |
◆ state_controller()
virtual const Controller::Ptr& com::lomiri::location::Provider::state_controller |
( |
| ) |
const |
|
virtual |
Access to the controller facade of this provider instance.
◆ stop_heading_updates()
virtual void com::lomiri::location::Provider::stop_heading_updates |
( |
| ) |
|
|
protectedvirtual |
◆ stop_position_updates()
virtual void com::lomiri::location::Provider::stop_position_updates |
( |
| ) |
|
|
protectedvirtual |
◆ stop_velocity_updates()
virtual void com::lomiri::location::Provider::stop_velocity_updates |
( |
| ) |
|
|
protectedvirtual |
◆ supports()
virtual bool com::lomiri::location::Provider::supports |
( |
const Features & |
f | ) |
const |
|
virtual |
Checks if the provider supports a specific feature.
- Parameters
-
- Returns
- true iff the provider supports the feature.
◆ updates()
virtual const Updates& com::lomiri::location::Provider::updates |
( |
| ) |
const |
|
virtual |
Provides non-mutable access to this provider's updates.
- Returns
- A non-mutable reference to the updates.
◆ controller
◆ features
◆ requirements
◆ updates
Updates com::lomiri::location::Provider::updates |
The documentation for this class was generated from the following file:
- /build/location-service-3.1.0~20230328163843.17~875cece+ubports20.04/include/location_service/com/lomiri/location/provider.h