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

Simple logging proxy object that encapsulates one exchangeable global logger instance. More...

#include <Logger.h>

Public Member Functions

LogDebug (bool state)
 
Logger::Line Debug ()
 
LogError (bool state)
 
Logger::Line Error ()
 
LogInfo (bool state)
 
Logger::Line Info ()
 
bool IsDebug () const
 
bool IsError () const
 
bool IsInfo () const
 
bool IsWarn () const
 
 Log ()
 
void SetLogger (Logger *logger)
 
LogWarn (bool state)
 
Logger::Line Warn ()
 
 ~Log ()
 

Detailed Description

Simple logging proxy object that encapsulates one exchangeable global logger instance.

Log should behave as Logger in all other cases.

Constructor & Destructor Documentation

osmscout::Log::Log ( )

References Debug().

osmscout::Log::~Log ( )

References Debug().

Member Function Documentation

Log& osmscout::Log::Debug ( bool  state)
inline

Referenced by osmscout::BasemapDatabase::BasemapDatabase(), osmscout::Database::Database(), DBThread::DBThread(), PlaneMapRenderer::DrawMap(), osmscout::Cache< FileOffset, std::shared_ptr< N > >::DumpStatistics(), OSMScoutQt::FreeInstance(), osmscout::Database::GetAreaAreaIndex(), osmscout::Database::GetAreaDataFile(), osmscout::Database::GetAreaNodeIndex(), osmscout::Database::GetAreaWayIndex(), osmscout::Database::GetBoundingBoxDataFile(), osmscout::Database::GetLocationIndex(), osmscout::Database::GetNodeDataFile(), osmscout::Database::GetOptimizeAreasLowZoom(), osmscout::Database::GetOptimizeWaysLowZoom(), osmscout::BasemapDatabase::GetWaterIndex(), osmscout::Database::GetWaterIndex(), osmscout::Database::GetWayDataFile(), PlaneMapRenderer::HandleInitialRenderingRequest(), PlaneMapRenderer::HandleTileStatusChanged(), PlaneMapRenderer::InvalidateVisualCache(), osmscout::BoundingBoxDataFile::Load(), osmscout::StyleConfig::Load(), osmscout::TypeConfig::LoadFromDataFile(), osmscout::LocationDescriptionService::LoadNearAreas(), osmscout::LocationDescriptionService::LoadNearNodes(), osmscout::LocationDescriptionService::LoadNearWays(), osmscout::MapPainter::MapPainter(), MapRenderer::MapRenderer(), MapDownloadJob::onJobFailed(), LocationListModel::onLocationAdminRegionFinished(), Router::onRouteRequest(), RoutingListModel::onRoutingProgress(), osmscout::SimpleRoutingService::Open(), osmscout::SimpleRoutingService::ResolveRouteDataJunctions(), DBRenderJob::Run(), osmscout::LocationService::SearchForLocationByString(), SearchModule::SearchForLocations(), osmscout::StyleConfig::StyleConfig(), MapWidget::toggleDebug(), PlaneMapRenderer::TriggerMapRendering(), osmscout::TypeConfig::TypeConfig(), osmscout::BasemapDatabase::~BasemapDatabase(), osmscout::Database::~Database(), DBThread::~DBThread(), osmscout::MapPainter::~MapPainter(), osmscout::StyleConfig::~StyleConfig(), and osmscout::TypeConfig::~TypeConfig().

Logger::Line osmscout::Log::Debug ( )

References osmscout::Logger::Debug().

Referenced by Log(), and ~Log().

Log& osmscout::Log::Error ( bool  state)
inline

