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

Visitor that gets called for every region found. More...

#include <Location.h>

Inherited by osmscout::AdminRegionReverseLookupVisitor, and osmscout::AdminRegionSearchVisitor.

Public Types

enum  Action { skipChildren, visitChildren, stop, error }
 

Public Member Functions

virtual Action Visit (const AdminRegion &region)=0
 
virtual ~AdminRegionVisitor ()=default
 

Detailed Description

Visitor that gets called for every region found.

It is the task of the visitor to decide if a region matches the given criteria.

Member Enumeration Documentation

Enumerator
skipChildren 

Do not visit child regions, but continue with traversal.

visitChildren 

Visit child regions.

stop 

Stop.

error 

Signal an error.

Constructor & Destructor Documentation

virtual osmscout::AdminRegionVisitor::~AdminRegionVisitor ( )
virtualdefault

Member Function Documentation

virtual Action osmscout::AdminRegionVisitor::Visit ( const AdminRegion region)
pure virtual

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