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

Interface one must implement to provider a label for the map. More...

#include <LabelProvider.h>

+ Inheritance diagram for osmscout::LabelProvider:

Public Member Functions

virtual std::string GetLabel (const MapParameter &parameter, const FeatureValueBuffer &buffer) const =0
 Returns the label based on the given feature value buffer. More...
 
virtual std::string GetName () const =0
 Returns the name of the label provider as it must get stated in the style sheet. More...
 
virtual ~LabelProvider ()
 

Detailed Description

Interface one must implement to provider a label for the map.

Constructor & Destructor Documentation

osmscout::LabelProvider::~LabelProvider ( )
virtual

Member Function Documentation

virtual std::string osmscout::LabelProvider::GetLabel ( const MapParameter &  parameter,
const FeatureValueBuffer &  buffer 
) const
pure virtual

Returns the label based on the given feature value buffer.

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

Implemented in osmscout::DynamicFeatureLabelReader.

virtual std::string osmscout::LabelProvider::GetName ( ) const
pure virtual

Returns the name of the label provider as it must get stated in the style sheet.

Implemented in osmscout::DynamicFeatureLabelReader.


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