libosmscout
0.1
|
#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 () | |
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.
osmscout::ObjectVariantDataFile::ObjectVariantDataFile | ( | ) |
|
inline |
Referenced by osmscout::RoutingDatabase::GetObjectVariantData().
|
inline |
|
inline |
bool osmscout::ObjectVariantDataFile::Load | ( | const TypeConfig & | typeConfig, |
const std::string & | filename | ||
) |
Load the object variant data from the given file.
typeConfig | TypeConfig instance |
filename | Name of the file containing the object variant data |
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().