libosmscout  1.1.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osmscout::SearchRunnable Class Reference

#include <libosmscout-client-qt/include/osmscout/SearchModule.h>

Inheritance diagram for osmscout::SearchRunnable:
Inheritance graph
[legend]
Collaboration diagram for osmscout::SearchRunnable:
Collaboration graph
[legend]

Public Member Functions

 SearchRunnable (SearchModule *searchModule, DBInstanceRef &db, const QString &searchPattern, int limit, osmscout::BreakerRef &breaker)
 
std::future< bool > getFuture ()
 

Protected Member Functions

bool BuildLocationEntry (const osmscout::ObjectFileRef &object, const QString &title, DBInstanceRef &db, std::map< osmscout::FileOffset, osmscout::AdminRegionRef > &adminRegionMap, QList< LocationEntry > &locations)
 
bool BuildLocationEntry (const osmscout::LocationSearchResult::Entry &entry, DBInstanceRef &db, std::map< osmscout::FileOffset, osmscout::AdminRegionRef > &adminRegionMap, QList< LocationEntry > &locations)
 
bool GetObjectDetails (DBInstanceRef &db, const osmscout::ObjectFileRef &object, QString &typeName, osmscout::GeoCoord &coordinates, osmscout::GeoBox &bbox)
 
bool GetObjectDetails (DBInstanceRef &db, const std::vector< osmscout::ObjectFileRef > &objects, QString &typeName, osmscout::GeoCoord &coordinates, osmscout::GeoBox &bbox)
 

Protected Attributes

SearchModulesearchModule
 
DBInstanceRef db
 
QString searchPattern
 
int limit
 
osmscout::BreakerRef breaker
 
std::map< osmscout::FileOffset, osmscout::AdminRegionRefadminRegionMap
 
std::promise< bool > promise
 

Constructor & Destructor Documentation

◆ SearchRunnable()

osmscout::SearchRunnable::SearchRunnable ( SearchModule searchModule,
DBInstanceRef db,
const QString &  searchPattern,
int  limit,
osmscout::BreakerRef breaker 
)

Member Function Documentation

◆ BuildLocationEntry() [1/2]

bool osmscout::SearchRunnable::BuildLocationEntry ( const osmscout::ObjectFileRef &  object,
const QString &  title,
DBInstanceRef db,
std::map< osmscout::FileOffset, osmscout::AdminRegionRef > &  adminRegionMap,
QList< LocationEntry > &  locations 
)
protected

◆ BuildLocationEntry() [2/2]

bool osmscout::SearchRunnable::BuildLocationEntry ( const osmscout::LocationSearchResult::Entry entry,
DBInstanceRef db,
std::map< osmscout::FileOffset, osmscout::AdminRegionRef > &  adminRegionMap,
QList< LocationEntry > &  locations 
)
protected

◆ getFuture()

std::future<bool> osmscout::SearchRunnable::getFuture ( )

◆ GetObjectDetails() [1/2]

bool osmscout::SearchRunnable::GetObjectDetails ( DBInstanceRef db,
const osmscout::ObjectFileRef &  object,
QString &  typeName,
osmscout::GeoCoord &  coordinates,
osmscout::GeoBox &  bbox 
)
protected

◆ GetObjectDetails() [2/2]

bool osmscout::SearchRunnable::GetObjectDetails ( DBInstanceRef db,
const std::vector< osmscout::ObjectFileRef > &  objects,
QString &  typeName,
osmscout::GeoCoord &  coordinates,
osmscout::GeoBox &  bbox 
)
protected

Member Data Documentation

◆ adminRegionMap

std::map<osmscout::FileOffset,osmscout::AdminRegionRef> osmscout::SearchRunnable::adminRegionMap
protected

◆ breaker

osmscout::BreakerRef osmscout::SearchRunnable::breaker
protected

◆ db

DBInstanceRef osmscout::SearchRunnable::db
protected

◆ limit

int osmscout::SearchRunnable::limit
protected

◆ promise

std::promise<bool> osmscout::SearchRunnable::promise
protected

◆ searchModule

SearchModule* osmscout::SearchRunnable::searchModule
protected

◆ searchPattern

QString osmscout::SearchRunnable::searchPattern
protected

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