Creates regulatory elements based on their type.
More...
#include <RegulatoryElement.h>
Creates regulatory elements based on their type.
Definition at line 332 of file primitives/RegulatoryElement.h.
◆ FactoryFcn
◆ RegulatoryElementFactory()
lanelet::RegulatoryElementFactory::RegulatoryElementFactory |
( |
| ) |
|
|
privatedefault |
◆ availableRules()
std::vector< std::string > lanelet::RegulatoryElementFactory::availableRules |
( |
| ) |
|
|
static |
◆ create() [1/2]
◆ create() [2/2]
create a regulatory element based on the name of the rule
- Parameters
-
- Exceptions
-
InvalidInputError | if the object could not be created (e.g. if requisites for the specific type are not met or ruleName does not exist) |
- Returns
- a matching instance of the regulatory element.
The factory will make sure that the subtype tag of the returned object matches the ruleName as is required by liblanelet.
Definition at line 114 of file RegulatoryElement.cpp.
◆ instance()
◆ registerStrategy()
void lanelet::RegulatoryElementFactory::registerStrategy |
( |
const std::string & |
strategy, |
|
|
const FactoryFcn & |
factoryFunction |
|
) |
| |
|
inline |
◆ registry_
std::map<std::string, FactoryFcn> lanelet::RegulatoryElementFactory::registry_ |
|
private |
The documentation for this class was generated from the following files: