|
libosmscout 1.1.1
|
#include <libosmscout/include/osmscout/feature/LocationFeature.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) |
The location feature stores the location of an (normally) node or area. Even the data is not stored the location feature checks that a street or place and an house number is stored on the object.
So in effect it stores the location part of objects that have an address.
|
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