libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::BoundingBoxDataFile Class Referencefinal

DataFile class for loading the bounding box of the db. More...

#include <BoundingBoxDataFile.h>

Public Member Functions

 BoundingBoxDataFile ()
GeoBox GetBoundingBox () const
std::string GetFilename () const
bool IsLoaded () const
bool Load (const std::string &path)
 Load the bounding box data and return, if this operation was successful.

Static Public Attributes

static const char *const BOUNDINGBOX_DAT ="bounding.dat"

Detailed Description

DataFile class for loading the bounding box of the db.

The bounding box is represented by a simple GeoBox.

Constructor & Destructor Documentation

◆ BoundingBoxDataFile()

osmscout::BoundingBoxDataFile::BoundingBoxDataFile ( )

Member Function Documentation

◆ GetBoundingBox()

GeoBox osmscout::BoundingBoxDataFile::GetBoundingBox ( ) const
inline

◆ GetFilename()

std::string osmscout::BoundingBoxDataFile::GetFilename ( ) const
inline

◆ IsLoaded()

bool osmscout::BoundingBoxDataFile::IsLoaded ( ) const
inline

◆ Load()

bool osmscout::BoundingBoxDataFile::Load ( const std::string & path)

Load the bounding box data and return, if this operation was successful.

Parameters
pathDirectory, where the data file has been placed
Returns
True on success, else false

References osmscout::AppendFileToDir(), BOUNDINGBOX_DAT, osmscout::FileScanner::Close(), osmscout::FileScanner::CloseFailsafe(), osmscout::IOException::GetDescription(), osmscout::log, osmscout::FileScanner::Open(), osmscout::FileScanner::ReadBox(), and osmscout::FileScanner::Sequential.

Member Data Documentation

◆ BOUNDINGBOX_DAT

const char *const osmscout::BoundingBoxDataFile::BOUNDINGBOX_DAT ="bounding.dat"
static

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