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

DataFile class for loading the bounding box of the database. 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. More...
 
virtual ~BoundingBoxDataFile ()
 

Static Public Attributes

static const char * BOUNDINGBOX_DAT ="bounding.dat"
 

Detailed Description

DataFile class for loading the bounding box of the database.

The bounding box is represented by a simple GeoBox.

Constructor & Destructor Documentation

osmscout::BoundingBoxDataFile::BoundingBoxDataFile ( )
osmscout::BoundingBoxDataFile::~BoundingBoxDataFile ( )
virtual

Member Function Documentation

GeoBox osmscout::BoundingBoxDataFile::GetBoundingBox ( ) const
inline
std::string osmscout::BoundingBoxDataFile::GetFilename ( ) const
inline
bool osmscout::BoundingBoxDataFile::IsLoaded ( ) const
inline
bool osmscout::BoundingBoxDataFile::Load ( const std::string &  path)

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

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

References osmscout::AppendFileToDir(), BOUNDINGBOX_DAT, osmscout::Log::Debug(), osmscout::Log::Error(), osmscout::IOException::GetDescription(), and osmscout::log.

Member Data Documentation

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

Referenced by Load().


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