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

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

#include <TypeDistributionDataFile.h>

Classes

struct  Distribution
 

Public Member Functions

uint32_t GetAreaCount (const TypeInfo &type) const
 
std::string GetFilename () const
 
uint32_t GetNodeCount (const TypeInfo &type) const
 
uint32_t GetWayCount (const TypeInfo &type) const
 
bool IsLoaded () const
 
bool Load (const TypeConfig &typeConfig, const std::string &path)
 Load the bounding box data and return, if this operation was successful. More...
 
 TypeDistributionDataFile ()
 
virtual ~TypeDistributionDataFile ()
 

Static Public Attributes

static const char * DISTRIBUTION_DAT ="distribution.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::TypeDistributionDataFile::TypeDistributionDataFile ( )
osmscout::TypeDistributionDataFile::~TypeDistributionDataFile ( )
virtual

Member Function Documentation

uint32_t osmscout::TypeDistributionDataFile::GetAreaCount ( const TypeInfo &  type) const
inline
std::string osmscout::TypeDistributionDataFile::GetFilename ( ) const
inline
uint32_t osmscout::TypeDistributionDataFile::GetNodeCount ( const TypeInfo &  type) const
inline
uint32_t osmscout::TypeDistributionDataFile::GetWayCount ( const TypeInfo &  type) const
inline
bool osmscout::TypeDistributionDataFile::IsLoaded ( ) const
inline
bool osmscout::TypeDistributionDataFile::Load ( const TypeConfig &  typeConfig,
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(), osmscout::FileScanner::Close(), osmscout::FileScanner::CloseFailsafe(), DISTRIBUTION_DAT, osmscout::Log::Error(), osmscout::IOException::GetDescription(), osmscout::log, osmscout::FileScanner::Open(), osmscout::FileScanner::Read(), and osmscout::FileScanner::Sequential.

Member Data Documentation

const char * osmscout::TypeDistributionDataFile::DISTRIBUTION_DAT ="distribution.dat"
static

Referenced by Load().


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