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

Abstraction for getting cached access to the 'ways.dat' file. More...

#include <AreaDataFile.h>

+ Inheritance diagram for osmscout::AreaDataFile:

Public Member Functions

 AreaDataFile (size_t cacheSize)
 
- Public Member Functions inherited from osmscout::DataFile< Area >
virtual bool Close ()
 Close the index. More...
 
 DataFile (const std::string &datafile, size_t cacheSize)
 
bool GetByBlockSpan (const DataBlockSpan &span, std::vector< ValueType > &data) const
 Read data values from the given DataBlockSpan. More...
 
bool GetByBlockSpans (IteratorIn begin, IteratorIn end, std::vector< ValueType > &data) const
 Read data values from the given DataBlockSpans. More...
 
bool GetByOffset (const FileOffset &offset, ValueType &entry) const
 Read one data value from the given file offset. More...
 
bool GetByOffset (IteratorIn begin, IteratorIn end, size_t size, std::vector< ValueType > &data) const
 Reads data for the given file offsets. More...
 
bool GetByOffset (IteratorIn begin, IteratorIn end, size_t size, const GeoBox &boundingBox, std::vector< ValueType > &data) const
 Read data values from the given file offsets. More...
 
bool GetByOffset (IteratorIn begin, IteratorIn end, size_t size, std::unordered_map< FileOffset, ValueType > &dataMap) const
 Read data values from the given file offsets. More...
 
virtual bool IsOpen () const
 Return true, if index is currently opened. More...
 
bool Open (const TypeConfigRef &typeConfig, const std::string &path, bool memoryMapedData)
 Open the index file. More...
 
virtual ~DataFile ()
 

Static Public Attributes

static const char * AREAS_DAT ="areas.dat"
 
static const char * AREAS_IDMAP ="areas.idmap"
 

Additional Inherited Members

- Public Types inherited from osmscout::DataFile< Area >
typedef Cache< FileOffset,
std::shared_ptr< Area > > 
ValueCache
 
typedef Cache< FileOffset,
ValueType >::CacheEntry 
ValueCacheEntry
 
typedef Cache< FileOffset,
ValueType >::CacheRef 
ValueCacheRef
 
typedef std::shared_ptr< AreaValueType
 
- Protected Attributes inherited from osmscout::DataFile< Area >
TypeConfigRef typeConfig
 

Detailed Description

Abstraction for getting cached access to the 'ways.dat' file.

Constructor & Destructor Documentation

osmscout::AreaDataFile::AreaDataFile ( size_t  cacheSize)

Member Data Documentation

const char * osmscout::AreaDataFile::AREAS_DAT ="areas.dat"
static
const char * osmscout::AreaDataFile::AREAS_IDMAP ="areas.idmap"
static

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