18#ifndef LOCATION_SERVICE_COM_LOMIRI_LOCATION_PROVIDER_FACTORY_H_
19#define LOCATION_SERVICE_COM_LOMIRI_LOCATION_PROVIDER_FACTORY_H_
59 void enumerate(
const std::function<
void(
const std::string&,
const Factory&)>& enumerator);
71 std::map<std::string, Factory> factory_store;
static ProviderFactory & instance()
void add_factory_for_name(const std::string &name, const Factory &factory)
std::function< Provider::Ptr(const Configuration &)> Factory
Provider::Ptr create_provider_for_name_with_config(const std::string &name, const Configuration &config)
static std::string extract_undecorated_name(const std::string &name)
void enumerate(const std::function< void(const std::string &, const Factory &)> &enumerator)
void create_provider_for_name_with_config(const std::string &name, const Configuration &config, const std::function< void(Provider::Ptr)> &cb)
com::lomiri::location::Configuration Configuration
std::shared_ptr< Provider > Ptr
boost::property_tree::ptree Configuration