Referenced by osmscout::MultiDBRoutingService::CalculateRoute(), osmscout::AbstractRoutingService< RoutingState >::CalculateRoute(), osmscout::CoordDataFile::Close(), osmscout::AreaNodeIndex::Close(), osmscout::AreaWayIndex::Close(), osmscout::OptimizeWaysLowZoom::Close(), osmscout::WaterIndex::Close(), osmscout::OptimizeAreasLowZoom::Close(), osmscout::DataFile< N >::Close(), osmscout::NumericIndex< N >::Close(), osmscout::AreaAreaIndex::Close(), PlaneMapRenderer::DrawMap(), osmscout::oss::Errors::Error(), osmscout::oss::Errors::Exception(), osmscout::CoordDataFile::Get(), osmscout::Database::GetAreaAreaIndex(), osmscout::Database::GetAreaDataFile(), osmscout::Database::GetAreaNodeIndex(), osmscout::OptimizeAreasLowZoom::GetAreas(), osmscout::AreaAreaIndex::GetAreasInArea(), osmscout::Database::GetAreaWayIndex(), osmscout::Database::GetBoundingBoxDataFile(), osmscout::DataFile< N >::GetByBlockSpan(), osmscout::DataFile< N >::GetByBlockSpans(), osmscout::DataFile< N >::GetByOffset(), osmscout::SimpleRoutingService::GetClosestRoutableNode(), osmscout::MapService::GetGroundTiles(), osmscout::Database::GetLocationIndex(), osmscout::Database::GetNodeDataFile(), osmscout::NumericIndex< N >::GetOffset(), osmscout::AreaNodeIndex::GetOffsets(), osmscout::AreaWayIndex::GetOffsets(), osmscout::Database::GetOptimizeAreasLowZoom(), osmscout::Database::GetOptimizeWaysLowZoom(), osmscout::WaterIndex::GetRegions(), osmscout::AbstractRoutingService< RoutingState >::GetRNode(), osmscout::AbstractRoutingService< RoutingState >::GetStartNodes(), osmscout::AbstractRoutingService< RoutingState >::GetTargetNodes(), osmscout::BasemapDatabase::GetWaterIndex(), osmscout::Database::GetWaterIndex(), osmscout::Database::GetWayDataFile(), osmscout::OptimizeWaysLowZoom::GetWays(), osmscout::AbstractRoutingService< RoutingState >::GetWayStartNodes(), osmscout::AbstractRoutingService< RoutingState >::GetWayTargetNodes(), osmscout::BoundingBoxDataFile::Load(), osmscout::ObjectVariantDataFile::Load(), osmscout::TypeDistributionDataFile::Load(), osmscout::TextSearchIndex::Load(), osmscout::LocationIndex::Load(), osmscout::StyleConfig::Load(), osmscout::TypeConfig::LoadFromDataFile(), osmscout::TypeConfig::LoadFromOSTFile(), osmscout::RoutePostprocessor::LoadJunction(), TiledMapRenderer::onLoadJobFinished(), osmscout::RouterDBFiles::Open(), osmscout::CoordDataFile::Open(), osmscout::DebugDatabase::Open(), osmscout::OptimizeWaysLowZoom::Open(), osmscout::AreaNodeIndex::Open(), osmscout::AreaWayIndex::Open(), osmscout::OptimizeAreasLowZoom::Open(), osmscout::WaterIndex::Open(), osmscout::FileScanner::Open(), osmscout::DataFile< N >::Open(), osmscout::NumericIndex< N >::Open(), osmscout::AreaAreaIndex::Open(), osmscout::SimpleRoutingService::Open(), osmscout::Database::Open(), osmscout::AbstractRoutingProfile::ParametrizeForCar(), osmscout::RoutePostprocessor::PostprocessRouteDescription(), osmscout::RoutePostprocessor::MotorwayJunctionPostprocessor::Process(), osmscout::Intersection::Read(), LookupModule::requestLocationDescription(), osmscout::LocationIndex::ResolveAdminRegionHierachie(), osmscout::AbstractRoutingService< RoutingState >::ResolveRNodesToRouteData(), osmscout::SimpleRoutingService::ResolveRouteDataJunctions(), osmscout::TextSearchIndex::Search(), osmscout::TypeConfig::StoreToDataFile(), osmscout::oss::Errors::SynErr(), osmscout::AbstractRoutingService< RoutingState >::TransformRouteDataToPoints(), osmscout::LocationIndex::VisitAddresses(), osmscout::LocationIndex::VisitAdminRegions(), osmscout::LocationIndex::VisitLocations(), osmscout::LocationIndex::VisitPOIs(), and osmscout::AbstractRoutingService< RoutingState >::WalkPaths().

Logger::Line osmscout::Log::Error ( )
Logger::Line osmscout::Log::Info ( )
bool osmscout::Log::IsDebug ( ) const
inline

Referenced by MapWidget::toggleDebug().

bool osmscout::Log::IsError ( ) const
inline
bool osmscout::Log::IsInfo ( ) const
inline

Referenced by MapWidget::toggleInfo().

bool osmscout::Log::IsWarn ( ) const
inline
void osmscout::Log::SetLogger ( Logger logger)
Logger::Line osmscout::Log::Warn ( )

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