libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::ObjectVariantDataFile Class Referencefinal

#include <ObjectVariantDataFile.h>

Public Member Functions

const std::vector< ObjectVariantData > & GetData () const
 
std::string GetFilename () const
 
bool IsLoaded () const
 
bool Load (const TypeConfig &typeConfig, const std::string &filename)
 Load the object variant data from the given file. More...
 
 ObjectVariantDataFile ()
 

Detailed Description

DataFile class for loading the object variant data, which is part of the routing graph. The object variant data contains a lookup table for path attributes. Since the number of attribute value combinations is much smaller then the actual number of elements in the route graph it makes sense to store all possible combinations in a lookup table and just index them from the routing graph paths.

Constructor & Destructor Documentation

◆ ObjectVariantDataFile()

osmscout::ObjectVariantDataFile::ObjectVariantDataFile ( )

Member Function Documentation

◆ GetData()

const std::vector<ObjectVariantData>& osmscout::ObjectVariantDataFile::GetData ( ) const
inline

◆ GetFilename()

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

◆ IsLoaded()

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

◆ Load()

bool osmscout::ObjectVariantDataFile::Load ( const TypeConfig typeConfig,
const std::string &  filename 
)

Load the object variant data from the given file.

Parameters
typeConfigTypeConfig instance
filenameName of the file containing the object variant data
Returns
True on success, else false

References osmscout::FileScanner::Close(), osmscout::FileScanner::CloseFailsafe(), osmscout::Log::Error(), osmscout::IOException::GetDescription(), osmscout::log, osmscout::FileScanner::Open(), osmscout::FileScanner::ReadUInt32(), and osmscout::FileScanner::Sequential.

Referenced by osmscout::RoutingDatabase::Open().


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