libosmscout  1.1.1
Public Member Functions | Static Public Attributes | List of all members
osmscout::MaxSpeedFeature Class Reference

#include <libosmscout/include/osmscout/TypeFeatures.h>

Inheritance diagram for osmscout::MaxSpeedFeature:
Inheritance graph
[legend]
Collaboration diagram for osmscout::MaxSpeedFeature:
Collaboration graph
[legend]

Public Member Functions

void Initialize (TagRegistry &tagRegistry) override
 
std::string GetName () const override
 
size_t GetValueAlignment () const override
 
size_t GetValueSize () const override
 
FeatureValueAllocateValue (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)
 

Member Function Documentation

◆ AllocateValue()

FeatureValue* osmscout::MaxSpeedFeature::AllocateValue ( void *  buffer)
overridevirtual

Reimplemented from osmscout::Feature.

◆ GetName()

std::string osmscout::MaxSpeedFeature::GetName ( ) const
overridevirtual

Returns the name of the feature

Implements osmscout::Feature.

◆ GetValueAlignment()

size_t osmscout::MaxSpeedFeature::GetValueAlignment ( ) const
overridevirtual

If feature have value object, this method returns alignment requirements of the value type (alignof( type-id )).

Reimplemented from osmscout::Feature.

◆ GetValueSize()

size_t osmscout::MaxSpeedFeature::GetValueSize ( ) const
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.

◆ Initialize()

void osmscout::MaxSpeedFeature::Initialize ( TagRegistry &  tagRegistry)
overridevirtual

Does further initialization based on the current TagRegistry. For example it registers Tags (and stores their TagId) for further processing.

Implements osmscout::Feature.

◆ Parse()

void osmscout::MaxSpeedFeature::Parse ( TagErrorReporter reporter,
const TagRegistry &  tagRegistry,
const FeatureInstance &  feature,
const ObjectOSMRef &  object,
const TagMap tags,
FeatureValueBuffer &  buffer 
) const
overridevirtual

Implements osmscout::Feature.

Member Data Documentation

◆ NAME

const char* const osmscout::MaxSpeedFeature::NAME
static

Name of this feature


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