alaCarte Maps
Renderer for OpenStreetMap tiles
taglarger_selector.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef TAGLARGER_SELECTOR_HPP
23 #define TARLARGER_SELECTOR_HPP
24 /*
25  * =====================================================================================
26  *
27  * Filename: taglarger_selector.hpp
28  *
29  * Description: selectors of type [tag>value]
30  *
31  * =====================================================================================
32  */
33 
34 #include "settings.hpp"
35 
37 
38 class TagLargerSelector : public Selector {
39 public:
40  TagLargerSelector(const shared_ptr<Rule>& rule, const shared_ptr<Selector>& next, const string& tag, const int& value);
41  virtual void matchNode(NodeId nodeID, const shared_ptr<TileIdentifier>& ti, RenderAttributes* attributes) const;
42  virtual void matchWay(WayId wayID, const shared_ptr<TileIdentifier>& ti, RenderAttributes* attributes) const;
43  virtual void matchRelation(RelId relID, const shared_ptr<TileIdentifier>& ti, RenderAttributes* attributes) const;
44 
45 private:
47  const int value;
48 };
49 
50 #endif
virtual void matchNode(NodeId nodeID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
A RenderAttributes object contains mappings from NodeIDs and WayIDs to Style objects which define how...
const CachedString tag
virtual void matchWay(WayId wayID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
const weak_ptr< Rule > rule
Definition: selector.hpp:53
const shared_ptr< Selector > next
Definition: selector.hpp:54
Represents a string which is cached into an internal cache.
virtual void matchRelation(RelId relID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
TagLargerSelector(const shared_ptr< Rule > &rule, const shared_ptr< Selector > &next, const string &tag, const int &value)
This file is part of alaCarte.