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

DataFile class for loading the object variant data, which is part of the routing graph. More...

#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 ()
 
virtual ~ObjectVariantDataFile ()
 

Detailed Description

DataFile class for loading the object variant data, which is part of the routing graph.

The object variat data contains a lookup table for path attributes. Since the number of attribute value combinations is much smaller then the actual bumber of elements in the route graph it makes sense to store all ossible combinations in a lookup table and just index them from the routing graph paths.

Constructor & Destructor Documentation

osmscout::ObjectVariantDataFile::ObjectVariantDataFile ( )
osmscout::ObjectVariantDataFile::~ObjectVariantDataFile ( )
virtual

Member Function Documentation

const std::vector<ObjectVariantData>& osmscout::ObjectVariantDataFile::GetData ( ) const
inline
std::string osmscout::ObjectVariantDataFile::GetFilename ( ) const
inline
bool osmscout::ObjectVariantDataFile::IsLoaded ( ) const
inline
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::Log::Error(), osmscout::IOException::GetDescription(), and osmscout::log.

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


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