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

For every unique combination of object attributes that are routing relevant we store an ObjectvariantData entry. More...

#include <RouteNode.h>

Public Member Functions

bool operator< (const ObjectVariantData &other) const
 
bool operator== (const ObjectVariantData &other) const
 
void Read (const TypeConfig &typeConfig, FileScanner &scanner)
 
void Write (FileWriter &writer) const
 Write the data to the given FileWriter. More...
 

Public Attributes

uint8_t grade
 Quality of road/track 1 (good)...5 (bad) More...
 
uint8_t maxSpeed
 Maximum speed allowed on the way. More...
 
TypeInfoRef type
 The type of the object. More...
 

Detailed Description

For every unique combination of object attributes that are routing relevant we store an ObjectvariantData entry.

Member Function Documentation

bool osmscout::ObjectVariantData::operator< ( const ObjectVariantData other) const

References grade, maxSpeed, and type.

bool osmscout::ObjectVariantData::operator== ( const ObjectVariantData other) const

References grade, maxSpeed, and type.

void osmscout::ObjectVariantData::Read ( const TypeConfig &  typeConfig,
FileScanner &  scanner 
)

References grade, maxSpeed, and type.

void osmscout::ObjectVariantData::Write ( FileWriter &  writer) const

Write the data to the given FileWriter.

Exceptions
IOException

References grade, maxSpeed, and type.

Member Data Documentation

uint8_t osmscout::ObjectVariantData::grade

Quality of road/track 1 (good)...5 (bad)

Referenced by operator<(), operator==(), Read(), and Write().

uint8_t osmscout::ObjectVariantData::maxSpeed

Maximum speed allowed on the way.

Referenced by operator<(), operator==(), Read(), and Write().

TypeInfoRef osmscout::ObjectVariantData::type

The type of the object.

Referenced by operator<(), operator==(), Read(), and Write().


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