libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::RoundaboutFeature Class Reference

#include <TypeFeatures.h>

+ Inheritance diagram for osmscout::RoundaboutFeature:

Public Member Functions

std::string GetName () const
 Returns the name of the feature. More...
 
void Initialize (TypeConfig &typeConfig)
 Does further initialization based on the current TypeConfig. More...
 
void Parse (TagErrorReporter &reporter, const TypeConfig &typeConfig, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const
 
- Public Member Functions inherited from osmscout::Feature
void AddDescription (const std::string &languageCode, const std::string &description)
 Add a description of the feature for the given language code. More...
 
virtual FeatureValueAllocateValue (void *buffer)
 
 Feature ()
 
std::string GetDescription (const std::string &languageCode) const
 Returns the description for the given language code. More...
 
const std::unordered_map
< std::string, std::string > & 
GetDescriptions () const
 
virtual size_t GetFeatureBitCount () const
 This method returns the number of additional feature bits reserved. More...
 
bool GetLabelIndex (const std::string &labelName, size_t &index) const
 Returns the index of the label with the given name. More...
 
virtual size_t GetValueSize () const
 A feature, if set for an object, can hold a value. More...
 
virtual bool HasLabel () const
 Returns 'true' if the feature provides labels. More...
 
virtual bool HasValue () const
 Returns 'true' if the feature has an value object. More...
 
virtual ~Feature ()=default
 

Static Public Attributes

static const char *const NAME = "Roundabout"
 Name of this feature. More...
 

Additional Inherited Members

- Protected Member Functions inherited from osmscout::Feature
size_t RegisterLabel (const std::string &labelName, size_t index)
 

Member Function Documentation

std::string osmscout::RoundaboutFeature::GetName ( ) const
virtual

Returns the name of the feature.

Implements osmscout::Feature.

References NAME.

void osmscout::RoundaboutFeature::Initialize ( TypeConfig &  typeConfig)
virtual

Does further initialization based on the current TypeConfig.

For example it registers Tags (and stores their TagId) for further processing.

Implements osmscout::Feature.

void osmscout::RoundaboutFeature::Parse ( TagErrorReporter reporter,
const TypeConfig &  typeConfig,
const FeatureInstance &  feature,
const ObjectOSMRef &  object,
const TagMap tags,
FeatureValueBuffer &  buffer 
) const
virtual

Implements osmscout::Feature.

Member Data Documentation

const char *const osmscout::RoundaboutFeature::NAME = "Roundabout"
static

Name of this feature.

Referenced by GetName().


The documentation for this class was generated from the following files: