fusion_provider_selection_policy.h
Go to the documentation of this file.
/*
* Copyright © 2016 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authored by: Scott Sweeny <scott.sweeny@canonical.com
*/
#ifndef COM_LOMIRI_LOCATION_FUSION_PROVIDER_SELECTION_POLICY_H
#define COM_LOMIRI_LOCATION_FUSION_PROVIDER_SELECTION_POILCY_H
#include <com/lomiri/location/provider_selection_policy.h>
namespace com
{
namespace lomiri
{
namespace location
{
// This policy selects all providers, supplying them in the form of a fusion
// provider for higher quality position updates
struct FusionProviderSelectionPolicy : public ProviderSelectionPolicy
{
ProviderSelection determine_provider_selection_for_criteria(const Criteria &criteria, const ProviderEnumerator &enumerator);
};
}
}
}
#endif // COM_LOMIRI_LOCATION_FUSION_PROVIDER_SELECTION_POILCY_H
com::lomiri::location::ProviderEnumerator
Definition provider_enumerator.h:32
com::lomiri::location::ProviderSelectionPolicy::ProviderSelectionPolicy
ProviderSelectionPolicy(const ProviderSelectionPolicy &)=delete
com
Definition accuracy.h:24
provider_selection_policy.h
com::lomiri::location::Criteria
Summarizes criteria of a client session with respect to functionality and accuracy for position,...
Definition criteria.h:35
com::lomiri::location::FusionProviderSelectionPolicy
Definition fusion_provider_selection_policy.h:32
com::lomiri::location::FusionProviderSelectionPolicy::determine_provider_selection_for_criteria
ProviderSelection determine_provider_selection_for_criteria(const Criteria &criteria, const ProviderEnumerator &enumerator)
com::lomiri::location::ProviderSelection
Definition provider_selection.h:32