alaCarte Maps
Renderer for OpenStreetMap tiles
MapCSSGrammar Struct Reference

The grammar for the mapcss format. More...

#include <mapcss_grammar.hpp>

Inheritance diagram for MapCSSGrammar:

Public Types

typedef GrammarIterator ItType
 The Iterator used in this grammar. More...
 
typedef CommentSkipper Skipper
 The skipper used in this grammar. More...
 

Public Member Functions

 MapCSSGrammar (MapCssParser &parser)
 Creates all rules for the mapcss grammar. More...
 

Public Attributes

ObjectTypes selectorObject_
 The symbol parser for objects. More...
 
BinaryTypes binaryOperator_
 The symbol parser for binary operators. More...
 
UnaryTypes unaryOperator_
 The symbol parser for unary operators. More...
 
AttributeTypes attributeType_
 The symbol parser for style attributes. More...
 
qi::rule< ItType, StylePtr(), qi::locals< shared_ptr< AttributeCreator >, ParseInfo >, Skipperrule_styleset
 Rule to parse a styleset of a rule. More...
 
qi::rule< ItType, string(), Skipperattribute_name
 Rule to parse generic (unknown) attribute name. More...
 
qi::rule< ItType, string(), Skipperrule_specifier
 Rule to parse the specifier. More...
 
qi::rule< ItType, string()> rule_value
 Rule to parse a value. More...
 
qi::rule< ItType, string()> rule_tag
 Rule to parse a tag. More...
 
qi::rule< ItType, Zoom(), qi::locals< int, int >, Skipperrule_zoom
 Rule to parse a zoom range. More...
 
qi::rule< ItType, BinaryCondition()> rule_binary_condition
 Rule to parse a binary condition. More...
 
qi::rule< ItType, UnaryCondition()> rule_unary_condition
 Rule to parse a unary condition. More...
 
qi::rule< ItTyperule_class
 Rule to parse mapcss classes. More...
 
qi::rule< ItType, SelectorItem(), Skipperrule_subselector
 Rule to parse one part of the selector. More...
 
qi::rule< ItType, RulePtr(), qi::locals< std::vector< SelectorItem > >, Skipperrule_selector
 Rule to parse a selector. More...
 
qi::rule< ItType, std::vector< RulePtr >), Skipperrule_cssrule
 Rule to parse one rule. Returns a list of rules, because selectors can be splited. More...
 
qi::rule< ItType, StylesheetPtr(), qi::locals< std::vector< RulePtr >, StylePtr >, Skipperrule_stylesheet
 Main rule returning a stylesheet. More...
 

Detailed Description

The grammar for the mapcss format.

Definition at line 220 of file mapcss_grammar.hpp.

Member Typedef Documentation

The Iterator used in this grammar.

Definition at line 223 of file mapcss_grammar.hpp.

The skipper used in this grammar.

Definition at line 225 of file mapcss_grammar.hpp.

Constructor & Destructor Documentation

MapCSSGrammar::MapCSSGrammar ( MapCssParser parser)

Creates all rules for the mapcss grammar.

Parameters
Theparser using this grammar

Definition at line 145 of file mapcss_grammar.cpp.

Member Data Documentation

qi::rule<ItType, string(), Skipper> MapCSSGrammar::attribute_name

Rule to parse generic (unknown) attribute name.

Definition at line 241 of file mapcss_grammar.hpp.

AttributeTypes MapCSSGrammar::attributeType_

The symbol parser for style attributes.

Definition at line 234 of file mapcss_grammar.hpp.

BinaryTypes MapCSSGrammar::binaryOperator_

The symbol parser for binary operators.

Definition at line 230 of file mapcss_grammar.hpp.

qi::rule<ItType, BinaryCondition()> MapCSSGrammar::rule_binary_condition

Rule to parse a binary condition.

Definition at line 251 of file mapcss_grammar.hpp.

qi::rule<ItType> MapCSSGrammar::rule_class

Rule to parse mapcss classes.

Definition at line 255 of file mapcss_grammar.hpp.

qi::rule<ItType, std::vector<RulePtr>), Skipper> MapCSSGrammar::rule_cssrule

Rule to parse one rule. Returns a list of rules, because selectors can be splited.

Definition at line 262 of file mapcss_grammar.hpp.

qi::rule<ItType, RulePtr(), qi::locals<std::vector<SelectorItem> >, Skipper> MapCSSGrammar::rule_selector

Rule to parse a selector.

Definition at line 259 of file mapcss_grammar.hpp.

qi::rule<ItType, string(), Skipper> MapCSSGrammar::rule_specifier

Rule to parse the specifier.

Definition at line 243 of file mapcss_grammar.hpp.

qi::rule<ItType, StylePtr(), qi::locals<shared_ptr<AttributeCreator>, ParseInfo>, Skipper> MapCSSGrammar::rule_styleset

Rule to parse a styleset of a rule.

Definition at line 239 of file mapcss_grammar.hpp.

qi::rule<ItType, StylesheetPtr(), qi::locals<std::vector<RulePtr>, StylePtr>, Skipper> MapCSSGrammar::rule_stylesheet

Main rule returning a stylesheet.

Definition at line 264 of file mapcss_grammar.hpp.

qi::rule<ItType, SelectorItem(), Skipper> MapCSSGrammar::rule_subselector

Rule to parse one part of the selector.

Definition at line 257 of file mapcss_grammar.hpp.

qi::rule<ItType, string()> MapCSSGrammar::rule_tag

Rule to parse a tag.

Definition at line 247 of file mapcss_grammar.hpp.

qi::rule<ItType, UnaryCondition()> MapCSSGrammar::rule_unary_condition

Rule to parse a unary condition.

Definition at line 253 of file mapcss_grammar.hpp.

qi::rule<ItType, string()> MapCSSGrammar::rule_value

Rule to parse a value.

Definition at line 245 of file mapcss_grammar.hpp.

qi::rule<ItType, Zoom(), qi::locals<int, int>, Skipper> MapCSSGrammar::rule_zoom

Rule to parse a zoom range.

Definition at line 249 of file mapcss_grammar.hpp.

ObjectTypes MapCSSGrammar::selectorObject_

The symbol parser for objects.

Definition at line 228 of file mapcss_grammar.hpp.

UnaryTypes MapCSSGrammar::unaryOperator_

The symbol parser for unary operators.

Definition at line 232 of file mapcss_grammar.hpp.


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