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

#include <Location.h>

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

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

◆ Action

Enumerator
skipChildren 

Do not visit child regions, but continue with traversal.

visitChildren 

Visit child regions.

stop 

Stop.

error 

Signal an error.

Constructor & Destructor Documentation

◆ ~AdminRegionVisitor()

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

Member Function Documentation

◆ Visit()

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

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