libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::FeatureLabelReader< F, V > Class Template Reference

#include <FeatureReader.h>

Public Member Functions

 FeatureLabelReader (const TypeConfig &typeConfig)
 
std::string GetLabel (const FeatureValueBuffer &buffer) const
 Returns the label of the given object. More...
 

Constructor & Destructor Documentation

◆ FeatureLabelReader()

Member Function Documentation

◆ GetLabel()

template<class F , class V >
std::string osmscout::FeatureLabelReader< F, V >::GetLabel ( const FeatureValueBuffer buffer) const

Returns the label of the given object.

Parameters
bufferThe FeatureValueBuffer instance
Returns
The label, if the given feature has a value and a label or a empty string

References osmscout::FeatureValueBuffer::GetType(), osmscout::FeatureValueBuffer::GetValue(), and osmscout::FeatureValueBuffer::HasFeature().

Referenced by osmscout::LocationDescriptionService::DescribeLocationByCrossing(), and osmscout::SimpleRoutingService::GetClosestRoutableObject().


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