24 #include <boost/regex.hpp> 43 if (entry != node->
getTags().end()) {
44 if (boost::regex_match(entry->second.str(),
expression)) {
45 next->matchNode(nodeID, ti, attributes);
53 if (entry != way->
getTags().end()) {
54 if (boost::regex_match(entry->second.str(),
expression)) {
55 next->matchWay(wayID, ti, attributes);
63 if (entry != relation->
getTags().end()) {
64 if (boost::regex_match(entry->second.str(),
expression)) {
65 next->matchRelation(relID, ti, attributes);
A RenderAttributes object contains mappings from NodeIDs and WayIDs to Style objects which define how...
TESTABLE const DataMap< CachedString, CachedString > & getTags() const
Returns a map with key-to-tag-mapping for osm-tags.
virtual void matchWay(WayId wayID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
const boost::regex expression
const shared_ptr< Selector > next
virtual void matchNode(NodeId nodeID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const
const shared_ptr< Geodata > geodata
TagMatchesSelector(const shared_ptr< Rule > &rule, const shared_ptr< Selector > &next, const string &tag, const string &value)
This file is part of alaCarte.
virtual void matchRelation(RelId relID, const shared_ptr< TileIdentifier > &ti, RenderAttributes *attributes) const