|
libosmscout 1.1.1
|
#include <libosmscout/include/osmscout/feature/AccessRestrictedFeature.h>


Public Member Functions | |
| void | Initialize (TagRegistry &tagRegistry) override |
| std::string | GetName () const override |
| size_t | GetValueAlignment () const override |
| size_t | GetValueSize () const override |
| FeatureValue * | AllocateValue (void *buffer) override |
| void | Parse (TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override |
| Public Member Functions inherited from osmscout::Feature | |
| Feature ()=default | |
| virtual | ~Feature ()=default |
| void | AddDescription (const std::string &languageCode, const std::string &description) |
| virtual size_t | GetFeatureBitCount () const |
| virtual bool | HasValue () const |
| virtual bool | HasLabel () const |
| virtual bool | HasFlags () const |
| bool | GetLabelIndex (const std::string &labelName, size_t &index) const |
| bool | GetFlagIndex (const std::string &flagName, size_t &index) const |
| std::string | GetDescription (const std::string &languageCode) const |
| const std::unordered_map< std::string, std::string > & | GetDescriptions () const |
Static Public Attributes | |
| static const char *const | NAME |
Additional Inherited Members | |
| Protected Member Functions inherited from osmscout::Feature | |
| void | RegisterLabel (size_t index, const std::string &labelName) |
| void | RegisterFlag (size_t index, const std::string &flagName) |
AccessRestriction signals, if there is some access restriction for a given way and a given vehicle.
An access restriction means, that a way can be used for a vehicle, but access ist restricted. Restricted access means, that you can enter a restricted region, but cannot leave it again for a given route. You may only enter the restricted region if you have a certain intention.
No access restriction, does not mean that a way can be used for a given vehicle. You must still evaluate if there is access at all for the vehicle.
|
overridevirtual |
Reimplemented from osmscout::Feature.
|
overridevirtual |
Returns the name of the feature
Implements osmscout::Feature.
|
overridevirtual |
If feature have value object, this method returns alignment requirements of the value type (alignof( type-id )).
Reimplemented from osmscout::Feature.
|
overridevirtual |
A feature, if set for an object, can hold a value. If there is no value object, this method returns 0, else it returns the C++ size of the value object.
Reimplemented from osmscout::Feature.
|
overridevirtual |
Does further initialization based on the current TagRegistry. For example it registers Tags (and stores their TagId) for further processing.
Implements osmscout::Feature.
|
overridevirtual |
Implements osmscout::Feature.
|
static |
Name of this feature