Go to the documentation of this file.
6 static constexpr
char Germany[] =
"de";
11 namespace traffic_rules {
18 registry_[std::make_pair(location, participant)] = factoryFunction;
58 location, participant,
std::unique_ptr< TrafficRules > TrafficRulesUPtr
std::map< std::pair< std::string, std::string >, FactoryFcn > registry_
std::function< TrafficRulesUPtr(const TrafficRules::Configuration &)> FactoryFcn
TrafficRulesFactory()=default
RegisterTrafficRules(const std::string &location, const std::string &participant)
static TrafficRulesFactory & instance()
static constexpr char Germany[]
template class for registering new TrafficRules for a certain location and type.
static TrafficRulesUPtr create(const std::string &location, const std::string &participant, TrafficRules::Configuration configuration=TrafficRules::Configuration())
static std::vector< std::pair< std::string, std::string > > availableTrafficRules()
returns registered traffic rules by location and participant
std::map< std::string, Attribute > Configuration
void registerStrategy(const std::string &location, const std::string &participant, const FactoryFcn &factoryFunction)