alaCarte Maps
Renderer for OpenStreetMap tiles
SelectorItem Struct Reference

Represents a part of the style selector. More...

#include <mapcss_grammar.hpp>

Public Member Functions

 SelectorItem ()
 Creates an empty selector item. More...
 
 SelectorItem (obj::ObjectTypeEnum o, const Zoom &zoom, const std::vector< ConditionType > &conds)
 Creates an selector item from given values. More...
 
bool operator== (const SelectorItem &i) const
 Compares to selector items. More...
 

Public Attributes

obj::ObjectTypeEnum objectType
 The type of the object, which should be selected. More...
 
Zoom zoom
 The zoom which should be selected. More...
 
std::vector< ConditionTypeconditions
 The condition of the item. More...
 

Detailed Description

Represents a part of the style selector.

Definition at line 98 of file mapcss_grammar.hpp.

Constructor & Destructor Documentation

SelectorItem::SelectorItem ( )
inline

Creates an empty selector item.

Definition at line 101 of file mapcss_grammar.hpp.

SelectorItem::SelectorItem ( obj::ObjectTypeEnum  o,
const Zoom zoom,
const std::vector< ConditionType > &  conds 
)
inline

Creates an selector item from given values.

Definition at line 106 of file mapcss_grammar.hpp.

Member Function Documentation

bool SelectorItem::operator== ( const SelectorItem i) const
inline

Compares to selector items.

Definition at line 113 of file mapcss_grammar.hpp.

Member Data Documentation

std::vector<ConditionType> SelectorItem::conditions

The condition of the item.

Definition at line 123 of file mapcss_grammar.hpp.

obj::ObjectTypeEnum SelectorItem::objectType

The type of the object, which should be selected.

Definition at line 119 of file mapcss_grammar.hpp.

Zoom SelectorItem::zoom

The zoom which should be selected.

Definition at line 121 of file mapcss_grammar.hpp.


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