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

Describes a enumeration attribute value. More...

#include <StyleDescription.h>

+ Inheritance diagram for osmscout::StyleEnumAttributeDescriptor:

Public Types

typedef std::unordered_map
< std::string, int > 
EnumNameValueMap
 

Public Member Functions

void AddEnumValue (const std::string &name, int value)
 
int GetEnumValue (const std::string &name) const
 
- Public Member Functions inherited from osmscout::StyleAttributeDescriptor
int GetAttribute () const
 
std::string GetName () const
 
StyleAttributeType GetType () const
 
virtual ~StyleAttributeDescriptor ()
 

Protected Member Functions

 StyleEnumAttributeDescriptor (const std::string &name, int attribute)
 
- Protected Member Functions inherited from osmscout::StyleAttributeDescriptor
 StyleAttributeDescriptor (StyleAttributeType type, const std::string &name, int attribute)
 

Detailed Description

Describes a enumeration attribute value.

The base class has to get derived for defining an actual enum type.

Member Typedef Documentation

typedef std::unordered_map<std::string,int> osmscout::StyleEnumAttributeDescriptor::EnumNameValueMap

Constructor & Destructor Documentation

osmscout::StyleEnumAttributeDescriptor::StyleEnumAttributeDescriptor ( const std::string &  name,
int  attribute 
)
inlineprotected

Member Function Documentation

void osmscout::StyleEnumAttributeDescriptor::AddEnumValue ( const std::string &  name,
int  value 
)
inline
int osmscout::StyleEnumAttributeDescriptor::GetEnumValue ( const std::string &  name) const
inline

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